See the Spark Python programming guide
To run an interactive Python Spark interpreter, build Spark, then run:
./bin/pyspark
from within the Spark installation.
PySpark can also be used from standalone Python scripts by creating a SparkContext in your script and running the script using bin/pyspark
.
One can also launch PySpark in IPython, the enhanced Python interpreter - see the programming guide for details.