matplotlib inline Python 2.7 %
<p>I'm trying to run the following code, but I keep getting a Syntax Error. It runs sometimes on iPython notebook, but it's not stable.</p>

<p>The code is supposed to get a bubble chart of the variables set.</p>

<pre><code>%matplotlib inline

import pandas as pd
import numpy as np

df = pd.read_csv('effort.csv')
df.plot(kind='scatter', x='setting', y='effort', s=df['country']*df['change']);
</code></pre>