[IPython-dev] Including notebooks in a wiki

Martín Gaitán gaitan at gmail.com
Wed Jul 2 13:50:39 EDT 2014

Maybe through markdown. it's supported in dokuwiki via plugins.
https://www.dokuwiki.org/plugin:markdown  and you can use nbconvert to
export the notebook
nbconvert --to markdown

On Wed, Jul 2, 2014 at 2:43 PM, Thomas Kluyver <takowl at gmail.com> wrote:

> Hi Jon,
> One way would be to write a dokuwiki exporter for nbconvert. You could
> base it on the rst exporter:
> https://github.com/ipython/ipython/blob/master/IPython/nbconvert/exporters/rst.py
> https://github.com/ipython/ipython/blob/master/IPython/nbconvert/templates/rst.tpl
> However, pandoc doesn't appear to be able to convert markdown to dokuwiki,
> so you'd need to find another tool to do that.
> Alternatively, you could use a dokuwiki plugin to render pages from a
> format that notebooks can be exported to, e.g. markdown:
> https://www.dokuwiki.org/plugin:markdownextra
> Or, going one step further, you could write a dokuwiki plugin to handle
> notebook files directly. But yuck, PHP.
> Thomas
> On 2 July 2014 09:43, Jon Wilson <jsw at fnal.gov> wrote:
>> Hi all,
>> Having gotten a nice anaconda setup working including pandoc, I've
>> naturally been asked to document it on our wiki, both use and the
>> procedure I went through to set it up.  In order to showcase how it
>> works and how it can be used to load and analyze CDMS data, I was
>> thinking of including a notebook that I wrote that does exactly that.
>> I know that people regularly include notebooks in blogs, (e.g.
>> jakevdp.github.io (nice blog btw!)).  Does anyone have experience
>> including a notebook in a wiki?  The wiki in question is dokuwiki, but I
>> expect that a solution for one wiki syntax wouldn't be too difficult to
>> translate to another wiki syntax.
>> Regards,
>> Jon
>> _______________________________________________
>> 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

textosypretextos.com.ar <http://textosyprextextos.com.ar>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140702/02440a3f/attachment.html>

More information about the IPython-dev mailing list