[IPython-dev] Notebook codemirror support for language not distributed with codemirror?
Matthias Bussonnier
bussonniermatthias at gmail.com
Sat Nov 14 11:49:25 EST 2015
> On Nov 14, 2015, at 08:29, Robert Dodier <robert.dodier at gmail.com> wrote:
>
> What I ended up doing for Maxima-Jupyter is to put the appropriate JS
> (created by hacking the one for another language) into the CodeMirror
> installation directory, also putting the new file name on the list of
> modes which is also in the CM installation.
You can drop a kernel.js next to your kernel.json at installation time,
it should describe an AMD module that define a `unload` method that will be called when you switch
to you r kernel.
The can manually load/register a code mirror mode in the notebook.
--
M
>
> Maybe there is a better way, but I couldn't figure it out.
>
> Hope this helps,
>
> Robert Dodier
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> https://mail.scipy.org/mailman/listinfo/ipython-dev
More information about the IPython-dev
mailing list