Skip to content

[Doc]: the matplotlib notebook magic requires notebook<7 #27144

Closed

Description

@qci-amos

Documentation Link

https://matplotlib.org/stable/users/explain/figure/interactive.html#jupyter-notebooks-jupyterlab

Problem

As discussed in this issue:
jupyter/notebook#7115

it sounds like the wording in the documentation should be clarified because a user installing unpinned dependencies will run into a problem with old notebooks.

Suggested improvement

Instead of:

If you only need to use the classic notebook, you can use

it could say

If you only need to use the classic notebook (i.e., notebook<7), you can use

(I'd also suggest a better error message somewhere)

Activity

  1. jklymak commented on Oct 19, 2023

    @jklymak
    Member

    That seems reasonable, though I find that whole section somewhat convoluted. Probably should be fixed in figure intro as well. Any interest in making a PR?

  2. qci-amos commented on Oct 19, 2023

    @qci-amos
    Author

    I'm not qualified to make a PR! 😄 I'm just wearing a devops hat here.

  3. added this to the v3.8.1 milestone on Oct 19, 2023
  4. mattymo30 commented on Oct 19, 2023

    @mattymo30
    Contributor

    I would like to take a stab at this, at the very least fixing the wording suggested above.

  5. qci-amos commented on Oct 23, 2023

    @qci-amos
    Author

    An important detail to us that we've noticed is that with notebook==7 the fix:

    %matplotlib widget
    

    isn't sufficient for us. We're interested in more than just basic interactivity (e.g., panning, zooming) but also live updating, for example, the plot changing as data streams in. This is the closest issue to our problem that we've found: matplotlib/ipympl#290

    Probably this isn't relevant to the PR in progress; I'm just making a note of functionality that has changed between versions 6 and 7 of notebook.

  6. tacaswell commented on Oct 23, 2023

    @tacaswell
    Member

    @qci-amos ipympl should support all of that functionality. You may need to create the figure a cell before the cell where you stream data into it though.

  7. modified the milestones: v3.8.1, v3.8.2 on Oct 31, 2023
  8. ksunden commented on Oct 31, 2023

    @ksunden
    Member

    Closed by #27165

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions