-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
28 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env python -u | ||
# Copyright (c) Jupyter Development Team. | ||
# Distributed under the terms of the Modified BSD License. | ||
import os | ||
import shlex | ||
import sys | ||
|
||
command = ["/usr/local/bin/start.sh"] | ||
|
||
# set default ip to 0.0.0.0 | ||
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 | ||
if "NOTEBOOK_ARGS" in os.environ: | ||
command += shlex.split(os.environ["NOTEBOOK_ARGS"]) | ||
|
||
# Execute the command! | ||
os.execvp(command[0], command) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters