title: execute multiple lines in jupyter notebook
body: <p>I am a newbie with both python and jupyter notebook.</p>
  
  <p>After searching I found that if I wanted to execute multiple lines for sqlContext I had to use triple """ like this:</p>
  
  <pre><code>sqlContext.sql("""select year,month,count(distinct station) as count
                 from tempReadingsTable
                 where year&gt;=1950 and year&lt;=2014 and value&gt;=10
                 group by year,month
                 order by count desc
                  """).show()
  </code></pre>
  
  <p>Now, I am trying to find the same for this:</p>
  
  <pre><code>schMax = schMax.groupBy('year').
  agg(fun.max('value').alias('value')).
  join(sch['year','value']).
  drop_duplicates(['year']).
  select(['year','station','value']).
  orderBy(['value'],ascending=[0])
  </code></pre>
  
  <p>Unless I run it all in one line it fails! how can I prevent that? I want to be able to execute all the lines separately...</p>