Interactive mode matplotlib

According to the docu it should be this, not working for me:

plt.ion()

Somehow it magically worked before without any changes from my side actually. Anyway, this1 worked:

import matplotlib
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt