title: Starting Ipython with Spark 2
body: <p>I have my ipthon startup script as follows</p>
  
  <pre><code>IPYTHON_OPTS="notebook --port 8889 \
  --notebook-dir='/usr/hdp/2.3.2.0-2950/spark/' \
  --ip='*' --no-browser" pyspark
  </code></pre>
  
  <p>It runs fine for older Spark. But when I switch to Spark2, I get the following error:</p>
  
  <p>IPYTHON and IPYTHON_OPTS are removed in Spark 2.0+. Remove these from the environment and set PYSPARK_DRIVER_PYTHON and PYSPARK_DRIVER_PYTHON_OPTS instead.</p>
  
  <p>It is not clear what command I should replace it with. Can someone help?</p>