I'd checkout runipy.

Github: https://github.com/paulgb/runipy
conda-forge: https://anaconda.org/conda-forge/runipy

On Fri, Oct 20, 2017 at 9:18 AM, M Pacer <[email protected]> wrote:

> You could use
>
> jupyter nbconvert <name of notebook> --to notebook --execute --in-place
>
> But that can lead to weird behaviour if that is a command inside the
> notebook itself. Because when it runs all cells it runs that cell which
> causes it to run all cells again and again forever.
>
> On Fri, Oct 20, 2017 at 04:19 MuJohnny chan <[email protected]> wrote:
>
>> Hi all,
>>
>> Is it possible to trigger "run all cells" in jupyter notebook via
>> programming a script? In details, I have programmed a python notebook and
>> it could be run by clicking "run all cells". However, I do not want to use
>> the button and instead programming is preferred.  Then how to do? Is there
>> any REST API for jupyter to run all cells? Any suggestions would be highly
>> appreciated!
>>
>>
>> best,
>>
>> johnny
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Project Jupyter" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/jupyter/8610db86-8caa-4132-ad1e-c4625900806d%40googlegroups.com
>> <https://groups.google.com/d/msgid/jupyter/8610db86-8caa-4132-ad1e-c4625900806d%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Project Jupyter" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jupyter/CAM3SX47mp3vwAtNZVcqXZvBhyno%3DcpUAgeVDcGG4Max%3D8sB%3DBQ%
> 40mail.gmail.com
> <https://groups.google.com/d/msgid/jupyter/CAM3SX47mp3vwAtNZVcqXZvBhyno%3DcpUAgeVDcGG4Max%3D8sB%3DBQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/CADT3MEBv83CW_wjxek0GF1M%2BgyGpWHqOW9eZ2yXbK-wJpNtaJQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to