Skip to content
Permalink
Browse files

use .call instead of .Popen so that script stay in foreground

  • Loading branch information...
thomas--graf committed Sep 4, 2017
1 parent f2b009b commit 145f61efe1002bd7faf319c8022bff3949af86f5
Showing with 1 addition and 1 deletion.
  1. +1 −1 start_jupytyer.py
@@ -7,4 +7,4 @@
my_env = os.environ.copy()
my_env["JUPYTER_CONFIG_DIR"] = "./jupyter/"
notebook_dir = "./notebooks/"
sp.Popen(["jupyter", "notebook", "--notebook-dir=", notebook_dir], env=my_env)
sp.call(["jupyter", "notebook", "--notebook-dir=", notebook_dir], env=my_env)

0 comments on commit 145f61e

Please sign in to comment.
You can’t perform that action at this time.