[IPython-dev] Notebook codemirror support for language not distributed with codemirror?
Tom Quarendon
tom.quarendon at teamwpc.co.uk
Sat Nov 14 12:27:13 EST 2015
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 <bussonniermatthias at gmail.com> wrote:
>
>
>> 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
>
> _______________________________________________
> 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