Ask Your Question

Revision history [back]

Another option, in addition to @tmonteil's nice answer: once you've defined f, you can do this:

sage: ed f

(%ed f or edit(f) should accomplish the same thing.) This will open up an editor window (editor based on the setting of the EDITOR environment variable, which of course should be emacs). Then you can modify f however you like.