Closed fortierq closed 3 years ago
This is because there are too many codemirrow modes and sos by default only include some of the common ones. I can either add c mode, or figure out some way to make it configurable.
are the modes that are loaded by default. I guess I need some JS guru to show me how to load them dynamically.
I pushed a patch to the cpp
branch without testing it. Please let me know if it works for you after
pip install -e .
under the source directorypython -m sos_notebook.install
and restart jupyter. Thank you! I think mllike should be used instead of ocaml for codemirror (see my PR). This is working except for #include (clashing with python comment I guess?).
Thanks. I have merged your PR and released sos-notebook 0.22.6.
I want to use sos-notebook to have multiple kernels in the same notebook (I don't need to exchange data between kernels). I added a C++ and an OCaml kernel for Jupyter but, when used with SoS, the syntax highlighting is not working for these languages: How can I use the correct syntax highlighting (it works when I use only one kernel, without SoS)?
For information, the Dockerfile I am using: https://github.com/fortierq/mp2i-jupyter-docker/blob/master/Dockerfile