[IPython-dev] Custom cell types for markup

Thomas Kluyver takowl at gmail.com
Mon Feb 9 20:40:00 EST 2015


You can have raw cells with a specified mime type. By default, these will
display in the notebook as plain, unhighlighted text, but you could write
an extension that watched for raw cells with a specific mime type and then
rendered them. A JS POD parser would be required for that, though.

Exporting them with nbconvert should be easier, though - you can write
Jinja templates and filters that will, for instance, run those output cells
through a command line program to render them.

Thomas

On 9 February 2015 at 17:31, Matthias Bussonnier <
bussonniermatthias at gmail.com> wrote:

> Hi,
>
> Unfortunately there is no easy way to use an alternative
> markup language for the notebook.
> It was considered, but was considered too complicated
> to support.
>
> It should be possible but far from easy, and I'm not sure we are
> ready yet to re-consider.
>
> Cheers,
> --
> M
>
>
> Le 9 févr. 2015 à 15:08, Zakariyya Mughal <zaki.mughal at gmail.com> a écrit
> :
>
> > Hi!
> >
> > I would like to add a custom cell type for formatted documentation.
> > Instead of just Markdown, I would like to be able to use POD
> > <http://en.wikipedia.org/wiki/Plain_Old_Documentation>.
> >
> > Now, I understand that having a custom format will lead to portability
> > issues, but would it be possible to have something where the cell type
> > is POD, but the notebook contains both the POD source and pre-generated
> > HTML output that can be rendered by nbviewer?
> >
> > Is there an example of something similar? Perhaps I can do this all in
> > JavaScript, but I don't know of any JavaScript POD parsers.
> >
> > Regards,
> > - Zaki Mughal
> > _______________________________________________
> > IPython-dev mailing list
> > IPython-dev at scipy.org
> > http://mail.scipy.org/mailman/listinfo/ipython-dev
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20150209/b0f04b4a/attachment.html>


More information about the IPython-dev mailing list