I have a python script I'm trying to debug, and I'm using Pycharm Community Edition version 2016.3.2.
What I would like to do is draw some graphs in the debugging console (which I activate by setting a breakpoint and launching the debugger), but the problem is that the plot just doesn't display.
Some code to get a reproducible example of my problem is given in the official documentation matplotlib here , in particular this bit of code
import matplotlib.pyplot as plt
plt.ion()
plt.plot([1.6, 2.7])
What I find strange is that if I open a new python console from within pycharm, when this code is executed, pycharm pops up a new window showing the plot, but this does not happen if I paste the same code into the "debug" console.
In both cases, I get the following output in the console

I found a potentially related entry here , but to be honest, I can’t tell if the two problems are coping with the same problem.
source
share