captum
captum copied to clipboard
JS error: Failed to load model class 'CaptumInsightsModel' from module 'jupyter-captum-insights'
Hi everyone, I encountered a problem while trying to run Captum Insights in a Jupyter Notebook. I installed the nbextensions mentioned in the Readme, but still receive a JS error. What am I missing?
$ pip list | grep "captum\|jupyter"
captum 0.6.0
jupyter 1.0.0
jupyter_client 7.4.9
jupyter-console 6.4.0
jupyter_core 5.3.1
jupyter-events 0.7.0
jupyter-lsp 2.2.0
jupyter_server 2.7.3
jupyter_server_terminals 0.4.4
jupyterlab 4.0.6
jupyterlab-pygments 0.1.2
jupyterlab_server 2.25.0
jupyterlab-widgets 3.0.9
$ jupyter nbextension list
Known nbextensions:
config dir: /home/user/.jupyter/nbconfig
notebook section
jupyter-js-widgets/extension enabled
- Validating: OK
jupyter-captum-insights/extension enabled
- Validating: OK
config dir: /home/user/.local/etc/jupyter/nbconfig
notebook section
jupyter-captum-insights/extension enabled
- Validating: OK
jupyterlab-plotly/extension enabled
- Validating: OK
jupyter-js-widgets/extension enabled
- Validating: OK
Jupyter cell output:
Console:
Thank you!
Ok, I just updated everything I could to the latest version, but still no success in getting Captum Insights to work in Notebook
$ yarn -v
1.22.19
$ node --version
v20.8.0
I'm having the same problem.
$ mamba list "captum|jupyter"
# Name Version Build Channel
captum 0.6.0 pyhd8ed1ab_0 conda-forge
jupyter_client 8.1.0 pyhd8ed1ab_0 conda-forge
jupyter_core 5.3.0 py310hff52083_0 conda-forge
jupyter_events 0.6.3 pyhd8ed1ab_0 conda-forge
jupyter_server 2.5.0 pyhd8ed1ab_0 conda-forge
jupyter_server_fileid 0.9.0 pyhd8ed1ab_0 conda-forge
jupyter_server_terminals 0.4.4 pyhd8ed1ab_1 conda-forge
jupyter_server_ydoc 0.8.0 pyhd8ed1ab_0 conda-forge
jupyter_ydoc 0.2.3 pyhd8ed1ab_0 conda-forge
jupyterlab 3.6.3 pyhd8ed1ab_0 conda-forge
jupyterlab_pygments 0.2.2 pyhd8ed1ab_0 conda-forge
jupyterlab_server 2.22.0 pyhd8ed1ab_0 conda-forge
jupyterlab_widgets 3.0.9 pyhd8ed1ab_0 conda-forge
$ jupyter nbextension list
Known nbextensions:
config dir: /home/serge/mambaforge/envs/torch2/etc/jupyter/nbconfig
notebook section
jupyter-captum-insights/extension enabled
- Validating: OK
jupyterlab-plotly/extension enabled
- Validating: OK
jupyter-js-widgets/extension enabled
- Validating: OK
config dir: /home/serge/.jupyter/nbconfig
notebook section
jupyter-js-widgets/extension enabled
- Validating: OK
$ yarn -v
3.6.1
$ node --version
v18.15.0
Both on firefox or chromium, through jupyter lab or jupyter, same cell output and log message.
If I use visualizer.serve(debug=True) instead of render the page at the localhost address appears to be blank. (there is flash of the captum interface I think but really brief).
The log from the browser on the blank page displays:
But running:
python -m captum.insights.example
works though...
Hm, any updates? I couldn't figure it out and just cut DeepInsight from my notebooks for now... :/