Open KimmyHarry opened 3 years ago
Can you try adding an a.render()
call after you create your widget? I believe in colab the widget will render upon construction, but in Jupyter you must either call the render method on the widget, or return the widget itself in the notebook cell (by just having another line in that cell, or a different cell that just contains a
).
Can you try adding an
a.render()
call after you create your widget? I believe in colab the widget will render upon construction, but in Jupyter you must either call the render method on the widget, or return the widget itself in the notebook cell (by just having another line in that cell, or a different cell that just containsa
).
Thank you very much for your answer. But after adding an 'a.render()'call ,I still can't see the widget. I wonder if this has something to do with the fact that I didn't import Google.colab.
What version of Jupyter are you using? Have you followed the install steps in the readme in https://github.com/pair-code/what-if-tool ?
Yes, I have followed the tutorial. And my version is 6.3. But I am not running the three lines of pip code in jupyter notebook, but the command running in cmd, will this have any effect?
What version of Jupyter are you using? Have you followed the install steps in the readme in https://github.com/pair-code/what-if-tool ?
Running those lines in the console (only need to one time, when first installed) before launching your jupyter kernel should work.
Perhaps you could try an older version of Jupyter, or using JupyterLab versions 1, 2, or 3? It's possible the widget has issues in later versions of classic Jupyter.
Thank you a lot, I will try it.
In addition, I found the following error when I entered the program today. May I ask whether this error indicates that I did not install successfully.
If you are just opening a notebook that previously rendered the widget, I don't think that error signifies any specific install issue. The rendering won't persist between openings of a notebook. You would need to re-run the cell to re-render the UI upon opening the notebook again. Any luck with different Jupyter versions?
Hello, When i run the example - WIT_Model_Comparison.ipynb
inside my jupyter notebook in Anaconda, I can't see any widget.
But the notebook shows that widget is already installed.