Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Bug]: Using an ipython config of InteractiveShellApp.matplotlib='inline' fails on macos for matplotlib>3.9.0 #28855

Copy link
Copy link
Open
@Simon-Stone

Description

@Simon-Stone
Issue body actions

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

With matplotlib<=3.9.0, I can plot visualizations inline within VS Code. The reported backend is by default inline and everything is fine.

Starting with version 3.9.1, the default backend apparently switched to macosx. When I try to plot something now, a new Python window pops up, but no plot is created unless I add plt.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

import matplotlib.pyplot as plt

import matplotlib

print(matplotlib.get_backend())

plt.plot([0, 1, 2], [1, 2, 3])

Actual outcome

With matplotlib<=3.9.0:

image

With matplotlib>3.9.0:

image

Expected outcome

Default backend should be inline in matplotlib>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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.