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

Google Colab issue #587

Open
TheTimYun opened this issue Feb 14, 2025 · 2 comments
Open

Google Colab issue #587

TheTimYun opened this issue Feb 14, 2025 · 2 comments

Comments

@TheTimYun
Copy link

The problem in encountered in current Google Collab version. If I use ipympl the easiest way - the code worked about two months ago:

!pip install ipympl
from google.colab import output
output.enable_custom_widget_manager()

%matplotlib ipympl

I get an Error message:

Key backend: 'module://ipympl.backend_nbagg' is not a valid value for backend; supported values are ['gtk3agg', 'gtk3cairo', 'gtk4agg', 'gtk4cairo', 'macosx', 'nbagg', 'notebook', 'qtagg', 'qtcairo', 'qt5agg', 'qt5cairo', 'tkagg', 'tkcairo', 'webagg', 'wx', 'wxagg', 'wxcairo', 'agg', 'cairo', 'pdf', 'pgf', 'ps', 'svg', 'template', 'module://ipykernel.pylab.backend_inline', 'inline']

However, If I do

%matplotlib --list

I get:

Available matplotlib backends: ['tk', 'gtk', 'gtk3', 'gtk4', 'wx', 'qt4', 'qt5', 'qt6', 'qt', 'osx', 'nbagg', 'notebook', 'agg', 'svg', 'pdf', 'ps', 'inline', 'ipympl', 'widget']

@TheTimYun
Copy link
Author

It seems, that !pip install matplotlib ruins everything

@ianhi ianhi changed the title Google Gollab issue Google Colab issue Feb 18, 2025
@ianhi
Copy link
Collaborator

ianhi commented Feb 18, 2025

Hi @TheTimYun do other widgets work? As it stands I'm inclined to think that this is a colab bug, not an ipympl bug. Nothing has changed from our end over the past few months

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