Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Here's how I figured it out on Windows 10 with SageMath 9.1, for any future persons confused by this.

  1. I decided to put my Sage scripts in the folder C:\scripts\sage.

  2. I added this path to Sage's load attach path so Sage knows where to look. I did this in the console with

    sage: load_attach_path('C:\\scripts\\sage')

  3. To load eaxmple.sage from the above directory, I can now simply use

    sage: load('example.sage')