m2_import_file
Load a local .m2 file into the active Macaulay2 session and evaluate it, making functions and variables available immediately without a restart. Re-importing updates the definitions.
Instructions
Import a local .m2 file INTO the persistent session.
Reads the file and evaluates its contents in the session, so newly defined or updated functions/variables become available immediately — no session restart needed. This is the M2 equivalent of what Emacs does when you "load" a file into a running kernel. Re-importing re-defines the file's symbols.
Args: path: ABSOLUTE path to the .m2 file to import.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |