Skip to content

Google Colab issue #587

Open
Open

Description

@TheTimYun

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']

Activity

  1. TheTimYun commented on Feb 14, 2025

    @TheTimYun
    Author

    It seems, that !pip install matplotlib ruins everything

  2. changed the title [-]Google Gollab issue[/-] [+]Google Colab issue[/+] on Feb 18, 2025
  3. ianhi commented on Feb 18, 2025

    @ianhi
    Collaborator

    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

  4. mondus commented on Mar 8, 2025

    @mondus

    There is a workaround to resolve this issue get_ipython().kernel.do_shutdown(restart=True). see colabtools issue 5155

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions