Skip to content
Snippets Groups Projects
Commit b53174a6 authored by Matei Zaharia's avatar Matei Zaharia
Browse files

Merge pull request #454 from MLnick/ipython

SPARK-685 Adding IPYTHON environment variable support for launching pyspark using ...
parents 9cfa0683 21d3946d
No related branches found
No related tags found
No related merge requests found
...@@ -36,4 +36,9 @@ if [[ "$SPARK_LAUNCH_WITH_SCALA" != "0" ]] ; then ...@@ -36,4 +36,9 @@ if [[ "$SPARK_LAUNCH_WITH_SCALA" != "0" ]] ; then
export SPARK_LAUNCH_WITH_SCALA=1 export SPARK_LAUNCH_WITH_SCALA=1
fi fi
exec "$PYSPARK_PYTHON" "$@" if [[ "$IPYTHON" = "1" ]] ; then
export PYSPARK_PYTHON="ipython"
exec "$PYSPARK_PYTHON" -i -c "%run $PYTHONSTARTUP"
else
exec "$PYSPARK_PYTHON" "$@"
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment