Sage and Emacs

The purpose of this page is to collect tips and tricks for Sage users and developpers using the text editor Emacs.

Sage-mode

This emacs mode allows for running a Sage interpreter inside emacs, and interacting with it sending in chunks of code or doctests, directly opening the appropriate source files from the help, the debugger or the tracebacks. It also provides goodies for running tests, typesetting output, etc.

See: SageModeComparison, sage-mode, http://bitbucket.org/gvol/sage-mode

Sage-shell-mode

This is another newer mode for Sage inside emacs. It's known as sage-shell-mode and includes extensions for auto-complete, helm, and anything. It was written from scratch by Sho Takemori and is available from MELPA.

See: SageModeComparison, https://github.com/stakemori/sage-shell-mode

EIN: IPython notebook client in Emacs

https://github.com/tkf/emacs-ipython-notebook

This is currently non functional due to an incompatibility with the ipython shipped with Sage. Yet this sounds promising. See:

- https://github.com/tkf/emacs-ipython-notebook/issues/131 - http://trac.sagemath.org/ticket/16053

Miscellaneous

- which-function-mode: this minor mode displays in the status bar the

- I (NT) have this in my python-mode-hook:

See also

- This (not sot recent) blog post on customizing emacs for Python

Emacs (last edited 2014-09-18 16:31:42 by iandrus)