[IPython-dev] running/getting output into a new programmatically-generated notebook
takowl at gmail.com
Wed Mar 18 13:03:22 EDT 2015
Nbconvert now includes an execute preprocessor which executes a notebook,
recording the outputs back into that notebook. This is based on runipy,
which Zoltán mentioned, and you can use it either from Python code or at
the command line (ipython nbconvert --execute ...).
On 18 March 2015 at 09:11, Ana Nelson <ana at ananelson.com> wrote:
> I'm creating notebooks via nbformat following the pattern of Fernando's v4
> (BTW it might be helpful to link to the new gist from the older version
> here http://nbviewer.ipython.org/gist/fperez/9716279)
> I'd like to run a command line script to populate the outputs in this
> notebook so that when a user opens the generated notebook, it has already
> been run.
> I thought that might have been the intention of the ipython -c '%run
> test.ipynb' command, but that doesn't seem to have any effect. Am I doing
> something wrong or is there some other command I should be calling?
> IPython-dev mailing list
> IPython-dev at scipy.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev