-
Notifications
You must be signed in to change notification settings - Fork 177
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
1 parent
2d46b30
commit b124de8
Showing
6 changed files
with
31 additions
and
117 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
import yaml | ||
import sys | ||
|
||
with open("../jupyter_config/config-selfauth.yaml", "r") as yaml_file: | ||
config_file = "../jupyter_config/config-selfauth.yaml" | ||
if len(sys.argv) == 2: | ||
autopilot = (sys.argv[1] == "autopilot") | ||
if autopilot: | ||
config_file = "../jupyter_config/config-selfauth-autopilot.yaml" | ||
|
||
|
||
with open(config_file, "r") as yaml_file: | ||
data = yaml.safe_load(yaml_file) | ||
|
||
data["hub"]["config"]["DummyAuthenticator"]["password"] = "dummy" | ||
|
||
with open("../jupyter_config/config-selfauth.yaml", 'w') as yaml_file: | ||
yaml.dump(data, yaml_file) | ||
with open(config_file, 'w') as yaml_file: | ||
yaml.dump(data, yaml_file) |
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
This file was deleted.
Oops, something went wrong.