sebasguts / jupyter_kernel_singular

Jupyter wrapper kernel for singular
GNU General Public License v2.0
10 stars 5 forks source link

Enabling syntax highlighting #10

Open redtrumpet opened 5 years ago

redtrumpet commented 5 years ago

First, syntax highlighting was not enabled by default in my jupyter 5.7 notebook, so the README is misleading here.

To enable it, I had to use the command

jupyter nbextension enable --sys-prefix singular-mode/main

i.e. I had to remove the jupyter_kernel_singular part.

yuriever commented 2 years ago

I also met this problem. From ~/site-packages/jupyter_kernel_singular-0.9.9-py3.10.egg-info/installed-files.txt we can see that the extension is installed as

../../../../share/jupyter/nbextensions/singular-mode/main.js

Hence

jupyter nbextension enable --sys-prefix singular-mode/main

is the correct one. For JupyterLab I don't find --sys-prefix of jupyter labextension, and copying the path of main.js by hand works.