Repository: incubator-predictionio Updated Branches: refs/heads/develop bcf6b4e10 -> 3071ca0fa
Add documentation regarding Spark and pylab While running the spark console in ipython, the current commands gives error, so to mitigate that I've added %pylab inline instead of pylab inline which seems to give the problem. This has been checked in my case. Closes #377 Project: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/commit/a7acb301 Tree: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/tree/a7acb301 Diff: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/diff/a7acb301 Branch: refs/heads/develop Commit: a7acb3019bcb9e8e4f780a2d1b1ef9191a1c10a9 Parents: e34a853 Author: vaghawan <[email protected]> Authored: Wed May 3 09:19:32 2017 -0700 Committer: Donald Szeto <[email protected]> Committed: Wed May 3 09:19:32 2017 -0700 ---------------------------------------------------------------------- .../source/datacollection/analytics-ipynb.html.md.erb | 11 +++++++++++ 1 file changed, 11 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/a7acb301/docs/manual/source/datacollection/analytics-ipynb.html.md.erb ---------------------------------------------------------------------- diff --git a/docs/manual/source/datacollection/analytics-ipynb.html.md.erb b/docs/manual/source/datacollection/analytics-ipynb.html.md.erb index bcf41a3..a843cbd 100644 --- a/docs/manual/source/datacollection/analytics-ipynb.html.md.erb +++ b/docs/manual/source/datacollection/analytics-ipynb.html.md.erb @@ -41,7 +41,18 @@ Launch IPython Notebook with PySpark using the following command, with ``` $ PYSPARK_DRIVER_PYTHON=ipython PYSPARK_DRIVER_PYTHON_OPTS="notebook --pylab inline" $SPARK_HOME/bin/pyspark ``` +If you see a error appearing in the console like this: +``` +[E 10:07:53.900 NotebookApp] Support for specifying --pylab on the command line has been removed. +[E 10:07:53.901 NotebookApp] Please use `%pylab inline` or `%matplotlib inline` in the notebook itself. +``` + +Then you can use the following command. + +``` +PYSPARK_DRIVER_PYTHON=ipython PYSPARK_DRIVER_PYTHON_OPTS="notebook --`%pylab inline`" $SPARK_HOME/bin/pyspark +``` By default, you should be able to access your IPython Notebook via web browser at http://localhost:8888.
