Reputation: 145
I have a Jupyter notebook containing python and R scripts as well as magic commands. What I need is to schedule a task using Windows Task scheduler that somehow triggers run of this notebook. My scripts run at night and I prefer Jupyter to be closed. So I wonder if there is a way to do this? Thank you in advance.
Upvotes: 1
Views: 1651
Reputation: 171
It is perfectly possible to do this
Create a bat file that you can reference in the windows task scheduler.
Code as follows:
cd C:\path to your notebook
jupyter nbconvert --to notebook --execute NOTEBOOKTOEXECUTE.ipynb
I needed to include the path, as the console would be run from the system path and thus unable to find the notebook.
Upvotes: 3