[IPython-dev] generating input cells dynamically
Zoltán Vörös
zvoros at gmail.com
Sun Mar 23 03:59:51 EDT 2014
Hi Fernando,
Many thanks, this is absolutely cool! I haven't known about the
interface for reading/writing notebook files. Up to now, I have been
reading/writing notebooks via simplejson, but that is not too safe, I guess.
Cheers,
Zoltán
On 23/03/14 00:56, Fernando Perez wrote:
> Here:
>
> http://nbviewer.ipython.org/gist/fperez/9716279
>
> Cheers,
>
> f
>
>
> On Sat, Mar 22, 2014 at 1:11 AM, Zoltán Vörös <zvoros at gmail.com
> <mailto:zvoros at gmail.com>> wrote:
>
> But LaTeX has nothing to do with the problem. The question was,
> given an empty notebook, how does one *generate* the following:
>
> In [1]: plot(sin(1*x))
>
> In [2]: plot(sin(2*x))
>
> In [3]: plot(sin(3*x))
> .
> .
> .
>
> In [200]: plot(sin(200*x))
>
> The 200 plots have to be in separate cells, so that their order
> can be changed afterwards, e.g. I want to have an IPython notebook
> as we understand it, but I would like to generate its content
> (executable code) dynamically. Metaprogramming, if you wish.
>
> Zoltán
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140323/54541a3c/attachment.html>
More information about the IPython-dev
mailing list