what-if-tool icon indicating copy to clipboard operation
what-if-tool copied to clipboard

Cannot see the what if widget in the notebook

Open gaganmalhotra opened this issue 4 years ago • 3 comments

When i run the example - https://colab.research.google.com/github/pair-code/what-if-tool/blob/master/WIT_Model_Comparison.ipynb#scrollTo=NUQVro76e38Q

inside my local jupyter notebook or in sagemaker jupyter notebook i cannot see any widget loading ?

I saw another ticket where you mentioned to install witwidget and activate nbextension before launching notebook, i tried that too but still cant see any widget :(

I have tensorflow version 2.4.0 and witwidget latest version

PLease help to understand what could be the error or how can i debug ?

Thank you

gaganmalhotra avatar Jan 23 '21 07:01 gaganmalhotra

Thanks for the heads-up. That notebook actually is missing one final line to make it render in Jupyter notebooks (It'll render in colab fine as-is). Please add a.render() in the last cell, or a new cell, to see WIT

jameswex avatar Jan 26 '21 14:01 jameswex

Hi, I tried to add a.render() but the WiT is still not popping out...

jiali1998 avatar Jun 06 '21 19:06 jiali1998

Hi @jiali1998 , what steps did you take to install WIT and what environment are you using it in? Local jupyter following the installation steps in the WIT readme should work with jupyter notebooks, and jupyter lab 1.x and 2.x. I think sagemaker might have its own issues with displaying WIT that are separate.

jameswex avatar Jun 07 '21 12:06 jameswex