The widgets appear and work fine when I use pythreejs in notebooks.
When I save the notebook along with its state and build html docs using nbsphinx, the widgets do not appear when opening the html in a browser.
The widgets state data is present in the ipynb file and in the html file though.
As a minimal example, I tried it on this repo. On tag 4.2.1, I built the html docs, opened a html file in a browser and the widget appear and work. So the it seems the issue doesn't come from nbsphinx.
As soon as I open one of the notebooks in examples and execute it myself, save output and state, followed by building the docs again, the widgets do not appear.
Also when I run a notebook with another widget say ipywidgets.IntSlider, it works. So the problem doesn't seem to come from widgets in general.
I'm using pythreejs version 2.4.2 with
jupyter --version
Selected Jupyter core packages...
IPython : 8.18.1
ipykernel : 6.29.4
ipywidgets : 8.1.3
jupyter_client : 7.4.9
jupyter_core : 5.7.2
jupyter_server : 2.14.1
jupyterlab : 4.2.3
nbclient : 0.10.0
nbconvert : 7.16.4
nbformat : 5.10.4
notebook : 6.5.7
qtconsole : not installed
traitlets : 5.14.3
Any idea why my threejs widgets can't be converted properly by nbsphinx ?
The widgets appear and work fine when I use
pythreejsin notebooks.When I save the notebook along with its state and build html docs using
nbsphinx, the widgets do not appear when opening the html in a browser.The widgets state data is present in the ipynb file and in the html file though.
As a minimal example, I tried it on this repo. On tag
4.2.1, I built the html docs, opened a html file in a browser and the widget appear and work. So the it seems the issue doesn't come fromnbsphinx.As soon as I open one of the notebooks in
examplesand execute it myself, save output and state, followed by building the docs again, the widgets do not appear.Also when I run a notebook with another widget say
ipywidgets.IntSlider, it works. So the problem doesn't seem to come from widgets in general.I'm using
pythreejsversion2.4.2withAny idea why my threejs widgets can't be converted properly by
nbsphinx?