Notebook codemirror support for language not distributed with codemirror?
Tom Quarendon <[email protected]>
| Newsgroups | gmane.comp.python.ipython.devel |
|---|---|
| Message-ID | <AM2PR05MB07715C617D5044E0F8DFEC31B0100@AM2PR05MB0771.eurprd05.prod.outlook.com> |
I’m trying to figure out how the CodeMirror mode is loaded by the notebook in response to a kernel info request, and how I would add support for a language not provided by the CodeMirror distribution included in the notebook distribution. In other words I’m developing a kernel for a language not supported by the normal CodeMirror distribution. I can plug in a kernel just fine, but there seems to be no equivalent for the CodeMirror mode for the notebook. From what I can see, it appears that it will only load modes that in the normal CodeMirror distribution, so if I want to add a new mode, I would rather crudely have to just put a suitable mode in the CodeMirror mode directory buried deep inside the jupyter notebook python module in my python lib directory? Is this the case, or is there a better way? Thanks. _______________________________________________ IPython-dev mailing list [email protected] https://mail.scipy.org/mailman/listinfo/ipython-dev