This Panel Plotly example is throwing error

I follow this example and everything works fine until the last section with title Controls.
https://panel.holoviz.org/reference/panes/Plotly.html

When I hover or click on any data points and then move my mouse cursor away, it throws the following error

Traceback (most recent call last):
  File "C:\Users\sc\anaconda3\lib\site-packages\pyviz_comms\__init__.py", line 316, in _handle_msg
    self._on_msg(msg)
  File "C:\Users\sc\anaconda3\lib\site-packages\panel\viewable.py", line 258, in _on_msg
    patch.apply_to_document(doc, comm.id)
  File "C:\Users\sc\anaconda3\lib\site-packages\bokeh\protocol\messages\patch_doc.py", line 100, in apply_to_document
    doc._with_self_as_curdoc(lambda: doc.apply_json_patch(self.content, setter))
  File "C:\Users\sc\anaconda3\lib\site-packages\bokeh\document\document.py", line 1169, in _with_self_as_curdoc
    return f()
  File "C:\Users\sc\anaconda3\lib\site-packages\bokeh\protocol\messages\patch_doc.py", line 100, in <lambda>
    doc._with_self_as_curdoc(lambda: doc.apply_json_patch(self.content, setter))
  File "C:\Users\sc\anaconda3\lib\site-packages\bokeh\document\document.py", line 410, in apply_json_patch
    patched_obj.set_from_json(attr, value, models=references, setter=setter)
  File "C:\Users\sc\anaconda3\lib\site-packages\bokeh\core\has_props.py", line 345, in set_from_json
    descriptor.set_from_json(self, json, models, setter)
  File "C:\Users\sc\anaconda3\lib\site-packages\bokeh\core\property\descriptors.py", line 611, in set_from_json
    self.property.from_json(json, models),
  File "C:\Users\sc\anaconda3\lib\site-packages\bokeh\core\property\container.py", line 176, in from_json
    raise DeserializationError("%s expected a dict or None, got %s" % (self, json))
bokeh.core.property.bases.DeserializationError: Dict(String, Any) expected a dict or None, got 

My packages version are:

win10
chrome     86.0.4240.111
python     3.8.3
matplotlib 3.2.2
panel      0.10.1
bokeh      2.2.3
plotly     4.11.1
jupyterlab 2.1.5

Any idea how to fix this issue?

1 Like

Hi @scoodood

Technically I don’t have an answer. But I’ve created an issue on Github. You can help if you go and like and tell why it’s important to solve.

1 Like

Thanks @Marc, I also participate in the Github discussion now.

1 Like