python - How do I cron an ipython jupyter notebook's cells? -
i have ipython jupyter notebook i've developed , run django 1.8 with:
manage.py shell_plus --notebook
within notebook have written data analytics , reporting modules produce csv , html output via petl , pandas.
i'd automate notebook in such way can cron notebook cells execute , serve static html output, don't see way run cells within notebook without human driving process, i.e. cron.
nbconvert has --execute
flag run notebook before converting format.
so instance, run notebook , convert static html:
ipython nbconvert --execute --to html mynotebook.ipynb
if want run , save results ipynb file, can use --to notebook
.
Comments
Post a Comment