Hi Min and Erik,
On Sun, Mar 6, 2016 at 10:31 AM, MinRK <
benja...@gmail.com> wrote:
> The full command to execute a notebook and save the result overwriting the
> original is:
>
> jupyter nbconvert --execute --inplace notebook.ipynb
Actually, it is:
jupyter nbconvert --execute --inplace --to notebook notebook.ipynb
otherwise it just produces `notebook.html` (with or without
--inplace). This indeed runs the notebook from a command line, which I
was also trying to figure out in order to test my notebooks
automatically (and I checked that if there is an exception, that it
will fail).
However, the problem is that I can't edit the plots afterwards. The
closest to what I want is:
jupyter nbconvert --execute --inplace --to notebook notebook.ipynb &&
jupyter notebook notebook.ipynb
When it opens the notebook, the plots are indeed current. But I still
have to rerun the notebook if I want to modify the plots.
One solution would be to leave the kernel from the "jupyter nbconvert"
command running, and then reconnect to it using the "jupyer notebook"
command. The other solution would be to implement "--execute" into the
"jupyter notebook" command itself.
Ondrej
>
https://groups.google.com/d/msgid/jupyter/CAHNn8BWO_y1q7oeaDrQN7mmj7u0YXhOJKO2a6ajtqbfBAE1d1g%40mail.gmail.com.