Skip to content

Commit

Permalink
Backport PR #346: Prevent creating new console on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver authored and MeeseeksDev[bot] committed Apr 12, 2018
1 parent f575003 commit 1d278ca
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 1d278ca

Please sign in to comment.