Re: Notebook codemirror support for language not distributed with codemirror?
Tom Quarendon <[email protected]>
| Newsgroups | gmane.comp.python.ipython.devel |
|---|---|
| Message-ID | <[email protected]> |
Aha. That sounds like the kind of solution I'm after. Thanks. Sent from my iPhone > On 14 Nov 2015, at 4:49 p.m., Matthias Bussonnier <[email protected]> wrote: > > >> On Nov 14, 2015, at 08:29, Robert Dodier <[email protected]> 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 >> [email protected] >> https://mail.scipy.org/mailman/listinfo/ipython-dev > > _______________________________________________ > IPython-dev mailing list > [email protected] > https://mail.scipy.org/mailman/listinfo/ipython-dev