aboutsummaryrefslogtreecommitdiff
path: root/bin/pyspark
diff options
context:
space:
mode:
authorMatei Zaharia <matei@databricks.com>2014-04-01 19:31:50 -0700
committerMatei Zaharia <matei@databricks.com>2014-04-01 19:31:50 -0700
commit45df9127365f8942794273b8ada004bf6ea3ef10 (patch)
treea9163a04b3e62fed5de67a490882ef8e64d536b2 /bin/pyspark
parentafb5ea62786e3ca055e247176def3e7ecf0d2c9d (diff)
downloadspark-45df9127365f8942794273b8ada004bf6ea3ef10.tar.gz
spark-45df9127365f8942794273b8ada004bf6ea3ef10.tar.bz2
spark-45df9127365f8942794273b8ada004bf6ea3ef10.zip
Revert "[Spark-1134] only call ipython if no arguments are given; remove IPYTHONOPTS from call"
This reverts commit afb5ea62786e3ca055e247176def3e7ecf0d2c9d.
Diffstat (limited to 'bin/pyspark')
-rwxr-xr-xbin/pyspark5
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