Skip to content

Commit 998389c

Browse files
committed
[launcher] allow to change jupyter notebook arguments (like port etc).
1 parent f6a82f7 commit 998389c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pyemma_tutorials/cli.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ def main():
2020

2121
_nglview_pip_installed_workaround()
2222

23-
argv = ['--config=%s' % notebook_cfg, '--config=%s' % notebook_cfg_json]
24-
print('arguments:', argv)
23+
# extend passed arguments with our config files
24+
import sys
25+
argv = sys.argv[1:] + ['--config=%s' % notebook_cfg, '--config=%s' % notebook_cfg_json]
26+
print('invoking notebook server with arguments:', argv)
2527
main_(argv=argv)
2628

2729

0 commit comments

Comments
 (0)