You can get the default startup folder of the script through this in a jupyter laptop:
get_ipython().profile_dir.startup_dir
On my windows pc folder: C:\Users\myusername\.ipython\profile_default\startup
And read the README file in 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 the file under the name 00-xx.pyin the folder.
source
share