-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Binder and launch jupyverse directly
- Loading branch information
1 parent
f36b9b1
commit 098ca32
Showing
6 changed files
with
39 additions
and
110 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
jupyverse_command = ' '.join([ | ||
'jupyverse', | ||
'--no-open-browser', | ||
'--authenticator.mode=noauth', | ||
'--JupyterLab.collaborative', | ||
'--RetroLab.enabled=false', | ||
'--JupyterLab.base_url={base_url}jupyverse', | ||
'--port={port}', | ||
]) | ||
|
||
|
||
c.ServerProxy.servers = { | ||
'jupyverse': { | ||
'command': [ | ||
'/bin/bash', '-c', jupyverse_command | ||
], | ||
'timeout': 60, | ||
'absolute_url': True | ||
}, | ||
} | ||
|
||
c.NotebookApp.default_url = '/jupyverse' | ||
|
||
import logging | ||
c.NotebookApp.log_level = logging.DEBUG |
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,12 @@ | ||
#!/usr/bin/env python3 | ||
import sys | ||
import shutil | ||
import os | ||
|
||
argv = sys.argv[1:] + ['--config', 'binder/jupyter_notebook_config.py'] | ||
print(argv) | ||
|
||
with open('startup_args.txt', 'w') as fid: | ||
fid.write(str(argv)) | ||
|
||
os.execv(shutil.which(argv[0]), argv) |
This file was deleted.
Oops, something went wrong.