single-user server是jupyter notebook的实例,它是一个完全独立的多进程的应用,该应用服务器也有很多方面可以配置。

在JupyterHub层面,可以对Spawner进行配置,比如配置notebook server的根目录Spawner.notebook_dir

c.Spawner.notebook_dir = '~/notebooks'

或者配置notebook server启动的命令行参数

c.Spawner.args = ['--debug', '--profile=PHYS131']

或者配置single user server的默认页面

c.Spawner.args = ['--NotebookApp.default_url=/notebooks/Welcome.ipynb']

由于single-user server继承于notebook server,它仍然会加载jupyter_notebook_config.py,它可以是各自应用的$HOME/.jupyter/ ,或者是系统层面的/etc/jupyter/

【参考】

1。jupyterhub:single-user server:http://jupyterhub.readthedocs.io/en/latest/getting-started/spawners-basics.html

results matching ""

    No results matching ""