Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

interactive elements do not work in google colab #6

Open
maxpietsch opened this issue Feb 8, 2021 · 2 comments
Open

interactive elements do not work in google colab #6

maxpietsch opened this issue Feb 8, 2021 · 2 comments

Comments

@maxpietsch
Copy link

when using matplotlib notebook, the main image does not show, with inline the plot does not react to user input. Example:

https://colab.research.google.com/drive/1o_cE7t8b4Hqv5BY7w202c5CLE4IsEQea?usp=sharing

@spinicist
Copy link
Owner

Hello,

It looks like the way to enable IPyWidgets has changed again. I have had a lot of problems in the past with getting the back-end correct, and it seems to change on a semi-regular basis. Keeping up is a chore.

I suspect the correct back-end is now %matplotlib widget, however this fails in Colab because the ipympl module is not installed. I tried on my local machine, but even after installing ipympl it still fails, I think inside the call to plt.ion() at line 34 of jupyter.py.

If you have any time to investigate further (e.g. find an up to date tutorial on how to use widgets) I'd be very grateful.

@spinicist
Copy link
Owner

Hello again, @nirso submitted #7 which fixes the interactive elements in some environments, but sadly not in Google colab. Apparently this is a known issue: googlecolab/colabtools#86

Hopefully they will implement a fix sometime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants