I am using a windows machine and would like to open ipython history commands using the default text editor. Is there a command that allows me to do this? Thanks.
%edit 1-4
That should open lines 1-4 from the current session in an editor. You can get previous sessions as well - run %hist?
to see how the syntax works.
You may need to set the EDITOR
environment variable to a command that launches your favourite editor.
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