Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
➜ ipywidgets git:(branch-3.0) bokeh serve --port 5008 ipyleaflet_tiles.py
2021-09-27 11:23:21,027 Starting Bokeh server version 2.4.0 (running on Tornado 6.1)
2021-09-27 11:23:21,027 User authentication hooks NOT provided (default user enabled)
2021-09-27 11:23:21,028 Bokeh app running at: http://localhost:5008/ipyleaflet_tiles
2021-09-27 11:23:21,028 Starting Bokeh server with process id: 25830
2021-09-27 11:23:26,077 Error running application handler <bokeh.application.handlers.script.ScriptHandler object at 0x7ffb946d4bb0>: 'Document' object has no attribute '_trigger_on_change'
File 'kernel.py', line 83, in _trigger_change:
self.document._trigger_on_change(event) Traceback (most recent call last):
File "/home/epinux/.local/lib/python3.9/site-packages/traitlets/traitlets.py", line 535, in get
value = obj._trait_values[self.name]
KeyError: 'default_style'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/epinux/.local/lib/python3.9/site-packages/bokeh/application/handlers/code_runner.py", line 231, in run
exec(self._code, module.__dict__)
File "/home/epinux/dev/bokeh/examples/howto/ipywidgets/ipyleaflet_tiles.py", line 11, in <module>
map = Map(center=center, zoom=zoom)
File "/home/epinux/.local/lib/python3.9/site-packages/ipyleaflet/leaflet.py", line 2078, in __init__
super(Map, self).__init__(**kwargs)
File "/home/epinux/.local/lib/python3.9/site-packages/ipywidgets/widgets/widget.py", line 415, in __init__
self.open()
File "/home/epinux/.local/lib/python3.9/site-packages/ipywidgets/widgets/widget.py", line 428, in open
state, buffer_paths, buffers = _remove_buffers(self.get_state())
File "/home/epinux/.local/lib/python3.9/site-packages/ipywidgets/widgets/widget.py", line 518, in get_state
value = to_json(getattr(self, k), self)
File "/home/epinux/.local/lib/python3.9/site-packages/traitlets/traitlets.py", line 575, in __get__
return self.get(obj, cls)
File "/home/epinux/.local/lib/python3.9/site-packages/traitlets/traitlets.py", line 538, in get
default = obj.trait_defaults(self.name)
File "/home/epinux/.local/lib/python3.9/site-packages/traitlets/traitlets.py", line 1578, in trait_defaults
return self._get_trait_default_generator(names[0])(self)
File "/home/epinux/.local/lib/python3.9/site-packages/traitlets/traitlets.py", line 511, in default
return self.make_dynamic_default()
File "/home/epinux/.local/lib/python3.9/site-packages/ipywidgets/widgets/trait_types.py", line 168, in make_dynamic_default
return self.klass(*(self.default_args or ()),
File "/home/epinux/.local/lib/python3.9/site-packages/ipywidgets/widgets/widget.py", line 415, in __init__
self.open()
File "/home/epinux/.local/lib/python3.9/site-packages/ipywidgets/widgets/widget.py", line 438, in open
self.comm = Comm(**args)
File "/home/epinux/.local/lib/python3.9/site-packages/ipykernel/comm/comm.py", line 57, in __init__
self.open(data=data, metadata=metadata, buffers=buffers)
File "/home/epinux/.local/lib/python3.9/site-packages/ipykernel/comm/comm.py", line 91, in open
self._publish_msg('comm_open',
File "/home/epinux/.local/lib/python3.9/site-packages/ipykernel/comm/comm.py", line 66, in _publish_msg
self.kernel.session.send(self.kernel.iopub_socket, msg_type,
File "/home/epinux/.local/lib/python3.9/site-packages/ipywidgets_bokeh/kernel.py", line 67, in send
self._trigger_change(event)
File "/home/epinux/.local/lib/python3.9/site-packages/ipywidgets_bokeh/kernel.py", line 83, in _trigger_change
self.document._trigger_on_change(event)
AttributeError: 'Document' object has no attribute '_trigger_on_change'
2021-09-27 11:23:26,337 WebSocket connection opened
2021-09-27 11:23:26,337 ServerConnection created
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment