GitHub user robbles opened a pull request:

    https://github.com/apache/spark/pull/2167

    Allow using custom ipython executable with pyspark

    Although you can make pyspark use ipython with `IPYTHON=1`, and also change 
the python executable with `PYSPARK_PYTHON=...`, you can't use both at the same 
time because it hardcodes the default ipython script.
    
    This makes it use the `PYSPARK_PYTHON` variable if present and fall back to 
default python, similarly to how the default python executable is handled.
    
    So you can use a custom ipython like so:
    `PYSPARK_PYTHON=./anaconda/bin/ipython IPYTHON_OPTS="notebook" pyspark`

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/robbles/spark patch-1

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/2167.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2167
    
----
commit d98e8a9870212c853d4d0ceeb471b54edcc8aa8c
Author: Rob O'Dwyer <[email protected]>
Date:   2014-08-27T20:50:07Z

    Allow using custom ipython executable with pyspark
    
    Although you can make pyspark use ipython with `IPYTHON=1`, and also change 
the python executable with `PYSPARK_PYTHON=...`, you can't use both at the same 
time because it hardcodes the default ipython script.
    
    This makes it use the `PYSPARK_PYTHON` variable if present and fall back to 
default python, similarly to how the default python executable is handled.
    
    So you can use a custom ipython like so:
    `PYSPARK_PYTHON=./anaconda/bin/ipython IPYTHON_OPTS="notebook" pyspark`

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to