You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I tried running jupyter notebook recently and faced with the following issue. I run local jupyter server, try to open any notebook from filesystem and I get 500 : Internal Server Error.
Here are logs from jupyter server.
[E 22:47:46.040 NotebookApp] Uncaught exception GET /notebooks/sem_tasks/05_data_files2/TOBD_sem_05_data_files2_v2_blank.ipynb (127.0.0.1)
HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/notebooks/sem_tasks/05_data_files2/TOBD_sem_05_data_files2_v2_blank.ipynb', version='HTTP/1.1', remote_ip='127.0.0.1')
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/tornado/web.py", line 1704, in _execute
result = await result
File "/usr/local/lib/python3.8/dist-packages/tornado/gen.py", line 775, in run
yielded = self.gen.send(value)
File "/usr/local/lib/python3.8/dist-packages/notebook/notebook/handlers.py", line 95, in get
self.write(self.render_template('notebook.html',
File "/usr/local/lib/python3.8/dist-packages/notebook/base/handlers.py", line 516, in render_template
return template.render(**ns)
File "/home/sabyanin/.local/lib/python3.8/site-packages/jinja2/environment.py", line 1090, in render
self.environment.handle_exception()
File "/home/sabyanin/.local/lib/python3.8/site-packages/jinja2/environment.py", line 832, in handle_exception
reraise(*rewrite_traceback_stack(source=source))
File "/home/sabyanin/.local/lib/python3.8/site-packages/jinja2/_compat.py", line 28, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.8/dist-packages/notebook/templates/notebook.html", line 1, in top-level template code
{% extends "page.html" %}
File "/usr/local/lib/python3.8/dist-packages/notebook/templates/page.html", line 154, in top-level template code
{% block header %}
File "/usr/local/lib/python3.8/dist-packages/notebook/templates/notebook.html", line 115, in block "header"
{% for exporter in get_frontend_exporters() %}
File "/usr/local/lib/python3.8/dist-packages/notebook/notebook/handlers.py", line 23, in get_frontend_exporters
from nbconvert.exporters.base import get_export_names, get_exporter
File "/usr/local/lib/python3.8/dist-packages/nbconvert/__init__.py", line 4, in <module>
from .exporters import *
File "/usr/local/lib/python3.8/dist-packages/nbconvert/exporters/__init__.py", line 4, in <module>
from .slides import SlidesExporter
File "/usr/local/lib/python3.8/dist-packages/nbconvert/exporters/slides.py", line 12, in <module>
from ..preprocessors.base import Preprocessor
File "/usr/local/lib/python3.8/dist-packages/nbconvert/preprocessors/__init__.py", line 7, in <module>
from .csshtmlheader import CSSHTMLHeaderPreprocessor
File "/usr/local/lib/python3.8/dist-packages/nbconvert/preprocessors/csshtmlheader.py", line 14, in <module>
from jupyterlab_pygments import JupyterStyle
File "/usr/local/lib/python3.8/dist-packages/jupyterlab_pygments/__init__.py", line 4, in <module>
from .style import JupyterStyle
File "/usr/local/lib/python3.8/dist-packages/jupyterlab_pygments/style.py", line 10, in <module>
class JupyterStyle(Style):
File "/usr/lib/python3/dist-packages/pygments/style.py", line 101, in __new__
ndef[0] = colorformat(styledef)
File "/usr/lib/python3/dist-packages/pygments/style.py", line 58, in colorformat
assert False, "wrong color format %r" % text
AssertionError: wrong color format 'var(--jp-mirror-editor-variable-color)'
[E 22:47:46.045 NotebookApp] {
"Host": "localhost:8888",
"Connection": "keep-alive",
"Sec-Ch-Ua": "\"Chromium\";v=\"94\", \"Google Chrome\";v=\"94\", \";Not A Brand\";v=\"99\"",
"Sec-Ch-Ua-Mobile": "?0",
"Sec-Ch-Ua-Platform": "\"Linux\"",
"Upgrade-Insecure-Requests": "1",
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36",
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
"Sec-Fetch-Site": "same-origin",
"Sec-Fetch-Mode": "navigate",
"Sec-Fetch-User": "?1",
"Sec-Fetch-Dest": "document",
"Referer": "http://localhost:8888/tree/sem_tasks/05_data_files2",
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "en-US,en;q=0.9,ru;q=0.8",
"Cookie": "_xsrf=2|471c0411|ef46fbdadc5c7e7d8a5a58823e4c6c33|1639510655; username-localhost-8888=\"2|1:0|10:1639511260|23:username-localhost-8888|44:ODhiY2Y0ZWIyYzQ4NGJjZTlmNmM3MmY5MzA4ODg2ZWQ=|d4ae11da3ee3adf2eb98e1c8e69ec53333c5aaaaf3ccd58427bd5bdcda54fbc4\""
}
[E 22:47:46.045 NotebookApp] 500 GET /notebooks/sem_tasks/05_data_files2/TOBD_sem_05_data_files2_v2_blank.ipynb (127.0.0.1) 69.940000ms referer=http://localhost:8888/tree/sem_tasks/05_data_files2
Operating System and version: Linux Ubuntu 20.04.3
When faced issue for first time tried to google it. Found a recommendation to update pygments to >=2.4.1. Did pip3 install --upgrade pygments. Didn't help. Also tried to update nbconvert. Didn't help as well.
Here is the list of packages in pip3:
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋
Description
Hi. I tried running jupyter notebook recently and faced with the following issue. I run local jupyter server, try to open any notebook from filesystem and I get 500 : Internal Server Error.
Here are logs from jupyter server.
Reproducer
I installed jupyter with the following steps.
Context
When faced issue for first time tried to google it. Found a recommendation to update pygments to >=2.4.1. Did
pip3 install --upgrade pygments
. Didn't help. Also tried to update nbconvert. Didn't help as well.Here is the list of packages in pip3:
Troubleshoot Output
The text was updated successfully, but these errors were encountered: