Matplotlib does not work from Python console in interactive mode v 2017.1



I am trying to plot some data using matplotlib in interactive mode using IntelliJ Idea 2017.1 with Python plugin. 


This works, but blocks the console until I close the plot:

import matplotlib.pyplot as plt
plt.plot([1, 2, 3, 4])



This does not work - a grey window shows with hourglass cursor, and I have to kill the process to get rid of it:

import matplotlib.pyplot as plt
plt.plot([1, 2, 3, 4]) without interactive mode gives the same results.



My environment:
- Windows7
- Python 2.7.12
- Anaconda 4.0.0 64 bit
- Matplotlib 1.5.1

This has stopped working after I have upgraded from 2016.3 to 2017.1.

1 comment

Looks like this issue has already been addressed in this post:

Need to set environment variables DISPLAY=True;PYTHONBUFFERED=1


Please sign in to leave a comment.