Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Description
Bug summary
I am using a Jupyter notebook in VS Code Version: 1.93.1. on MacOS Ventura 13.4.1 and Python 3.12.5
Withmatplotlib<=3.9.0
, I can plot visualizations inline within VS Code. The reported backend is by defaultinline
and everything is fine.
Starting with version 3.9.1, the default backend apparently switched tomacosx
. When I try to plot something now, a new Python window pops up, but no plot is created unless I addplt.show()
.
Is this the intended behavior? It breaks essentially all of my notebooks because I would have to go in and add%matplotlib inline
to make things work again.
Code for reproduction
importmatplotlib.pyplotaspltimportmatplotlibprint(matplotlib.get_backend())plt.plot([0,1,2], [1,2,3])
Actual outcome
Withmatplotlib<=3.9.0
:

Withmatplotlib>3.9.0
:

Expected outcome
Default backend should beinline
inmatplotlib>3.9.0
.
Additional information
No response
Operating system
MacOS Ventura 13.4.1
Matplotlib Version
3.9.0, 3.9.1, 3.9.2
Matplotlib Backend
inline, macosx
Python version
3.12.5
Jupyter version
6.5.1
Installation
pip