Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 ubuntu 上设置了一个 jupyterhub python notebook 服务器。我想添加一些启动脚本,这样当用户登录到笔记本服务器时,一些包和模块将被自动加载。有没有可以指定启动脚本的配置文件?非常感谢您的帮助!
在配置选项中查看这个
# lines of code to run at IPython startup. # c.InteractiveShellApp.exec_lines = []
它允许您在启动时运行特定命令。您也可以在 ~/.ipython/profile_default/startup 中放入脚本,但根据您的生成器,这些可能需要一些设置以确保它们被加载。