Skip to content

Commit

Permalink
Merge pull request #346 from nanoant/master
Browse files Browse the repository at this point in the history
Prevent creating new console on Windows
  • Loading branch information
takluyver committed Apr 12, 2018
2 parents 3058347 + bf57d23 commit b754994
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 b754994

Please sign in to comment.