I have set up a jupyterhub python notebook server on ubuntu. I want to add some startup scripts so that when an user is logged into notebook server, some packages and modules will be automatically loaded. Is there any configure file where I can specify startup scripts? Thanks a lot for help!
Asked
Active
Viewed 1,272 times
1 Answers
1
Check out this in the config options
# lines of code to run at IPython startup.
# c.InteractiveShellApp.exec_lines = []
It allows you to run specific commands on startup. You can also put in scripts in ~/.ipython/profile_default/startup, but depending on your spawner these can require a bit of setup to make sure they get loaded.

David
- 755
- 5
- 11
-
are you able to expand on the second option? – jtlz2 Aug 12 '20 at 07:16