#!/usr/bin/env python # coding: utf-8 # In[ ]: from __future__ import print_function import matplotlib matplotlib.use('nbagg') from matplotlib import pyplot as plt if matplotlib.__version__ < '1.5': print('Matplotlib needs to be updated') plt.plot([1, 2, 3, 2, 1]) plt.show() # In[ ]: