diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pyspark | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/pyspark b/bin/pyspark index 7932a247b5..67e1f61eeb 100755 --- a/bin/pyspark +++ b/bin/pyspark @@ -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 |