iPython - Editor



  • %edit magic - IPython opens an empty editor with a temporary file, and it returns the contents of your editing session as a string variable.
  • %edit -p - open an editor with the same data as the last time you used %edit.
  • %edit _NN, where NN is the number of the output prompt.

Documentation / Reference

Powered by ComboStrap