Ask Your Question

Revision history [back]

Is it possible to define commands perminantly for SageMath?

Hi! Just got started with Sage.

Alot of commands in Sage are quite verbose and long like "numerical_approx" or "cartesian_product". This might make things more accesible, but it does make the workflow quite slow and cluttered IMO. Is it possible to define new commands in Sage that will always be loaded everytime i open the console? Really i'm just trying to create permanent shorthand versions of existing commands.

In a less ideal, but still suitable solution: Is it possible to make a library that you can then load in the console? Then i could just load it everytime i start the console with one line of code.

Kind regards Buster

click to hide/show revision 2
None

Is it possible to define commands perminantly for SageMath?

Hi! Just got started with Sage.

Alot of commands in Sage are quite verbose and long like "numerical_approx" or "cartesian_product". This might make things more accesible, but it does make the workflow quite slow and cluttered IMO. Is it possible to define new commands in Sage that will always be loaded everytime i open the console? Really i'm just trying to create permanent shorthand versions of existing commands.

In a less ideal, but still suitable solution: Is it possible to make a library that you can then load in the console? Then i could just load it everytime i start the console with one line of code.

Kind regards Buster