On 14 říj, 06:20, Jason Grout <jason-s...@creativetrax.com> wrote:
> Chris Seberino wrote:
> > How make worksheet run some code at startup?
>
> > e.g. var("a b c d ... z") ?
>
> > Currently my students need to evaluate var("a b c ... z") in every
> > worksheet I give them. It would be nice to hardcode this into
> > worksheets somehow.
>
> Any cell starting with
>
> %auto
>
> will be run when the worksheet is opened up.
This is answer to the question, but I think that the original question
was intended:
how to hardcode this command automatically into all worksheets.
Not sure if the idea to declare all variables automatically is
optimal, but you can use the file
~/.sage/init.sage for this.
Robert Marik
>
> Jason
>
> --
> Jason Grout
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---