Skip to content

Commit 6312308

Browse files
committed
Add start script for Binder
1 parent d9d65f8 commit 6312308

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

binder/start

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env python3
2+
import sys
3+
import shutil
4+
import os
5+
6+
argv = sys.argv[1:] + ['--config', 'binder/jupyter_notebook_config.py']
7+
print(argv)
8+
9+
with open('startup_args.txt', 'w') as fid:
10+
fid.write(str(argv))
11+
12+
os.execv(shutil.which(argv[0]), argv)

0 commit comments

Comments
 (0)