Skip to content

Commit

Permalink
Merge pull request #3379 from dhirschfeld/patch-1
Browse files Browse the repository at this point in the history
Use powershell on Windows
  • Loading branch information
minrk authored Feb 27, 2018
2 parents 2aac713 + ce602fc commit 7ee844f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions notebook/terminal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
from . import api_handlers

def initialize(webapp, notebook_dir, connection_url, settings):
default_shell = which('sh')
if not default_shell and os.name == 'nt':
if os.name == 'nt':
default_shell = 'powershell.exe'
else:
default_shell = which('sh')
shell = settings.get('shell_command',
[os.environ.get('SHELL') or default_shell]
)
Expand Down

0 comments on commit 7ee844f

Please sign in to comment.