You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@predictionio.apache.org by do...@apache.org on 2017/05/03 16:20:43 UTC

incubator-predictionio git commit: Add documentation regarding Spark and pylab

Repository: incubator-predictionio
Updated Branches:
  refs/heads/livedoc e34a853d0 -> a7acb3019


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/livedoc
Commit: a7acb3019bcb9e8e4f780a2d1b1ef9191a1c10a9
Parents: e34a853
Author: vaghawan <va...@gmail.com>
Authored: Wed May 3 09:19:32 2017 -0700
Committer: Donald Szeto <do...@apache.org>
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.