Skip to content

Commit

Permalink
force bokeh to use cdn resources (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
AjayThorve authored Aug 25, 2023
1 parent b18df67 commit 0aae356
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jupyterlab_nvdashboard/server.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import sys

import os
from bokeh.server.server import Server
from tornado.ioloop import IOLoop
from tornado import web
Expand Down Expand Up @@ -37,6 +37,8 @@ def go():
port = int(sys.argv[1])
else:
port = DEFAULT_PORT

os.environ['BOKEH_RESOURCES'] = 'cdn'
server = Server(routes, port=port, allow_websocket_origin=["*"])
server.start()

Expand Down

0 comments on commit 0aae356

Please sign in to comment.