question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi, I use ipympl in jupyterlab.%matplotlib widget opens a different figure for the same cell after each run. Soon I’ll get this max open warning, which is kinda irritating. %matplotlib notebook has no such issue. Is there a way to not open another figure in the same cell?

image (%matplotlib widget)

image (%matplotlib notebook)

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
erickson33commented, Aug 2, 2019

Hi all, just checking if there are any updates on this. I’m a daily user, and I agree with Merlin that it is pretty irritating.

1reaction
tacaswellcommented, Jun 28, 2019

plt.close('all') will also close all open figures.

I think the underlying problem here is that with nbagg when the js-widget is removed from the DOM we tear down the figure on the pyplot side and (try) to release all of the references, however with ipympl because the widget may be shown in multiple contexts.

There needs to be some reference counting to tell when there are no visible figures left?

Read more comments on GitHub >

github_iconTop Results From Across the Web

matplotlib get rid of max_open_warning output - Stack Overflow
Try setting it this way: import matplotlib as plt plt.rcParams.update({'figure.max_open_warning': 0}). Not sure exactly why this works, but it mirrors the ...
Read more >
jupyter runtimewarning: more than 20 figures have been opened
max open warning. Usually this error Arises when People Upgrade Mysql server from old version. “open_file_limit” and “Max_connections” are very important ...
Read more >
rcParam figure.max_open_warning - CryoSPARC Discuss
I am attempting to perform a 2D classification using 100 iterations for 50 classes. My job stops at 44 iterations with the error...
Read more >
HOOD OPEN WARNING BUT HOOD CLOSED FORD C-MAX ...
HOOD OPEN WARNING BUT HOOD CLOSED FORD C- MAX FIX, HOOD AJARIf you have Ford C- MAX and you want to see why...
Read more >
DOOR AJAR MESSAGE WARNING FORD C-MAX FIX
DOOR AJAR MESSAGE WARNING FORD C- MAX FIXIf you have Ford C- MAX and you want to see why you have door ajar...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found