Skip to content

Commit 45df912

Browse files
committed
Revert "[Spark-1134] only call ipython if no arguments are given; remove IPYTHONOPTS from call"
This reverts commit afb5ea6.
1 parent afb5ea6 commit 45df912

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

bin/pyspark

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,8 @@ if [ -n "$IPYTHON_OPTS" ]; then
5555
IPYTHON=1
5656
fi
5757

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

0 commit comments

Comments
 (0)