Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Julia syntax highlighting #273

Open
EdoAlvarezR opened this issue Apr 24, 2024 · 2 comments
Open

Incorrect Julia syntax highlighting #273

EdoAlvarezR opened this issue Apr 24, 2024 · 2 comments
Labels
blocked bug Something isn't working

Comments

@EdoAlvarezR
Copy link

Description

Notebooks in nbclassic (jupyter nbclassic) have the wrong syntax highlighting with a Julia kernel. It seems like the open parenthesis ( is ignored. For instance, in this example the opening parenthesis and all function arguments have the same color than what is used for the function name, while the closing parenthesis is correctly recognized and colored:

image

This is not an issue with JupyterLab (jupyter notebook). I tested a Python kernel in nbclassic, and the syntax highlighting automatically corrects itself:

image

Context

  • OS: Ubuntu 22.04.4 LTS
  • Browser : Chrome Version 123.0.6312.105 (Official Build) (64-bit)
  • jupyter --version
    jupyter --version
    Selected Jupyter core packages...
    IPython          : 8.4.0
    ipykernel        : 6.15.0
    ipywidgets       : 7.7.1
    jupyter_client   : 8.6.1
    jupyter_core     : 5.7.2
    jupyter_server   : 2.14.0
    jupyterlab       : 4.1.6
    nbclient         : 0.6.6
    nbconvert        : 6.5.0
    nbformat         : 5.4.0
    notebook         : 7.1.2
    qtconsole        : 5.3.1
    traitlets        : 5.14.2
    
  • IJulia version: v1.24.2 with Julia v1.10.2
  • Jupyter NbClassic version (here is the output of Help -> About Jupyter NbClassic ):
    Server Information:
    You are using Jupyter NbClassic.
    
    The version of the Jupyter server is: 2.14.0
    To get the version of nbclassic, run in a terminal: jupyter nbclassic --version
    The server is running on this version of Python:
    Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]
    
    Current Kernel Information:
    Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]
    Type 'copyright', 'credits' or 'license' for more information
    IPython 8.4.0 -- An enhanced Interactive Python. Type '?' for help.
    
Troubleshoot Output
`jupyter troubleshoot` output:
[notice] A new release of pip is available: 23.3.1 -> 24.0
[notice] To update, run: python3 -m pip install --upgrade pip
$PATH:
/home/edoalvar/gems/bin
/home/edoalvar/.local/bin
/home/edoalvar/gems/bin
/home/edoalvar/.juliaup/bin
/home/edoalvar/.cargo/bin
/home/edoalvar/.local/bin
/home/edoalvar/bin
/usr/local/sbin
/usr/local/bin
/usr/sbin
/usr/bin
/sbin
/bin
/usr/games
/usr/local/games
/snap/bin
/snap/bin
/home/edoalvar/Dropbox/OtherCodes/CGNS/opt-gfortran/bin

sys.path:
/home/edoalvar/.local/bin
/usr/lib/python310.zip
/usr/lib/python3.10
/usr/lib/python3.10/lib-dynload
/home/edoalvar/.local/lib/python3.10/site-packages
/home/edoalvar/Dropbox/Code
/usr/local/lib/python3.10/dist-packages
/usr/lib/python3/dist-packages

sys.executable:
/usr/bin/python3

sys.version:
3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]

platform.platform():
Linux-6.5.0-28-generic-x86_64-with-glibc2.35

which -a jupyter:
/home/edoalvar/.local/bin/jupyter
/home/edoalvar/.local/bin/jupyter

