From 872df760579856695d5ce5347c4c18c94de52749 Mon Sep 17 00:00:00 2001 From: Cong Yue Date: Fri, 20 Mar 2015 16:36:48 -0700 Subject: [PATCH] Update the command to use IPython notebook As for "notebook --pylab inline" is not supported any more, update the related documentation for this. --- docs/programming-guide.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/programming-guide.md b/docs/programming-guide.md index eda3a95426182..7774331da91d2 100644 --- a/docs/programming-guide.md +++ b/docs/programming-guide.md @@ -237,9 +237,11 @@ You can customize the `ipython` command by setting `PYSPARK_DRIVER_PYTHON_OPTS`. the [IPython Notebook](http://ipython.org/notebook.html) with PyLab plot support: {% highlight bash %} -$ PYSPARK_DRIVER_PYTHON=ipython PYSPARK_DRIVER_PYTHON_OPTS="notebook --pylab inline" ./bin/pyspark +$ PYSPARK_DRIVER_PYTHON=ipython PYSPARK_DRIVER_PYTHON_OPTS="notebook" ./bin/pyspark {% endhighlight %} +After IPython Notebook server is launched, you can create a new "Python 2" notebook from "Files" tab. Inside the notebook, you can input the '%pylab inline' command as part of your notebook before you start to try spark from IPython notebook. +