Thanks to #2418, plotly figures have the desired interactivity when displayed in tabs. However, when the plotly figures are inside nested tabs, the following AttributeError is triggered:
Traceback (most recent call last):
File "panel_bug_report_nested_tabs.py", line 27, in <module>
plots.save("nested_tabs_depth_2.html", resources="inline")
File "/home/bangels/.local/lib/python3.8/site-packages/panel/viewable.py", line 766, in save
return save(self, filename, title, resources, template,
File "/home/bangels/.local/lib/python3.8/site-packages/panel/io/save.py", line 210, in save
model = panel.get_root(doc, comm)
File "/home/bangels/.local/lib/python3.8/site-packages/panel/viewable.py", line 514, in get_root
self._preprocess(root)
File "/home/bangels/.local/lib/python3.8/site-packages/panel/viewable.py", line 448, in _preprocess
hook(self, root)
File "/home/bangels/.local/lib/python3.8/site-packages/panel/pane/plotly.py", line 338, in _patch_tabs_plotly
if not any(tabs.select_one(pt) for pt in parent_tabs if pt is not tabs):
File "/home/bangels/.local/lib/python3.8/site-packages/panel/pane/plotly.py", line 338, in <genexpr>
if not any(tabs.select_one(pt) for pt in parent_tabs if pt is not tabs):
File "/home/bangels/.local/lib/python3.8/site-packages/bokeh/model.py", line 584, in select_one
result = list(self.select(selector))
File "/home/bangels/.local/lib/python3.8/site-packages/bokeh/core/query.py", line 88, in <genexpr>
return (obj for obj in objs if match(obj, selector, context))
File "/home/bangels/.local/lib/python3.8/site-packages/bokeh/core/query.py", line 160, in match
for key, val in selector.items():
AttributeError: 'Tabs' object has no attribute 'items'
Thanks to #2418, plotly figures have the desired interactivity when displayed in tabs. However, when the plotly figures are inside nested tabs, the following AttributeError is triggered:
Code snippet to produce the error:
Version info: