mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 15:03:02 +00:00
update spawners-basics.md
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
# Spawners and single-user notebook servers
|
# Spawners and single-user notebook servers
|
||||||
|
|
||||||
Since the single-user server is an instance of `jupyter notebook`, an entire separate
|
Since the single-user server is an instance of `jupyter notebook`, an entirely separate
|
||||||
multi-process application, there are many aspects of that server that can be configured, and a lot
|
multi-process application. There are many aspects of that server that can be configured and a lot
|
||||||
of ways to express that configuration.
|
of ways to express that configuration.
|
||||||
|
|
||||||
At the JupyterHub level, you can set some values on the Spawner. The simplest of these is
|
At the JupyterHub level, you can set some values on the Spawner. The simplest of these is
|
||||||
`Spawner.notebook_dir`, which lets you set the root directory for a user's server. This root
|
`Spawner.notebook_dir`, which lets you set the root directory for a user's server. This root
|
||||||
notebook directory is the highest level directory users will be able to access in the notebook
|
notebook directory is the highest-level directory users will be able to access in the notebook
|
||||||
dashboard. In this example, the root notebook directory is set to `~/notebooks`, where `~` is
|
dashboard. In this example, the root notebook directory is set to `~/notebooks`, where `~` is
|
||||||
expanded to the user's home directory.
|
expanded to the user's home directory.
|
||||||
|
|
||||||
@@ -20,7 +20,7 @@ You can also specify extra command line arguments to the notebook server with:
|
|||||||
c.Spawner.args = ['--debug', '--profile=PHYS131']
|
c.Spawner.args = ['--debug', '--profile=PHYS131']
|
||||||
```
|
```
|
||||||
|
|
||||||
This could be used to set the users default page for the single user server:
|
This could be used to set the user's default page for the single-user server:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
c.Spawner.args = ['--NotebookApp.default_url=/notebooks/Welcome.ipynb']
|
c.Spawner.args = ['--NotebookApp.default_url=/notebooks/Welcome.ipynb']
|
||||||
@@ -30,4 +30,4 @@ Since the single-user server extends the notebook server application,
|
|||||||
it still loads configuration from the `jupyter_notebook_config.py` config file.
|
it still loads configuration from the `jupyter_notebook_config.py` config file.
|
||||||
Each user may have one of these files in `$HOME/.jupyter/`.
|
Each user may have one of these files in `$HOME/.jupyter/`.
|
||||||
Jupyter also supports loading system-wide config files from `/etc/jupyter/`,
|
Jupyter also supports loading system-wide config files from `/etc/jupyter/`,
|
||||||
which is the place to put configuration that you want to affect all of your users.
|
which is the place to put the configuration that you want to affect all of your users.
|
||||||
|
Reference in New Issue
Block a user