'run jupyter notebook file from a batch file that run another jupyter notebook file
my sistuation is that
I want to run a jupyter notebook file in a .bat file that call many jupyter notebook files to run as a sequence in a task scheduler.
The reason is that I don't want to schedule many jupyter notebook files in a task scheduler seperately. So i decide to have only one jupyter notebook that run% many jupyter notebook
Edited: After i have read the comment i decide to give more precise information
- my main jupyter nb file name test.ipynb and i convert this file to test.py to create a .bat file
- in this test.ipynb i have many %run clean_transform.ipynb in a cell
Code in my jupyter notebook cell
%run C:/Users/..../clean_transform.ipynb
when i open and manually run this cell in jupyter notebook, it works perfectly fine
however, after i create a .bat file by this jupyter notebook file
"C:\Users\...\python.exe" "C:\Users\....\test.py"
@pause
it shows error
Traceback (most recent call last):
File "C:\Users\....\test.py", line 14, in <module>
get_ipython().run_line_magic('run', 'C:/Users/..../clean_transform.ipynb ')
NameError: name 'get_ipython' is not defined
Press any key to continue . . .
window pop up and show this error can somebody help me on this and any suggestion would be appreciate thx
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
