Skip to content

Commit

Permalink
Merge pull request #371 from jupyter/auto-backport-of-pr-346
Browse files Browse the repository at this point in the history
Backport PR #346 on branch 5.x
  • Loading branch information
takluyver authored Apr 12, 2018
2 parents f575003 + 1d278ca commit d4c7e09
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jupyter_client/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ def launch_kernel(cmd, stdin=None, stdout=None, stderr=None, env=None,
DUPLICATE_SAME_ACCESS)
env['JPY_PARENT_PID'] = str(int(handle))

# Prevent creating new console window on pythonw
if redirect_out:
kwargs['creationflags'] = kwargs.setdefault('creationflags', 0) | 0x08000000 # CREATE_NO_WINDOW

else:
# Create a new session.
# This makes it easier to interrupt the kernel,
Expand Down

0 comments on commit d4c7e09

Please sign in to comment.