0

How can I run jupyter notebook (which itself launches other notebooks) in python script (.py)?

5
  • I don't know if there's a slicker way, but you can use the subprocess package to launch a notebook just like you would at your system's console. Commented Apr 11, 2022 at 23:05
  • 1
    Could you please give an example how can I use it? Commented Apr 11, 2022 at 23:08
  • What about this: stackoverflow.com/questions/26338688/… ? Commented Apr 11, 2022 at 23:12
  • I like os.system() with the command to execute the notebook on the command line placed in the parentheses, see here. (I cannot confirm how windows does with this.) Once you grok how to trigger a command line command in a python script, then your question becomes how do I run a Jupyter notebook from the command line. For that you can see this post. Commented Apr 12, 2022 at 1:11
  • Plus, to continue that last line... also see this one about nbtoolbelt option. Commented Apr 12, 2022 at 1:12

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.