Hello all,
I am new to the community and look forward to engaging, participating and learning with everyone!
I have had a really rough experience for the last few hours trying to get Panel set up in my Jupyter environment (Anaconda) for the first time.
First, I was getting hit with no interactivity in the notebook; the widgets would render fine but adjusting them did nothing to update the plots.
Then, I was having issues with nodejs plus jupyterlab_pyviz does not yet support the current version of JupyterLab
(which I was able to fix by finding that the documentation is outdated relating to pyviz_comms).
I’m aware that the documentation sets out additional steps for JupyterLab but I am getting hit with this issue in both a ‘classic notebook’ as well as a notebook in JupyterLab.
Currently, I am not able to render a panel widget as I get an attribute error. I was able to do it previously before updating some of the packages. I can render ipywidgets fine in my notebook.
Error:
AttributeError: ‘Document’ object has no attribute ‘_hold’
The issue appears when I’m trying to display the widget in the notebook.
import panel as pn
import datetime as dt
pn.extension()date_range_slider = pn.widgets.DateRangeSlider(
name=‘Date Range Slider’,
start=dt.datetime(2017, 1, 1), end=dt.datetime(2019, 1, 1),
value=(dt.datetime(2017, 1, 1), dt.datetime(2018, 1, 10))
)date_range_slider
Here are the packages in the notebook. I’ve updated using ```conda update --all`` as well as updating the individual packages.
panel==0.12.7
pandas==1.2.4
ipywidgets==7.6.3
hvplot==0.7.3
holoviews==1.14.8
Thanks for any guidance to get up and running!