Skip to content

Commit 38e1bae

Browse files
committed
Merge branch 'portselection_doc' into dev
2 parents a0ab3d7 + 7539961 commit 38e1bae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This package formerly included WrapSpawner and ProfilesSpawner, which provide me
1919
```python
2020
c = get_config()
2121
c.JupyterHub.spawner_class = 'batchspawner.TorqueSpawner'
22-
import batchspawner.api
22+
import batchspawner # Even though not used, needed to register batchspawner interface
2323
```
2424
3. Depending on the spawner, additional configuration will likely be needed.
2525

@@ -53,7 +53,7 @@ to run Jupyter notebooks on an academic supercomputer cluster.
5353

5454
```python
5555
# Select the Torque backend and increase the timeout since batch jobs may take time to start
56-
import batchspawner.api
56+
import batchspawner
5757
c.JupyterHub.spawner_class = 'batchspawner.TorqueSpawner'
5858
c.Spawner.http_timeout = 120
5959

@@ -119,7 +119,7 @@ clusters, as well as an option to run a local notebook directly on the jupyterhu
119119

120120
```python
121121
# Same initial setup as the previous example
122-
import batchspawner.api
122+
import batchspawner
123123
c.JupyterHub.spawner_class = 'wrapspawner.ProfilesSpawner'
124124
c.Spawner.http_timeout = 120
125125
#------------------------------------------------------------------------------
@@ -178,7 +178,7 @@ Added (developer)
178178
Changed
179179

180180
* PR #58 and #141 changes logic of port selection, so that it is selected *after* the singleuser server starts. This means that the port number has to be conveyed back to JupyterHub. This requires the following changes:
181-
- `jupyterhub_config.py` *must* explicitely import `batchspawner.api`
181+
- `jupyterhub_config.py` *must* explicitely import `batchspawner`
182182
- Add a new option `batchspawner_singleuser_cmd` which is used as a wrapper in the single-user servers, which conveys the remote port back to JupyterHub. This is now an integral part of the spawn process.
183183
- If you have installed with `pip install -e`, you will have to re-install so that the new script `batchspawner-singleuser` is added to `$PATH`.
184184
* Update minimum requirements to JupyterHub 0.9 and Python 3.5. #143

0 commit comments

Comments
 (0)