Skip to content Skip to sidebar Skip to footer

Where Can I Put A Startup Script In Jupyter?

I'm looking for a way to put my startup script in Jupyter. In IPython, I put it under the $IPYTHON_DIR/profile_default/startup/. In Jupyter, it seems that the config file should b

Solution 1:

You can get the default startup script folder via this in jupyter notebook:

get_ipython().profile_dir.startup_dir

On my Windows PC, the folder is: C:\Users\myusername\.ipython\profile_default\startup

And do read the README file under the folder.

    Files will be run in lexicographical order, so you can control
the execution order of files with a prefix, e.g.::

    00-first.py
    50-middle.py
    99-last.ipy

So you can put a file named 00-xx.py under the folder.

Post a Comment for "Where Can I Put A Startup Script In Jupyter?"