Skip to content
Snippets Groups Projects
Commit 8cdfb08c authored by Nick Pentreath's avatar Nick Pentreath
Browse files

Fix 'IPYTHON=1 ./pyspark' throwing 'ValueError: Cannot run multiple SparkContexts at once'

parent d2efe135
No related branches found
No related tags found
No related merge requests found
......@@ -59,8 +59,7 @@ if [ -n "$IPYTHON_OPTS" ]; then
fi
if [[ "$IPYTHON" = "1" ]] ; then
IPYTHON_OPTS=${IPYTHON_OPTS:--i}
exec ipython "$IPYTHON_OPTS" -c "%run $PYTHONSTARTUP"
exec ipython "$IPYTHON_OPTS" "$@"
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