Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Melusina
vDHd Volume
burghardt_embed
Commits
fb9674a9
Commit
fb9674a9
authored
May 31, 2021
by
Bernhard Liebl
Browse files
workaround for Bokeh server port issues
parent
f3df24e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
code/nbutils.py
View file @
fb9674a9
...
@@ -83,6 +83,10 @@ def initialize(display_mode="auto"):
...
@@ -83,6 +83,10 @@ def initialize(display_mode="auto"):
display
(
HTML
(
f
"""
display
(
HTML
(
f
"""
<div>Running notebook in <b>
{
_display_mode
.
name
}
</b> mode.</div>"""
))
<div>Running notebook in <b>
{
_display_mode
.
name
}
</b> mode.</div>"""
))
if
_display_mode
==
DisplayMode
.
SERVER
:
os
.
environ
[
"BOKEH_ALLOW_WS_ORIGIN"
]
=
","
.
join
(
[
f
"localhost:
{
port
}
"
for
port
in
range
(
8890
,
8893
)])
bokeh
.
io
.
output_notebook
()
bokeh
.
io
.
output_notebook
()
...
...
Write
Preview
Markdown
is supported
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