-
-
Notifications
You must be signed in to change notification settings - Fork 571
Closed
Milestone
Description
ALL software version info
bokeh 2.4.2
panel 0.12.6
jupyterlab 3.2.5
chrome, windows 10
Run the jupyter lab server on localhost:8888, and run following code in a notebook:
import panel as pn
pn.extension()and then
pane = pn.panel('<marquee>Here is some custom HTML</marquee>')
pane.app(notebook_url='localhost:8888')then jupyterlab server console shows:
[W 2021-12-14 11:05:17.729 ServerApp] Got events for closed stream <zmq.eventloop.zmqstream.ZMQStream object at 0x000001DA95A7A130>
ERROR:tornado.application:Uncaught exception GET /autoload.js?bokeh-autoload-element=1002&bokeh-absolute-url=http://localhost:61531&resources=none (::1)
HTTPServerRequest(protocol='http', host='localhost:61531', method='GET', uri='/autoload.js?bokeh-autoload-element=1002&bokeh-absolute-url=http://localhost:61531&resources=none', version='HTTP/1.1', remote_ip='::1')
Traceback (most recent call last):
File "C:\mambaforge\lib\site-packages\tornado\web.py", line 1704, in _execute
result = await result
File "C:\mambaforge\lib\site-packages\panel\io\server.py", line 250, in get
with self._session_prefix():
File "C:\mambaforge\lib\contextlib.py", line 119, in __enter__
return next(self.gen)
File "C:\mambaforge\lib\site-packages\panel\io\server.py", line 196, in _session_prefix
rel_path = abs_url.replace(app_path, '')
TypeError: replace() argument 1 must be str, not None
the problem can be fixed by change the line
Line 202 in 51feaa2
| app_path = self.get_argument('bokeh-app-path', default=None) |
to
app_path = self.get_argument('bokeh-app-path', default='') Metadata
Metadata
Assignees
Labels
No labels