Skip to content

[Bug]: Plotting code executes without displaying plots in the Console but works fine in the "Run" window #28581

Closed
@dododobetter

Description

@dododobetter

Bug summary

Previously, I was able to generate plots in PyCharm CE Console using Python 3.7. However, after upgrading to Python 3.11 and 3.12, the plots no longer appear in the Console. But the plots still generate successfully when running the same code in the "Run" window of PyCharm.

Code for reproduction

import matplotlib.pyplot as plt
plt.plot([1, 2, 3], [4, 5, 6])
plt.xlabel('X-axis')
plt.ylabel('Y-axis')
plt.title('Example Plot')
plt.show()

Actual outcome

The Python Launcher continuously bounces in my dock and eventually becomes unresponsive.

Expected outcome

Plotting should be consistent across PyCharm environments regardless of the Python version used.

Additional information

No response

Operating system

Mac OS

Matplotlib Version

3.9.1

Matplotlib Backend

No response

Python version

3.11

Jupyter version

No response

Installation

pip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions