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
source (requiring NodeJS) or
pre-built npm package (need to publish the extension to npm)
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