Commit fb9674a9 authored by Bernhard Liebl's avatar Bernhard Liebl
Browse files

workaround for Bokeh server port issues

parent f3df24e8
...@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment