The following does not work:
However this totally works in Jupiter Notebook.
If I simply comment it out, the graph doesn't show up. (Maybe it won't show up anyways)
import pandas as pd import matplotlib from numpy.random import randn import numpy as np import matplotlib.pyplot as plt df = pd.read_csv('data/playgolf.csv', delimiter='|' ) print(df.head()) hs = df.hist(['Temperature','Humidity'], bins=5) print(hs) 

%represents the modulo; that is, the remainder when one number is divided by another.%matplotlib inlinepart out. That only has meaning within Jupiter Notebook: it makes matplotlib's plots appear within the notebook cells instead of as separate windows. Since you don't have a notebook window for them to be embedded in, the separate windows are the only way to go.c.InteractiveShellApp.matplotlib = 'inline'in$HOME/.ipython/profile_default/ipython_config.pyso you won't bother with%matplotlib inlineanymore :-)