Issue
I have a python script that executes a Jupyter notebook. But every time it takes the default kernel, which is python3. The relevant code line in the python script is this here:
os.system('jupyter nbconvert --execute {:s} --to html'.format(IPYNB_FILENAME))
I have tried to change the default kernel in the jupyter_notebook_config.py file, but without success.
Any ideas how to solve this?
Solution
From the docs here it looks like you can do it like this:
jupyter nbconvert --ExecutePreprocessor.kernel_name=python3 --execute
etc
Answered By - Josh Friedlander
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.