Jupyter Notebook 500 : Internal Server Error

前端 未结 16 1792
野趣味
野趣味 2020-12-09 08:42

I want to learn how to use Jupyter Notebook. So far, I have managed to download and install it (using pip), but I\'m having trouble opening it.

I am opening it by ty

相关标签:
16条回答
  • 2020-12-09 08:52

    After trying all the solutions on this page without success, a variation of @kruger answer is what worked for me, simply this:

    pip install --upgrade nbconvert

    0 讨论(0)
  • 2020-12-09 08:56

    I also encountered this problem. The root cause in my case was that I already had Jinja2 installed with root permissions (having used sudo pip install before I knew better).

    My solution was to uninstall Jinja2 with sudo pip uninstall (which was required because it was installed with root permissions), and re-run pip install jupyter to reinstall it with regular user permissions.

    $ sudo pip uninstall Jinja2
    $ pip install jupyter
    

    While using sudo to install works here, it makes the problem worse in the longer term because all its packages are installed with root permissions, leading to further problems like this in future with other packages. It's kind of like kicking that can down the road.

    Many won't care of course, as long as it works. But for those that do I thought I'd mention.

    There's no way to know for sure what the offending package is, but it's likely to be one of those in the stack trace. I noticed Jinja2 as one I vaguely remembered from my early days in Python so I started there and it worked.

    0 讨论(0)
  • 2020-12-09 08:56

    I experienced this issue on my Windows machine while running an outdated version of Python. Specifically, I solved this issue for myself from upgrading from Python 3.6.0 to Python 3.6.8

    0 讨论(0)
  • 2020-12-09 08:57

    Works for me by upgrade the nbconvert package. pip install --upgrade --user nbconvert

    0 讨论(0)
  • 2020-12-09 09:01

    I was able to fix this issue by eliminating any spaces between my LaTeX code and the $.

    For example:

    $\frac        
    

    instead of

    $ \frac 
    
    0 讨论(0)
  • 2020-12-09 09:03

    This error is due to inconsistencies. Updating jupyter solves the issue. Use the following command if you are using Anaconda- conda update jupyter

    0 讨论(0)
提交回复
热议问题