Skip to content

Commit

Permalink
prefer to specify single user ip
Browse files Browse the repository at this point in the history
  • Loading branch information
sebranchett committed Oct 2, 2023
1 parent 3fbad94 commit 9272382
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions single_user_docker/jupyter_server_config.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# Configuration file for jupyter-server.
from jupyter_client.localinterfaces import public_ips

c = get_config()
# Where am I?
# this from: https://github.com/jupyterhub/dockerspawner/issues/198
# "nils-werner commented on Jul 12, 2018"
ip = public_ips()[0]

# The IP address the Jupyter server will listen on
# See https://jupyter-server.readthedocs.io/en/latest/operators/public-server.html#running-a-public-notebook-server
c.ServerApp.ip = '*'
c.ServerApp.ip = ip

# The port the server will listen on (env: JUPYTER_PORT)
c.ServerApp.port = 8888
Expand Down
1 change: 1 addition & 0 deletions single_user_docker/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
jupyter_client
jupyter-server-proxy
git+https://github.com/sebranchett/pluto-on-jupyterlab.git

0 comments on commit 9272382

Please sign in to comment.