[IPython-User] Embedding IPython notebook "live" into sphinx?

reckoner reckoner@gmail....
Fri Mar 9 15:36:49 CST 2012


> Message: 1
> Date: Thu, 08 Mar 2012 10:39:08 -0800
> From: reckoner<reckoner@gmail.com>
> Subject: [IPython-User] Embedding IPython notebook "live" into sphinx?
> To: ipython-user@scipy.org
> Message-ID:<4F58FCCC.2090005@gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi,
>
> I am writing some documentation using Sphinx, where it is possible,
> using the correct extensions, to have matplotlib automatically render
> plots in the HTML document. Is there something similar with IPython
> Notebook? In other words, can I have an IPython Notebook rendered live
> when the documentation is generated and then have the resulting HTML
> documents show the IPython Notebook results?
>
> If not, how would I do this using a static notebook?
>
> Thanks!
>
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 8 Mar 2012 19:08:17 +0000
> From: Thomas Kluyver<takowl@gmail.com>
> Subject: Re: [IPython-User] Embedding IPython notebook "live" into
> 	sphinx?
> To: "Discussions about using IPython. http://ipython.org"
> 	<ipython-user@scipy.org>
> Message-ID:
> 	<CAOvn4qhsKdYm3hX3Zy7HZKjimwC3e6-Jod_=rLzWAL4u5t+GKQ@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On 8 March 2012 18:39, reckoner<reckoner@gmail.com>  wrote:
>
>> I am writing some documentation using Sphinx, where it is possible,
>> using the correct extensions, to have matplotlib automatically render
>> plots in the HTML document. Is there something similar with IPython
>> Notebook? In other words, can I have an IPython Notebook rendered live
>> when the documentation is generated and then have the resulting HTML
>> documents show the IPython Notebook results?
>
>
> IPython directive sounds like what you're looking for:
> http://matplotlib.sourceforge.net/sampledoc/ipython_directive.html
>
> In brief, it's a Sphinx extension which lets you use blocks of IPython
> code, and runs them as it builds the docs, so the final result includes the
> output as well.
>
> Thomas

Thomas:

Thanks. Yes I know about the directive, but I'm asking you about using 
the *Notebook* as a whole, not
by sampling code that might be *in* the Notebook.

Thanks again!



More information about the IPython-User mailing list