Ipywidgets doesn't work with plotly objects

Hey,
I am trying to use HBox from ipywidgets to combine plotly figure objects, as shown here.
However, my python environment doesn’t seem to support displaying of ipywidgets with plotly objects. I tried this suggestion here and I could see a slider bar appearing in my Jupyter notebook.

The following is my jupyter labextension list

JupyterLab v3.6.1
/home/users/axelwang/.local/share/jupyter/labextensions
      jupyterlab_pygments v0.2.2 enabled OK (python, jupyterlab_pygments)
      jupyterlab-plotly v5.8.0 enabled OK
      @jupyter-widgets/jupyterlab-manager v5.0.5 enabled OK (python, jupyterlab_widgets)

The following is my pip list

Package                           Version   Location                                                           Installer
--------------------------------- --------- ------------------------------------------------------------------ ---------
aiofiles                          22.1.0    /home/users/axelwang/.local/lib/python3.9/site-packages            pip
aiosqlite                         0.18.0    /home/users/axelwang/.local/lib/python3.9/site-packages            pip
anyio                             3.6.2     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
argcomplete                       2.0.0     /share/software/user/open/python/3.9.0/lib/python3.9/site-packages pip
argon2-cffi                       21.3.0    /home/users/axelwang/.local/lib/python3.9/site-packages            pip
argon2-cffi-bindings              21.2.0    /home/users/axelwang/.local/lib/python3.9/site-packages            pip
arrow                             1.2.3     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
asttokens                         2.2.1     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
attrs                             21.4.0    /home/users/axelwang/.local/lib/python3.9/site-packages            pip
Babel                             2.11.0    /home/users/axelwang/.local/lib/python3.9/site-packages            pip
backcall                          0.2.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
beautifulsoup4                    4.11.2    /home/users/axelwang/.local/lib/python3.9/site-packages            pip
bleach                            6.0.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
bokeh                             2.4.3     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
certifi                           2022.6.15 /home/users/axelwang/.local/lib/python3.9/site-packages            pip
cffi                              1.15.1    /home/users/axelwang/.local/lib/python3.9/site-packages            pip
cftime                            1.6.1     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
charset-normalizer                2.1.1     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
click                             8.1.3     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
cloudpickle                       2.2.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
comm                              0.1.2     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
cycler                            0.11.0    /home/users/axelwang/.local/lib/python3.9/site-packages            pip
dask                              2022.10.1 /home/users/axelwang/.local/lib/python3.9/site-packages            pip
dask-jobqueue                     0.8.1     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
dask-mpi                          2022.4.0  /home/users/axelwang/.local/lib/python3.9/site-packages            pip
debugpy                           1.6.6     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
decorator                         5.1.1     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
defusedxml                        0.7.1     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
distlib                           0.3.4     /share/software/user/open/python/3.9.0/lib/python3.9/site-packages pip
distributed                       2022.10.1 /home/users/axelwang/.local/lib/python3.9/site-packages            pip
executing                         1.2.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
fastjsonschema                    2.16.2    /home/users/axelwang/.local/lib/python3.9/site-packages            pip
filelock                          3.6.0     /share/software/user/open/python/3.9.0/lib/python3.9/site-packages pip
flake8                            4.0.1     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
fonttools                         4.33.3    /home/users/axelwang/.local/lib/python3.9/site-packages            pip
fqdn                              1.5.1     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
fsspec                            2022.10.0 /home/users/axelwang/.local/lib/python3.9/site-packages            pip
greenlet                          1.1.2     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
h5netcdf                          1.0.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
h5py                              3.6.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
HeapDict                          1.0.1     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
idna                              3.3       /home/users/axelwang/.local/lib/python3.9/site-packages            pip
importlib-metadata                6.0.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
iniconfig                         1.1.1     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
ipykernel                         6.21.2    /home/users/axelwang/.local/lib/python3.9/site-packages            pip
ipython                           8.10.0    /home/users/axelwang/.local/lib/python3.9/site-packages            pip
ipython-genutils                  0.2.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
ipywidgets                        8.0.4     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
isoduration                       20.11.0   /home/users/axelwang/.local/lib/python3.9/site-packages            pip
jedi                              0.18.2    /home/users/axelwang/.local/lib/python3.9/site-packages            pip
Jinja2                            3.1.2     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
json5                             0.9.11    /home/users/axelwang/.local/lib/python3.9/site-packages            pip
jsonpointer                       2.3       /home/users/axelwang/.local/lib/python3.9/site-packages            pip
jsonschema                        4.17.3    /home/users/axelwang/.local/lib/python3.9/site-packages            pip
jupyter_client                    8.0.3     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
jupyter-contrib-core              0.4.2     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
jupyter-contrib-nbextensions      0.7.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
jupyter_core                      5.2.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
jupyter-events                    0.6.3     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
jupyter-highlight-selected-word   0.2.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
jupyter-nbextensions-configurator 0.6.1     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
jupyter_server                    2.3.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
jupyter_server_fileid             0.7.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
jupyter_server_terminals          0.4.4     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
jupyter_server_ydoc               0.6.1     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
jupyter-ydoc                      0.2.2     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
jupyterlab                        3.6.1     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
jupyterlab-pygments               0.2.2     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
jupyterlab_server                 2.19.0    /home/users/axelwang/.local/lib/python3.9/site-packages            pip
jupyterlab-widgets                3.0.5     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
kaleido                           0.2.1     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
kiwisolver                        1.4.2     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
llvmlite                          0.38.1    /home/users/axelwang/.local/lib/python3.9/site-packages            pip
locket                            1.0.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
lxml                              4.8.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
MarkupSafe                        2.1.1     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
matplotlib                        3.5.2     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
matplotlib-inline                 0.1.6     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
mccabe                            0.6.1     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
mistune                           2.0.5     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
mpi4py                            3.1.4     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
msgpack                           1.0.4     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
nbclassic                         0.5.2     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
nbclient                          0.7.2     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
nbconvert                         7.2.9     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
nbformat                          5.7.3     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
nest-asyncio                      1.5.6     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
netCDF4                           1.6.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
notebook                          6.5.2     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
notebook_shim                     0.2.2     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
numba                             0.55.1    /home/users/axelwang/.local/lib/python3.9/site-packages            pip
numpy                             1.23.2    /home/users/axelwang/.local/lib/python3.9/site-packages            pip
obspy                             1.3.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
packaging                         21.3      /home/users/axelwang/.local/lib/python3.9/site-packages            pip
pandas                            1.5.1     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
pandocfilters                     1.5.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
parso                             0.8.3     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
partd                             1.3.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
pexpect                           4.8.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
pickleshare                       0.7.5     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
Pillow                            9.1.1     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
pip                               22.3.1    /share/software/user/open/python/3.9.0/lib/python3.9/site-packages pip
pipx                              1.1.0     /share/software/user/open/python/3.9.0/lib/python3.9/site-packages pip
platformdirs                      2.5.2     /share/software/user/open/python/3.9.0/lib/python3.9/site-packages pip
plotly                            5.8.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
pluggy                            1.0.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
prometheus-client                 0.16.0    /home/users/axelwang/.local/lib/python3.9/site-packages            pip
prompt-toolkit                    3.0.36    /home/users/axelwang/.local/lib/python3.9/site-packages            pip
psutil                            5.9.3     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
ptyprocess                        0.7.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
pure-eval                         0.2.2     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
py                                1.11.0    /home/users/axelwang/.local/lib/python3.9/site-packages            pip
pycodestyle                       2.8.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
pycparser                         2.21      /home/users/axelwang/.local/lib/python3.9/site-packages            pip
pyexodus                          0.1.4     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
pyflakes                          2.4.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
Pygments                          2.14.0    /home/users/axelwang/.local/lib/python3.9/site-packages            pip
pyparsing                         3.0.9     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
pyrsistent                        0.18.1    /home/users/axelwang/.local/lib/python3.9/site-packages            pip
pytest                            7.1.2     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
pytest-mpl                        0.15.1    /home/users/axelwang/.local/lib/python3.9/site-packages            pip
python-dateutil                   2.8.2     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
python-json-logger                2.0.6     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
pytz                              2022.5    /home/users/axelwang/.local/lib/python3.9/site-packages            pip
PyVTK                             0.5.18    /home/users/axelwang/.local/lib/python3.9/site-packages
PyYAML                            6.0       /home/users/axelwang/.local/lib/python3.9/site-packages            pip
pyzmq                             25.0.0    /home/users/axelwang/.local/lib/python3.9/site-packages            pip
requests                          2.28.1    /home/users/axelwang/.local/lib/python3.9/site-packages            pip
rfc3339-validator                 0.1.4     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
rfc3986-validator                 0.1.1     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
salvus-mesh-lite                  0.0.1     /home/users/axelwang/.local/lib/python3.9/site-packages
scipy                             1.8.1     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
Send2Trash                        1.8.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
setuptools                        65.5.1    /share/software/user/open/python/3.9.0/lib/python3.9/site-packages pip
shiboken6                         6.3.1     /share/software/user/open/python/3.9.0/lib/python3.9/site-packages
shiboken6-generator               6.3.1     /share/software/user/open/python/3.9.0/lib/python3.9/site-packages
six                               1.16.0    /share/software/user/open/python/3.9.0/lib/python3.9/site-packages pip
sniffio                           1.3.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
sortedcontainers                  2.4.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
soupsieve                         2.4       /home/users/axelwang/.local/lib/python3.9/site-packages            pip
SQLAlchemy                        1.4.40    /home/users/axelwang/.local/lib/python3.9/site-packages            pip
stack-data                        0.6.2     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
tblib                             1.7.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
tenacity                          8.0.1     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
terminado                         0.17.1    /home/users/axelwang/.local/lib/python3.9/site-packages            pip
tinycss2                          1.2.1     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
tomli                             2.0.1     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
toolz                             0.12.0    /home/users/axelwang/.local/lib/python3.9/site-packages            pip
tornado                           6.2       /home/users/axelwang/.local/lib/python3.9/site-packages            pip
traitlets                         5.9.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
typing_extensions                 4.4.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
uri-template                      1.2.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
urllib3                           1.26.11   /home/users/axelwang/.local/lib/python3.9/site-packages            pip
userpath                          1.8.0     /share/software/user/open/python/3.9.0/lib/python3.9/site-packages pip
virtualenv                        20.14.1   /share/software/user/open/python/3.9.0/lib/python3.9/site-packages pip
wcwidth                           0.2.6     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
webcolors                         1.12      /home/users/axelwang/.local/lib/python3.9/site-packages            pip
webencodings                      0.5.1     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
websocket-client                  1.5.1     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
wheel                             0.37.1    /share/software/user/open/python/3.9.0/lib/python3.9/site-packages pip
widgetsnbextension                4.0.5     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
xarray                            2022.10.0 /home/users/axelwang/.local/lib/python3.9/site-packages            pip
y-py                              0.5.4     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
ypy-websocket                     0.8.2     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
zict                              2.2.0     /home/users/axelwang/.local/lib/python3.9/site-packages            pip
zipp                              3.14.0    /home/users/axelwang/.local/lib/python3.9/site-packages            pip

From this thread, it seems like the issue could be that my plotly, jupyter lab, ipywidgets versions are not strictly lined up, and the suggestion there was to check the changelog for specific version line ups. However, for my version of Plotly 5.8.0, I do not see any useful information there.