Ask Your Question

Revision history [back]

I think this is helpful (see William Stein's response):!msg/sage-cloud/CjnZ2fAT2go/YD2EXUgcSZUJ

Ways to run Macaulay2 in SageMathCloud:

  1. Create a Sage worksheet and at the top of each cell type "%macaualay2" (see attached screenshot).

  2. Create a Sage worksheet and at the very top type "%default_mode macaulay2" (see attached screenshot).

  3. a. Start a Terminal ("+New--> Terminal") and type M2. Then type "setupEmacs()". Then exit M2.

    b. Start emacs (by typing "emacs" in the terminal) and type "M-x M2" to start Macaulay2 mode. (Here M-x might be "escape" then x... but I assume you know emacs.)

    Note: when using emacs in a terminal, you may need to use Firefox instead of Chrome (or use the SMC app from the Chrome web store), since with Chrome browser several common emacs shortcuts will close the browser window. This mainly impacts non-OS X operating systems.

    -- William