From 52f7f3b5d565ef1a6d06c4d16d75459eb37add6f Mon Sep 17 00:00:00 2001 From: Simon Li Date: Tue, 28 Jan 2025 09:52:35 +0000 Subject: [PATCH] Don't override singleuser ip to 0.0.0.0 (#2203) Co-authored-by: Ayaz Salikhov --- images/base-notebook/start-singleuser.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/images/base-notebook/start-singleuser.py b/images/base-notebook/start-singleuser.py index c80339f5..8fe0e9ef 100755 --- a/images/base-notebook/start-singleuser.py +++ b/images/base-notebook/start-singleuser.py @@ -8,9 +8,7 @@ import sys # Entrypoint is start.sh command = ["jupyterhub-singleuser"] -# set default ip to 0.0.0.0 -if "--ip=" not in os.environ.get("NOTEBOOK_ARGS", ""): - command.append("--ip=0.0.0.0") +# JupyterHub singleuser arguments are set using environment variables # Append any optional NOTEBOOK_ARGS we were passed in. # This is supposed to be multiple args passed on to the notebook command,