title: %% Cell magic tag not working in Jupyter notebook?
body: <p>I'm new to Jupyter notebook and I'm trying to set one up with Python and R, using rpy2. I have the line</p>
  
  <pre><code>%%R -i df
  </code></pre>
  
  <p>which gives me the error SyntaxError: invalid syntax</p>
  
  <p>However when I use just one %, such as </p>
  
  <pre><code>%R require(ggplot2)
  </code></pre>
  
  <p>this works fine. How can I fix this issue? I am using Python 2.7.</p>