pip list:
Package                           Version
--------------------------------- ----------------
alabaster                         0.7.12
ansi2html                         1.8.0
ansicolors                        1.1.8
anyio                             4.3.0
apturl                            0.5.2
argon2-cffi                       21.3.0
argon2-cffi-bindings              21.2.0
arrow                             1.3.0
asttokens                         2.0.5
async-lru                         2.0.4
attrs                             23.2.0
Babel                             2.14.0
backcall                          0.2.0
bcrypt                            3.2.0
beautifulsoup4                    4.10.0
bleach                            5.0.1
blinker                           1.7.0
Brlapi                            0.8.3
build-pyoptsparse                 2.0.9
cairocffi                         1.6.1
CairoSVG                          2.7.1
ccsm                              0.9.14.1
certifi                           2022.12.7
cffi                              1.15.1
cgnsutilities                     2.7.1
chardet                           4.0.0
charset-normalizer                2.1.1
chrome-gnome-shell                0.0.0
click                             8.1.7
colorama                          0.4.4
command-not-found                 0.3
compizconfig-python               0.9.14.1
contourpy                         1.1.0
coverage                          7.2.7
cryptography                      3.4.8
cssselect2                        0.7.0
cupshelpers                       1.0
cycler                            0.11.0
dash                              2.14.1
dash-core-components              2.0.0
dash-html-components              2.0.0
dash-table                        5.0.0
dbus-python                       1.2.18
debugpy                           1.6.2
decorator                         5.1.1
defer                             1.0.6
defusedxml                        0.7.1
distro                            1.7.0
distro-info                       1.1+ubuntu0.2
docutils                          0.17.1
duplicity                         0.8.21
entrypoints                       0.4
et-xmlfile                        1.1.0
exceptiongroup                    1.2.0
executing                         0.8.3
fasteners                         0.14.1
fastjsonschema                    2.15.3
Flask                             3.0.0
fonttools                         4.34.4
fpdf                              1.7.2
fqdn                              1.5.1
future                            0.18.2
geomdl                            5.3.1
gpg                               1.16.0
h11                               0.14.0
html5lib                          1.1
httpcore                          1.0.5
httplib2                          0.20.2
httpx                             0.27.0
idna                              3.4
imagesize                         1.3.0
importlib-metadata                4.6.4
intersect                         1.2
ipycanvas                         0.13.1
ipyevents                         2.0.1
ipykernel                         6.15.0
ipympl                            0.9.3
ipython                           8.4.0
ipython-genutils                  0.2.0
ipyvtklink                        0.2.3
ipywidgets                        7.7.1
isoduration                       20.11.0
itsdangerous                      2.1.2
jedi                              0.18.1
jeepney                           0.7.1
Jinja2                            3.0.3
json5                             0.9.25
jsonpointer                       2.4
jsonschema                        4.21.1
jsonschema-specifications         2023.12.1
julia                             0.6.1
jupyter                           1.0.0
jupyter_client                    8.6.1
jupyter-console                   6.4.4
jupyter-contrib-core              0.3.3
jupyter-contrib-nbextensions      0.5.1
jupyter_core                      5.7.2
jupyter-events                    0.10.0
jupyter-highlight-selected-word   0.2.0
jupyter-latex-envs                1.4.6
jupyter-lsp                       2.2.5
jupyter-nbextensions-configurator 0.4.1
jupyter_server                    2.14.0
jupyter_server_terminals          0.5.3
jupyterlab                        4.1.6
jupyterlab-pygments               0.2.2
jupyterlab_server                 2.26.0
jupyterlab-widgets                1.1.1
kazam                             1.4.5
keyring                           23.5.0
kiwisolver                        1.4.3
language-selector                 0.1
launchpadlib                      1.10.16
lazr.restfulclient                0.14.4
lazr.uri                          1.0.6
linkify-it-py                     2.0.0
livereload                        2.6.3
lockfile                          0.12.2
louis                             3.20.0
lxml                              4.8.0
m2r                               0.2.1
m2r2                              0.3.3
macaroonbakery                    1.3.1
Mako                              1.1.3
Markdown                          3.3.6
markdown-it-py                    2.1.0
MarkupSafe                        2.1.3
matplotlib                        3.7.2
matplotlib-inline                 0.1.3
mdit-py-plugins                   0.3.1
mdolab-baseclasses                1.8.0
mdurl                             0.1.2
mistune                           0.8.4
mkdocs                            1.1.2
monotonic                         1.6
more-itertools                    8.10.0
mpi4py                            3.1.5
mpmath                            1.2.1
myst-parser                       0.18.1
nbclassic                         1.0.0
nbclient                          0.6.6
nbconvert                         6.5.0
nbformat                          5.4.0
nest-asyncio                      1.5.5
netifaces                         0.11.0
notebook                          7.1.2
notebook_shim                     0.2.4
numpy                             1.26.2
oauthlib                          3.2.0
olefile                           0.46
openai                            0.25.0
openpyxl                          3.0.10
overrides                         7.7.0
packaging                         24.0
pandas                            1.5.2
pandas-stubs                      1.5.2.221213
pandocfilters                     1.5.0
paramiko                          2.8.1
parso                             0.8.3
pdf2image                         1.16.3
pexpect                           4.8.0
pickleshare                       0.7.5
Pillow                            9.0.1
Pint                              0.20.1
pip                               23.3.1
platformdirs                      4.2.0
plotly                            5.18.0
prometheus-client                 0.14.1
prompt-toolkit                    3.0.30
protobuf                          3.12.4
psutil                            5.9.1
ptyprocess                        0.7.0
pure-eval                         0.2.2
pycairo                           1.20.1
pycparser                         2.21
pycups                            2.0.1
Pygments                          2.12.0
PyGObject                         3.42.1
pyhyp                             2.6.1
pyinotify                         0.9.6
PyJWT                             2.3.0
pymacaroons                       0.13.0
PyNaCl                            1.5.0
pyoptsparse                       2.10.1
pyparsing                         2.4.7
pyperclip                         1.8.2
PyQt5                             5.15.9
PyQt5-Qt5                         5.15.2
PyQt5-sip                         12.12.1
pyRFC3339                         1.1
pyrsistent                        0.18.1
python-apt                        2.4.0+ubuntu3
python-dateutil                   2.8.2
python-debian                     0.1.43+ubuntu1.1
python-json-logger                2.0.7
python-xlib                       0.29
pytz                              2022.6
pyudev                            0.22.0
pyxdg                             0.27
pyXDSM                            2.2.2
PyYAML                            6.0.1
pyzmq                             26.0.0
qtconsole                         5.3.1
QtPy                              2.1.0
referencing                       0.34.0
reportlab                         3.6.8
requests                          2.31.0
retrying                          1.3.4
rfc3339-validator                 0.1.4
rfc3986-validator                 0.1.1
roman                             3.3
rpds-py                           0.18.0
scipy                             1.11.1
scour                             0.38.2
scp                               0.14.2
screen-resolution-extra           0.0.0
SecretStorage                     3.3.1
Send2Trash                        1.8.3
setuptools                        59.6.0
simple-term-menu                  1.5.2
six                               1.16.0
sniffio                           1.3.1
snowballstemmer                   2.2.0
soupsieve                         2.3.1
Sphinx                            4.3.2
sphinx-rtd-theme                  1.0.0
sqlitedict                        2.1.0
stack-data                        0.3.0
svgutils                          0.3.4
systemd-python                    234
tenacity                          8.2.3
terminado                         0.15.0
terminal-copilot                  1.0.9
tinycss2                          1.1.1
tomli                             2.0.1
tornado                           6.2
tqdm                              4.64.1
traitlets                         5.14.2
types-python-dateutil             2.9.0.20240316
types-pytz                        2022.6.0.1
typing_extensions                 4.4.0
ubuntu-drivers-common             0.0.0
ubuntu-pro-client                 8001
uc-micro-py                       1.0.1
ufw                               0.36.1
unattended-upgrades               0.1
uri-template                      1.3.0
urllib3                           1.26.13
usb-creator                       0.3.7
vtk                               9.3.0
wadllib                           1.3.6
Wand                              0.6.11
wcwidth                           0.2.5
webcolors                         1.13
webencodings                      0.5.1
webio-jupyter-extension           0.1.0
websocket-client                  1.7.0
Werkzeug                          3.0.1
wheel                             0.37.1
widgetsnbextension                3.6.1
xdg                               5
xkit                              0.0.0
zipp                              1.0.0
Command Line Output
`jupyter nbclassic --debug` output:
```
[D 2024-04-24 11:31:15.343 ServerApp] Searching ['/home/edoalvar/.jupyter', '/home/edoalvar/.local/etc/jupyter', '/usr/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files
[D 2024-04-24 11:31:15.343 ServerApp] Looking for jupyter_config in /etc/jupyter
[D 2024-04-24 11:31:15.343 ServerApp] Looking for jupyter_config in /usr/local/etc/jupyter
[D 2024-04-24 11:31:15.343 ServerApp] Looking for jupyter_config in /usr/etc/jupyter
[D 2024-04-24 11:31:15.343 ServerApp] Looking for jupyter_config in /home/edoalvar/.local/etc/jupyter
[D 2024-04-24 11:31:15.343 ServerApp] Looking for jupyter_config in /home/edoalvar/.jupyter
[D 2024-04-24 11:31:15.343 ServerApp] Looking for jupyter_server_config in /etc/jupyter
[D 2024-04-24 11:31:15.343 ServerApp] Looking for jupyter_server_config in /usr/local/etc/jupyter
[D 2024-04-24 11:31:15.343 ServerApp] Looking for jupyter_server_config in /usr/etc/jupyter
[D 2024-04-24 11:31:15.343 ServerApp] Looking for jupyter_server_config in /home/edoalvar/.local/etc/jupyter
[D 2024-04-24 11:31:15.343 ServerApp] Looking for jupyter_server_config in /home/edoalvar/.jupyter
[D 2024-04-24 11:31:15.345 ServerApp] Paths used for configuration of jupyter_server_config: 
    	/etc/jupyter/jupyter_server_config.json
[D 2024-04-24 11:31:15.345 ServerApp] Paths used for configuration of jupyter_server_config: 
    	/usr/local/etc/jupyter/jupyter_server_config.json
[D 2024-04-24 11:31:15.345 ServerApp] Paths used for configuration of jupyter_server_config: 
    	/usr/etc/jupyter/jupyter_server_config.json
[D 2024-04-24 11:31:15.345 ServerApp] Paths used for configuration of jupyter_server_config: 
    	/home/edoalvar/.local/etc/jupyter/jupyter_server_config.d/jupyter-lsp-jupyter-server.json
    	/home/edoalvar/.local/etc/jupyter/jupyter_server_config.d/jupyter_server_terminals.json
    	/home/edoalvar/.local/etc/jupyter/jupyter_server_config.d/jupyterlab.json
    	/home/edoalvar/.local/etc/jupyter/jupyter_server_config.d/nbclassic.json
    	/home/edoalvar/.local/etc/jupyter/jupyter_server_config.d/notebook.json
    	/home/edoalvar/.local/etc/jupyter/jupyter_server_config.d/notebook_shim.json
    	/home/edoalvar/.local/etc/jupyter/jupyter_server_config.d/webio_jupyter_extension.json
    	/home/edoalvar/.local/etc/jupyter/jupyter_server_config.json
[D 2024-04-24 11:31:15.345 ServerApp] Paths used for configuration of jupyter_server_config: 
    	/home/edoalvar/.jupyter/jupyter_server_config.json
[D 2024-04-24 11:31:15.348 ServerApp] Extension package nbclassic took 0.0000s to import
[W 2024-04-24 11:31:15.348 ServerApp] A `_jupyter_server_extension_points` function was not found in nbclassic. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[D 2024-04-24 11:31:15.352 ServerApp] Extension package jupyter_lsp took 0.0045s to import
[D 2024-04-24 11:31:15.355 ServerApp] Extension package jupyter_server_terminals took 0.0021s to import
[D 2024-04-24 11:31:15.386 ServerApp] Extension package jupyterlab took 0.0311s to import
[D 2024-04-24 11:31:15.429 ServerApp] Paths used for configuration of page_config: 
    	/usr/etc/jupyter/labconfig/page_config.json
[D 2024-04-24 11:31:15.430 ServerApp] Paths used for configuration of page_config: 
    	/home/edoalvar/.jupyter/labconfig/page_config.json
[D 2024-04-24 11:31:15.430 ServerApp] Paths used for configuration of page_config: 

[D 2024-04-24 11:31:15.433 ServerApp] Extension package notebook took 0.0000s to import
[D 2024-04-24 11:31:15.434 ServerApp] Extension package notebook_shim took 0.0000s to import
[D 2024-04-24 11:31:15.435 ServerApp] Extension package webio_jupyter_extension.serverextension took 0.0005s to import
[D 2024-04-24 11:31:15.435 ServerApp] A _jupyter_server_extension_points function was not found in webio_jupyter_extension.serverextension, so Jupyter Server will look for extension points in the extension pacakge's root.
[I 2024-04-24 11:31:15.435 ServerApp] jupyter_lsp | extension was successfully linked.
[D 2024-04-24 11:31:15.437 TerminalsExtensionApp] Config changed: {'ServerApp': {'log_level': 'DEBUG', 'jpserver_extensions': <LazyConfigValue {'update': {'jupyter_lsp': True, 'jupyter_server_terminals': True, 'jupyterlab': True, 'notebook': True, 'notebook_shim': True, 'webio_jupyter_extension.serverextension': True}}>}, 'ExtensionApp': {'log_level': 'DEBUG'}}
[D 2024-04-24 11:31:15.438 ServerApp] Config changed: {'ServerApp': {'log_level': 'DEBUG', 'jpserver_extensions': <LazyConfigValue value={'nbclassic': True, 'jupyter_lsp': True, 'jupyter_server_terminals': True, 'jupyterlab': True, 'notebook': True, 'notebook_shim': True, 'webio_jupyter_extension.serverextension': True}>}, 'ExtensionApp': {'log_level': 'DEBUG'}}
[I 2024-04-24 11:31:15.438 ServerApp] jupyter_server_terminals | extension was successfully linked.
[D 2024-04-24 11:31:15.440 LabApp] Config changed: {'NotebookApp': {}, 'ServerApp': {'log_level': 'DEBUG', 'jpserver_extensions': <LazyConfigValue value={'nbclassic': True, 'jupyter_lsp': True, 'jupyter_server_terminals': True, 'jupyterlab': True, 'notebook': True, 'notebook_shim': True, 'webio_jupyter_extension.serverextension': True}>}, 'ExtensionApp': {'log_level': 'DEBUG'}}
[I 2024-04-24 11:31:15.441 ServerApp] jupyterlab | extension was successfully linked.
[D 2024-04-24 11:31:15.443 NotebookApp] Config changed: {'NotebookApp': {'nbserver_extensions': {'jupyter_nbextensions_configurator': True}}, 'ServerApp': {'log_level': 'DEBUG', 'jpserver_extensions': <LazyConfigValue value={'nbclassic': True, 'jupyter_lsp': True, 'jupyter_server_terminals': True, 'jupyterlab': True, 'notebook': True, 'notebook_shim': True, 'webio_jupyter_extension.serverextension': True}>}, 'ExtensionApp': {'log_level': 'DEBUG'}}
[I 2024-04-24 11:31:15.443 ServerApp] nbclassic | extension was successfully linked.
[D 2024-04-24 11:31:15.446 JupyterNotebookApp] Config changed: {'NotebookApp': {'nbserver_extensions': {'jupyter_nbextensions_configurator': True}}, 'ServerApp': {'log_level': 'DEBUG', 'jpserver_extensions': <LazyConfigValue value={'nbclassic': True, 'jupyter_lsp': True, 'jupyter_server_terminals': True, 'jupyterlab': True, 'notebook': True, 'notebook_shim': True, 'webio_jupyter_extension.serverextension': True}>}, 'ExtensionApp': {'log_level': 'DEBUG'}}
[I 2024-04-24 11:31:15.446 ServerApp] notebook | extension was successfully linked.
[D 2024-04-24 11:31:15.548 ServerApp] Paths used for configuration of jupyter_notebook_config:
/home/edoalvar/.jupyter/jupyter_notebook_config.json
[D 2024-04-24 11:31:15.548 ServerApp] Paths used for configuration of jupyter_notebook_config:
/etc/jupyter/jupyter_notebook_config.json
[D 2024-04-24 11:31:15.548 ServerApp] Paths used for configuration of jupyter_notebook_config:
/usr/local/etc/jupyter/jupyter_notebook_config.json
[D 2024-04-24 11:31:15.549 ServerApp] Paths used for configuration of jupyter_notebook_config:
/usr/etc/jupyter/jupyter_notebook_config.json
[D 2024-04-24 11:31:15.549 ServerApp] Paths used for configuration of jupyter_notebook_config:
/home/edoalvar/.local/etc/jupyter/jupyter_notebook_config.d/jupyterlab.json
/home/edoalvar/.local/etc/jupyter/jupyter_notebook_config.d/webio_jupyter_extension.json
/home/edoalvar/.local/etc/jupyter/jupyter_notebook_config.json
[D 2024-04-24 11:31:15.549 ServerApp] Paths used for configuration of jupyter_notebook_config:
/home/edoalvar/.jupyter/jupyter_notebook_config.json
[D 2024-04-24 11:31:15.549 ServerApp] Extension package jupyter_nbextensions_configurator took 0.0003s to import
[W 2024-04-24 11:31:15.549 ServerApp] A _jupyter_server_extension_points function was not found in jupyter_nbextensions_configurator. Instead, a _jupyter_server_extension_paths function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[I 2024-04-24 11:31:15.549 ServerApp] jupyter_nbextensions_configurator | extension was found and enabled by notebook_shim. Consider moving the extension to Jupyter Server's extension paths.
[I 2024-04-24 11:31:15.549 ServerApp] jupyter_nbextensions_configurator | extension was successfully linked.
[I 2024-04-24 11:31:15.549 ServerApp] notebook_shim | extension was successfully linked.
[I 2024-04-24 11:31:15.549 ServerApp] webio_jupyter_extension.serverextension | extension was successfully linked.
[D 2024-04-24 11:31:15.550 ServerApp] Config changed: {'ExtensionApp': {'log_level': 'DEBUG'}, 'NotebookApp': {'nbserver_extensions': {'jupyter_nbextensions_configurator': True}}, 'ServerApp': {'log_level': 'DEBUG', 'jpserver_extensions': <LazyConfigValue value={'nbclassic': True, 'jupyter_lsp': True, 'jupyter_server_terminals': True, 'jupyterlab': True, 'notebook': True, 'notebook_shim': True, 'webio_jupyter_extension.serverextension': True}>}}
[D 2024-04-24 11:31:15.550 ServerApp] Raising open file limit: soft 1024->4096; hard 1048576->1048576
[I 2024-04-24 11:31:15.558 ServerApp] notebook_shim | extension was successfully loaded.
[D 2024-04-24 11:31:15.559 ServerApp] [lsp] rootUri will be file:///home/edoalvar/Dropbox/WhisperAero/LabNotebook
[D 2024-04-24 11:31:15.559 ServerApp] [lsp] virtualDocumentsUri will be file:///home/edoalvar/Dropbox/WhisperAero/LabNotebook/.virtual_documents
[I 2024-04-24 11:31:15.559 ServerApp] jupyter_lsp | extension was successfully loaded.
[D 2024-04-24 11:31:15.559 ServerApp] [jupyter_nbextensions_configurator] Loading 0.4.1
[D 2024-04-24 11:31:15.559 ServerApp] [jupyter_nbextensions_configurator] Editing templates path to add /home/edoalvar/.local/lib/python3.10/site-packages/jupyter_nbextensions_configurator/templates
[D 2024-04-24 11:31:15.559 ServerApp] [jupyter_nbextensions_configurator] Editing nbextensions path to add /home/edoalvar/.local/lib/python3.10/site-packages/jupyter_nbextensions_configurator/static
[W 2024-04-24 11:31:15.559 ServerApp] jupyter_nbextensions_configurator | extension failed loading with message: KeyError('nbextensions_path')
Traceback (most recent call last):
File "/home/edoalvar/.local/lib/python3.10/site-packages/jupyter_server/extension/manager.py", line 360, in load_extension
extension.load_all_points(self.serverapp)
File "/home/edoalvar/.local/lib/python3.10/site-packages/jupyter_server/extension/manager.py", line 232, in load_all_points
return [self.load_point(point_name, serverapp) for point_name in self.extension_points]
File "/home/edoalvar/.local/lib/python3.10/site-packages/jupyter_server/extension/manager.py", line 232, in
return [self.load_point(point_name, serverapp) for point_name in self.extension_points]
File "/home/edoalvar/.local/lib/python3.10/site-packages/jupyter_server/extension/manager.py", line 223, in load_point
return point.load(serverapp)
File "/home/edoalvar/.local/lib/python3.10/site-packages/jupyter_server/extension/manager.py", line 151, in load
return loader(serverapp)
File "/home/edoalvar/.local/lib/python3.10/site-packages/jupyter_nbextensions_configurator/init.py", line 247, in load_jupyter_server_extension
if static_files_path not in webapp.settings['nbextensions_path']:
KeyError: 'nbextensions_path'
[I 2024-04-24 11:31:15.560 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2024-04-24 11:31:15.561 LabApp] JupyterLab extension loaded from /home/edoalvar/.local/lib/python3.10/site-packages/jupyterlab
[I 2024-04-24 11:31:15.561 LabApp] JupyterLab application directory is /home/edoalvar/.local/share/jupyter/lab
[I 2024-04-24 11:31:15.561 LabApp] Extension Manager is 'pypi'.
[D 2024-04-24 11:31:15.561 LabApp] Plugins in PyPIExtensionManager will managed on the sys_prefix level
[D 2024-04-24 11:31:15.588 LabApp] Extensions list will be fetched from https://pypi.org/pypi.
[D 2024-04-24 11:31:15.588 LabApp] Plugins in PluginManager will managed on the sys_prefix level
[I 2024-04-24 11:31:15.589 ServerApp] jupyterlab | extension was successfully loaded.


| | | |_ __ | | | | ___
| || | ' / / _ | / -)
_/| ./_
,_,|____|
|_|

Read the migration plan to Notebook 7 to learn about the new features and the actions to take if you are using extensions.

https://jupyter-notebook.readthedocs.io/en/latest/migrate_to_notebook7.html

Please note that updating to Notebook 7 might break some of your extensions.

[I 2024-04-24 11:31:15.591 ServerApp] nbclassic | extension was successfully loaded.
[I 2024-04-24 11:31:15.593 ServerApp] notebook | extension was successfully loaded.
[I 2024-04-24 11:31:15.593 ServerApp] webio_jupyter_extension.serverextension | extension was successfully loaded.
[I 2024-04-24 11:31:15.593 ServerApp] The port 8888 is already in use, trying another port.
[I 2024-04-24 11:31:15.594 ServerApp] Serving notebooks from local directory: /home/edoalvar/Dropbox/WhisperAero/LabNotebook
[I 2024-04-24 11:31:15.594 ServerApp] Jupyter Server 2.14.0 is running at:
[I 2024-04-24 11:31:15.594 ServerApp] http://localhost:8889/nbclassic/tree?token=dfc21e1187ea35c778680f606b31a59a76d544a5e836ddbe
[I 2024-04-24 11:31:15.594 ServerApp] http://127.0.0.1:8889/nbclassic/tree?token=dfc21e1187ea35c778680f606b31a59a76d544a5e836ddbe
[I 2024-04-24 11:31:15.594 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2024-04-24 11:31:15.610 ServerApp]

To access the server, open this file in a browser:
    file:///home/edoalvar/.local/share/jupyter/runtime/jpserver-11452-open.html
Or copy and paste one of these URLs:
    http://localhost:8889/nbclassic/tree?token=dfc21e1187ea35c778680f606b31a59a76d544a5e836ddbe
    http://127.0.0.1:8889/nbclassic/tree?token=dfc21e1187ea35c778680f606b31a59a76d544a5e836ddbe

[D 2024-04-24 11:31:15.612 ServerApp] Paths used for configuration of jupyter_config:
/etc/jupyter/jupyter_config.json
[D 2024-04-24 11:31:15.612 ServerApp] Paths used for configuration of jupyter_config:
/usr/local/etc/jupyter/jupyter_config.json
[D 2024-04-24 11:31:15.612 ServerApp] Paths used for configuration of jupyter_config:
/usr/etc/jupyter/jupyter_config.json
[D 2024-04-24 11:31:15.612 ServerApp] Paths used for configuration of jupyter_config:
/home/edoalvar/.local/etc/jupyter/jupyter_config.json
[D 2024-04-24 11:31:15.612 ServerApp] Paths used for configuration of jupyter_config:
/home/edoalvar/.jupyter/jupyter_config.json
[D 2024-04-24 11:31:15.612 ServerApp] Paths used for configuration of jupyter_notebook_config:
/etc/jupyter/jupyter_notebook_config.json
[D 2024-04-24 11:31:15.613 ServerApp] Paths used for configuration of jupyter_notebook_config:
/usr/local/etc/jupyter/jupyter_notebook_config.json
[D 2024-04-24 11:31:15.613 ServerApp] Paths used for configuration of jupyter_notebook_config:
/usr/etc/jupyter/jupyter_notebook_config.json
[D 2024-04-24 11:31:15.613 ServerApp] Paths used for configuration of jupyter_notebook_config:
/home/edoalvar/.local/etc/jupyter/jupyter_notebook_config.d/jupyterlab.json
/home/edoalvar/.local/etc/jupyter/jupyter_notebook_config.d/webio_jupyter_extension.json
/home/edoalvar/.local/etc/jupyter/jupyter_notebook_config.json
[D 2024-04-24 11:31:15.613 ServerApp] Paths used for configuration of jupyter_notebook_config:
/home/edoalvar/.jupyter/jupyter_notebook_config.json
[D 2024-04-24 11:31:15.613 ServerApp] Paths used for configuration of jupyter_server_config:
/etc/jupyter/jupyter_server_config.json
[D 2024-04-24 11:31:15.613 ServerApp] Paths used for configuration of jupyter_server_config:
/usr/local/etc/jupyter/jupyter_server_config.json
[D 2024-04-24 11:31:15.613 ServerApp] Paths used for configuration of jupyter_server_config:
/usr/etc/jupyter/jupyter_server_config.json
[D 2024-04-24 11:31:15.613 ServerApp] Paths used for configuration of jupyter_server_config:
/home/edoalvar/.local/etc/jupyter/jupyter_server_config.d/jupyter-lsp-jupyter-server.json
/home/edoalvar/.local/etc/jupyter/jupyter_server_config.d/jupyter_server_terminals.json
/home/edoalvar/.local/etc/jupyter/jupyter_server_config.d/jupyterlab.json
/home/edoalvar/.local/etc/jupyter/jupyter_server_config.d/nbclassic.json
/home/edoalvar/.local/etc/jupyter/jupyter_server_config.d/notebook.json
/home/edoalvar/.local/etc/jupyter/jupyter_server_config.d/notebook_shim.json
/home/edoalvar/.local/etc/jupyter/jupyter_server_config.d/webio_jupyter_extension.json
/home/edoalvar/.local/etc/jupyter/jupyter_server_config.json
[D 2024-04-24 11:31:15.613 ServerApp] Paths used for configuration of jupyter_server_config:
/home/edoalvar/.jupyter/jupyter_server_config.json
[D 2024-04-24 11:31:15.620 ServerApp] Checking for /home/edoalvar/Dropbox/WhisperAero/LabNotebook/node_modules/bash-language-server/out/cli.js
[D 2024-04-24 11:31:15.620 ServerApp] Checking for /home/edoalvar/.local/share/jupyter/lab/staging/node_modules/bash-language-server/out/cli.js
[D 2024-04-24 11:31:15.620 ServerApp] Checking for /usr/lib/node_modules/bash-language-server/out/cli.js
[D 2024-04-24 11:31:15.620 ServerApp] Checking for /usr/node_modules/bash-language-server/out/cli.js
[D 2024-04-24 11:31:15.620 ServerApp] bash-language-server/out/cli.js not found in node_modules of [PosixPath('/home/edoalvar/Dropbox/WhisperAero/LabNotebook'), PosixPath('/home/edoalvar/.local/share/jupyter/lab/staging'), PosixPath('/usr/lib'), PosixPath('/usr')]
[D 2024-04-24 11:31:15.620 ServerApp] Checking for /home/edoalvar/Dropbox/WhisperAero/LabNotebook/node_modules/bash-language-server/bin/main.js
[D 2024-04-24 11:31:15.620 ServerApp] Checking for /home/edoalvar/.local/share/jupyter/lab/staging/node_modules/bash-language-server/bin/main.js
[D 2024-04-24 11:31:15.620 ServerApp] Checking for /usr/lib/node_modules/bash-language-server/bin/main.js
[D 2024-04-24 11:31:15.620 ServerApp] Checking for /usr/node_modules/bash-language-server/bin/main.js
[D 2024-04-24 11:31:15.620 ServerApp] bash-language-server/bin/main.js not found in node_modules of [PosixPath('/home/edoalvar/Dropbox/WhisperAero/LabNotebook'), PosixPath('/home/edoalvar/.local/share/jupyter/lab/staging'), PosixPath('/usr/lib'), PosixPath('/usr')]
[D 2024-04-24 11:31:15.621 ServerApp] Checking for /home/edoalvar/Dropbox/WhisperAero/LabNotebook/node_modules/dockerfile-language-server-nodejs/lib/server.js
[D 2024-04-24 11:31:15.621 ServerApp] Checking for /home/edoalvar/.local/share/jupyter/lab/staging/node_modules/dockerfile-language-server-nodejs/lib/server.js
[D 2024-04-24 11:31:15.621 ServerApp] Checking for /usr/lib/node_modules/dockerfile-language-server-nodejs/lib/server.js
[D 2024-04-24 11:31:15.621 ServerApp] Checking for /usr/node_modules/dockerfile-language-server-nodejs/lib/server.js
[D 2024-04-24 11:31:15.621 ServerApp] dockerfile-language-server-nodejs/lib/server.js not found in node_modules of [PosixPath('/home/edoalvar/Dropbox/WhisperAero/LabNotebook'), PosixPath('/home/edoalvar/.local/share/jupyter/lab/staging'), PosixPath('/usr/lib'), PosixPath('/usr')]
[D 2024-04-24 11:31:15.621 ServerApp] Checking for /home/edoalvar/Dropbox/WhisperAero/LabNotebook/node_modules/javascript-typescript-langserver/lib/language-server-stdio.js
[D 2024-04-24 11:31:15.621 ServerApp] Checking for /home/edoalvar/.local/share/jupyter/lab/staging/node_modules/javascript-typescript-langserver/lib/language-server-stdio.js
[D 2024-04-24 11:31:15.621 ServerApp] Checking for /usr/lib/node_modules/javascript-typescript-langserver/lib/language-server-stdio.js
[D 2024-04-24 11:31:15.621 ServerApp] Checking for /usr/node_modules/javascript-typescript-langserver/lib/language-server-stdio.js
[D 2024-04-24 11:31:15.621 ServerApp] javascript-typescript-langserver/lib/language-server-stdio.js not found in node_modules of [PosixPath('/home/edoalvar/Dropbox/WhisperAero/LabNotebook'), PosixPath('/home/edoalvar/.local/share/jupyter/lab/staging'), PosixPath('/usr/lib'), PosixPath('/usr')]
[D 2024-04-24 11:31:15.740 ServerApp] Checking for /home/edoalvar/Dropbox/WhisperAero/LabNotebook/node_modules/pyright/langserver.index.js
[D 2024-04-24 11:31:15.741 ServerApp] Checking for /home/edoalvar/.local/share/jupyter/lab/staging/node_modules/pyright/langserver.index.js
[D 2024-04-24 11:31:15.741 ServerApp] Checking for /usr/lib/node_modules/pyright/langserver.index.js
[D 2024-04-24 11:31:15.741 ServerApp] Checking for /usr/node_modules/pyright/langserver.index.js
[D 2024-04-24 11:31:15.741 ServerApp] pyright/langserver.index.js not found in node_modules of [PosixPath('/home/edoalvar/Dropbox/WhisperAero/LabNotebook'), PosixPath('/home/edoalvar/.local/share/jupyter/lab/staging'), PosixPath('/usr/lib'), PosixPath('/usr')]
[D 2024-04-24 11:31:15.742 ServerApp] Checking for /home/edoalvar/Dropbox/WhisperAero/LabNotebook/node_modules/sql-language-server/dist/bin/cli.js
[D 2024-04-24 11:31:15.742 ServerApp] Checking for /home/edoalvar/.local/share/jupyter/lab/staging/node_modules/sql-language-server/dist/bin/cli.js
[D 2024-04-24 11:31:15.742 ServerApp] Checking for /usr/lib/node_modules/sql-language-server/dist/bin/cli.js
[D 2024-04-24 11:31:15.742 ServerApp] Checking for /usr/node_modules/sql-language-server/dist/bin/cli.js
[D 2024-04-24 11:31:15.742 ServerApp] sql-language-server/dist/bin/cli.js not found in node_modules of [PosixPath('/home/edoalvar/Dropbox/WhisperAero/LabNotebook'), PosixPath('/home/edoalvar/.local/share/jupyter/lab/staging'), PosixPath('/usr/lib'), PosixPath('/usr')]
[D 2024-04-24 11:31:15.742 ServerApp] Checking for /home/edoalvar/Dropbox/WhisperAero/LabNotebook/node_modules/typescript-language-server/lib/cli.mjs
[D 2024-04-24 11:31:15.742 ServerApp] Checking for /home/edoalvar/.local/share/jupyter/lab/staging/node_modules/typescript-language-server/lib/cli.mjs
[D 2024-04-24 11:31:15.742 ServerApp] Checking for /usr/lib/node_modules/typescript-language-server/lib/cli.mjs
[D 2024-04-24 11:31:15.742 ServerApp] Checking for /usr/node_modules/typescript-language-server/lib/cli.mjs
[D 2024-04-24 11:31:15.742 ServerApp] typescript-language-server/lib/cli.mjs not found in node_modules of [PosixPath('/home/edoalvar/Dropbox/WhisperAero/LabNotebook'), PosixPath('/home/edoalvar/.local/share/jupyter/lab/staging'), PosixPath('/usr/lib'), PosixPath('/usr')]
[D 2024-04-24 11:31:15.742 ServerApp] Checking for /home/edoalvar/Dropbox/WhisperAero/LabNotebook/node_modules/unified-language-server/src/server.js
[D 2024-04-24 11:31:15.742 ServerApp] Checking for /home/edoalvar/.local/share/jupyter/lab/staging/node_modules/unified-language-server/src/server.js
[D 2024-04-24 11:31:15.742 ServerApp] Checking for /usr/lib/node_modules/unified-language-server/src/server.js
[D 2024-04-24 11:31:15.742 ServerApp] Checking for /usr/node_modules/unified-language-server/src/server.js
[D 2024-04-24 11:31:15.742 ServerApp] unified-language-server/src/server.js not found in node_modules of [PosixPath('/home/edoalvar/Dropbox/WhisperAero/LabNotebook'), PosixPath('/home/edoalvar/.local/share/jupyter/lab/staging'), PosixPath('/usr/lib'), PosixPath('/usr')]
[D 2024-04-24 11:31:15.742 ServerApp] Checking for /home/edoalvar/Dropbox/WhisperAero/LabNotebook/node_modules/vscode-css-languageserver-bin/cssServerMain.js
[D 2024-04-24 11:31:15.742 ServerApp] Checking for /home/edoalvar/.local/share/jupyter/lab/staging/node_modules/vscode-css-languageserver-bin/cssServerMain.js
[D 2024-04-24 11:31:15.742 ServerApp] Checking for /usr/lib/node_modules/vscode-css-languageserver-bin/cssServerMain.js
[D 2024-04-24 11:31:15.742 ServerApp] Checking for /usr/node_modules/vscode-css-languageserver-bin/cssServerMain.js
[D 2024-04-24 11:31:15.742 ServerApp] vscode-css-languageserver-bin/cssServerMain.js not found in node_modules of [PosixPath('/home/edoalvar/Dropbox/WhisperAero/LabNotebook'), PosixPath('/home/edoalvar/.local/share/jupyter/lab/staging'), PosixPath('/usr/lib'), PosixPath('/usr')]
[D 2024-04-24 11:31:15.742 ServerApp] Checking for /home/edoalvar/Dropbox/WhisperAero/LabNotebook/node_modules/vscode-html-languageserver-bin/htmlServerMain.js
[D 2024-04-24 11:31:15.742 ServerApp] Checking for /home/edoalvar/.local/share/jupyter/lab/staging/node_modules/vscode-html-languageserver-bin/htmlServerMain.js
[D 2024-04-24 11:31:15.742 ServerApp] Checking for /usr/lib/node_modules/vscode-html-languageserver-bin/htmlServerMain.js
[D 2024-04-24 11:31:15.742 ServerApp] Checking for /usr/node_modules/vscode-html-languageserver-bin/htmlServerMain.js
[D 2024-04-24 11:31:15.742 ServerApp] vscode-html-languageserver-bin/htmlServerMain.js not found in node_modules of [PosixPath('/home/edoalvar/Dropbox/WhisperAero/LabNotebook'), PosixPath('/home/edoalvar/.local/share/jupyter/lab/staging'), PosixPath('/usr/lib'), PosixPath('/usr')]
[D 2024-04-24 11:31:15.743 ServerApp] Checking for /home/edoalvar/Dropbox/WhisperAero/LabNotebook/node_modules/vscode-json-languageserver-bin/jsonServerMain.js
[D 2024-04-24 11:31:15.743 ServerApp] Checking for /home/edoalvar/.local/share/jupyter/lab/staging/node_modules/vscode-json-languageserver-bin/jsonServerMain.js
[D 2024-04-24 11:31:15.743 ServerApp] Checking for /usr/lib/node_modules/vscode-json-languageserver-bin/jsonServerMain.js
[D 2024-04-24 11:31:15.743 ServerApp] Checking for /usr/node_modules/vscode-json-languageserver-bin/jsonServerMain.js
[D 2024-04-24 11:31:15.743 ServerApp] vscode-json-languageserver-bin/jsonServerMain.js not found in node_modules of [PosixPath('/home/edoalvar/Dropbox/WhisperAero/LabNotebook'), PosixPath('/home/edoalvar/.local/share/jupyter/lab/staging'), PosixPath('/usr/lib'), PosixPath('/usr')]
[D 2024-04-24 11:31:15.743 ServerApp] Checking for /home/edoalvar/Dropbox/WhisperAero/LabNotebook/node_modules/yaml-language-server/bin/yaml-language-server
[D 2024-04-24 11:31:15.743 ServerApp] Checking for /home/edoalvar/.local/share/jupyter/lab/staging/node_modules/yaml-language-server/bin/yaml-language-server
.
.
.


</pre>
</details>
@EdoAlvarezR EdoAlvarezR added bug Something isn't working status:Needs Triage labels Apr 24, 2024
@EdoAlvarezR
Copy link
Author

@echarles, @blink1073, @ericsnekbytes, @Zsailer

Could one of you point me to where the rules for syntax highlighting are defined so I can fix this?

@krassowski
Copy link
Member

That would be the legacy CodeMirror 5 mode for Julia https://codemirror.net/5/mode/julia/ - I would not put too much hope in getting changes merged into CodeMirror 5, but you can try.

Of note Notebook 7 uses CodeMirror 6; it still uses the legacy mode, but there are also some alternatives using the new parser, e.g. https://github.com/JuliaPluto/lang-julia

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants