Skip to content

Commit

Permalink
Revert "[Spark-1134] only call ipython if no arguments are given; rem…
Browse files Browse the repository at this point in the history
…ove IPYTHONOPTS from call"

This reverts commit afb5ea6.
  • Loading branch information
mateiz committed Apr 2, 2014
1 parent afb5ea6 commit 45df912
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bin/pyspark
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@ if [ -n "$IPYTHON_OPTS" ]; then
IPYTHON=1
fi

# Only use ipython if no command line arguments were provided [SPARK-1134]
if [[ "$IPYTHON" = "1" && $# = 0 ]] ; then
exec ipython
if [[ "$IPYTHON" = "1" ]] ; then
exec ipython $IPYTHON_OPTS
else
exec "$PYSPARK_PYTHON" "$@"
fi

0 comments on commit 45df912

Please sign in to comment.