Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sofiane Bendoukha
ssh_scripts
Commits
e2d99f89
Commit
e2d99f89
authored
Mar 01, 2019
by
Mathis Rosenhauer
Browse files
jupyter: support Windows Subsystem for Linux
parent
3a3bf822
Changes
1
Hide whitespace changes
Inline
Side-by-side
start-jupyter
View file @
e2d99f89
#!/bin/bash
#
# Copyright 201
8
Deutsches Klimarechenzentrum GmbH
# Copyright 201
9
Deutsches Klimarechenzentrum GmbH
#
# All rights reserved.
#
...
...
@@ -319,7 +319,11 @@ function launch_browser() {
open
"
${
url
}
"
||
show_url
"
${
url
}
"
;;
Linux
)
xdg-open
"
${
url
}
"
||
show_url
"
${
url
}
"
if
[[
"
$(
uname
-a
)
"
==
*
@
(
Microsoft|WSL
)
*
]]
;
then
cmd.exe /c start
"
${
url
}
"
||
show_url
"
${
url
}
"
else
xdg-open
"
${
url
}
"
||
show_url
"
${
url
}
"
fi
;;
*
)
show_url
"
${
url
}
"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment