widget support on Kaggle kernel
See original GitHub issueI’m unable to get my widget (https://github.com/ismms-himc/clustergrammer2) to work in Kaggle (link to public kaggle notebook https://www.kaggle.com/cornhundred/kernel064927894e). I’m seeing the following error that begins with Could not instantiate widget
:
I’m using the following commands to pip install the widget:
!pip install ipywidgets
!pip install clustergrammer2
!jupyter nbextension enable --py --sys-prefix widgetsnbextension
!jupyter nbextension enable --py --sys-prefix clustergrammer2
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Diving Into IPython Widgets - Kaggle
ipywidgets is an open-source python library that is used to generate different types of widgets and implement them in a notebook. It is...
Read more >Interactive components in kernels? | Data Science ... - Kaggle
Interactive components that need open client–server channels—such as Jupyter Widgets, Bokeh interactives, Plotly charts and Shiny extravaganzas—will be ...
Read more >Cannot use interactive widgets in Kaggle Kernels
Unfortunately we can't support many interactive widgets in Kaggle notebooks. For example, if it needs a live backend connected, it won't render properly...
Read more >enabling ipywidgets(jupyter extension) | Data Science and ...
Is there a way to getting ipywidgets working in kernels. It is installed(probably a dependency during jupyter install). I my machine I have...
Read more >Is it possible to enable the qgrid widget in a Python Kernel?
First of all, i think that the kernels are a really great environment. Also, nearly all functionality is available, including ipywidgets which is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I commented on someone facing the same issue on Kaggle under product-feedback https://www.kaggle.com/product-feedback/42782
I think we can just raise a question on their Q&A section. Someone already asked about Jupyter widgets here (https://www.kaggle.com/questions-and-answers/33450) and here (https://www.kaggle.com/cavendish/interactive-widgets-in-a-notebook).
It actually seems to be very easy to get the widget to run in the notebook (see notebook https://www.kaggle.com/cornhundred/clustergrammer2-viz-stoeckius-et-al-2017). You just have to go to settings (on the right panel), Packages: Install, and just give the name of the custom package. I did not even need to do the usual
jupyter nbextension enable --py --sys-prefix widgetsnbextension
step.On a related note, I could not get the widget working on Google’s colab.
If widgets in kaggle works as easily as it seems to (and especially if we can embed the widgets into the static html notebooks) then it will be very useful for our group. Kaggle offers computers with 16GB of ram, private projects, easy version controlling, etc.