diff --git a/images/base-notebook/start-singleuser.py b/images/base-notebook/start-singleuser.py index 8fe2ee025e..c80339f52a 100755 --- a/images/base-notebook/start-singleuser.py +++ b/images/base-notebook/start-singleuser.py @@ -12,8 +12,9 @@ if "--ip=" not in os.environ.get("NOTEBOOK_ARGS", ""): command.append("--ip=0.0.0.0") -# Append any optional NOTEBOOK_ARGS we were passed in. This is supposed to be multiple args passed -# on to the notebook command, so we split it correctly with shlex +# Append any optional NOTEBOOK_ARGS we were passed in. +# This is supposed to be multiple args passed on to the notebook command, +# so we split it correctly with shlex if "NOTEBOOK_ARGS" in os.environ: command += shlex.split(os.environ["NOTEBOOK_ARGS"])