How to enter into paste mode in "pyspark" Spark Shell? Actually I am looking for an equivalent ":paste" command (works in Scala Spark Shell) in "pyspark". By using this mode, I would like to paste entire code snippet in shell rather than executing line by line.
If you use IPython terminal you can paste using %paste
/ %cpaste
magic. The first one executes code from the clipboard automatically, the second one is closer to Scala REPL :paste
and requires termination by --
or Ctrl-D.
It is also possible to use %edit
magic which opens external editor and executes code on exit.
Standard Python shell doesn't provide similar functionality.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With