On Dec 2, 11:47 am, John H Palmieri <jhpalmier...@gmail.com> wrote:
> sage: ed   # or %ed or %edit
>
> then it opens up your favorite editor (whatever is set by the $EDITOR
> shell variable).  Then in the editor you can type
>
> sage: ed FF
>
> and it will let you modify your code.  This is an ipython feature, it
> seems.  Should it be described somewhere in the Sage documentation?

edits made in this way will only affect the runtime copy. Upon the
next sage -b, they will be overwritten with the original definition.
If you want to edit sage library code, you can do edit
(sage.object.function,editor="vi") or something similar to open an
editor on the appropriate definition in the current hg branch. This
also works for cython code. Edits only take effect upon the next sage -
b.

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to