matplotlib / matplotlib/ipympl

DepreciationWarning in toolbar causes AttributeError

Open
#530 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
1.7k
Forks
234
PR merge metrics
No merged PRs in 30d

Description

Describe the issue

Accessing toolbar properties causes AttributeError: 'super' object has no attribute '__getattr__'

image

The problematic lines are here:

https://github.com/matplotlib/ipympl/blob/238d7965c52f3fe8de02242c096714e064847819/ipympl/backend_nbagg.py#L162-L170

This is most probably caused by the mixin-style classes ... a explanation (and a possible solution) might be this:

https://stackoverflow.com/a/28864246/9703451

Versions

 3.11.3 | packaged by conda-forge | (main, Apr  6 2023, 08:50:54) [MSC v.1934 64 bit (AMD64)]
ipympl version: 0.9.3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading ipympl/backend_nbagg.py at lines 162-170 and reproduce toolbar property access with the reported Python 3.11.3 and ipympl 0.9.3 versions. Check the mixin-style class behavior described in the linked discussion. Done means toolbar properties no longer emit the warning or raise the reported AttributeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter, python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.