opencybersecurityalliance / kestrel-jupyter

Kestrel Jupyter Notebook Kernel
Apache License 2.0
9 stars 2 forks source link

Jupyter Lab syntax highlight #8

Open subbyte opened 2 years ago

subbyte commented 2 years ago

Jupyter Lab ships with compiled codemirror module (e.g., lib/python3.9/site-packages/jupyterlab/static/6080.39703b8cc7bd284ce1bd.js). There is no static codemirror submodule to patch/hack like what we did for Jupyter Notebook, discussed here. And the compiled js file has encoded function named as integers and simply inserting a function is not possible.

The remaining possibility is to develop a Jupyter Lab extension for syntax highlighting, which can be installed from

Further discussion is welcome.

Some information that could be useful: https://github.com/jupyterlab/jupyterlab/issues/5504