简体   繁体   中英

How to config startup script for jupyterhub?

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!

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM