init.sage

33 views
Skip to first unread message

Rogerio

unread,
Sep 7, 2022, 6:15:43 PM9/7/22
to sage-support
I have some frequently used small codes in the init.sage file. However, the file is not loaded when I start a session with jupyter or jupyterlab. To do it I have to use  `load(sage.env.SAGE_STARTUP_FILE)`.

How can I get init.sage automatically loaded when I start a session with jupyterlab?

OS: Linux/Debian 11

Thanks

Rogerio

William Stein

unread,
Sep 8, 2022, 12:34:46 AM9/8/22
to sage-s...@googlegroups.com
This seems relevant:

https://stackoverflow.com/questions/45818538/where-can-i-put-a-startup-script-in-jupyter
> --
> You received this message because you are subscribed to the Google Groups "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/6989eeb7-36d4-4c15-951f-018d3c248792n%40googlegroups.com.



--
William (http://wstein.org)

Rogerio

unread,
Sep 8, 2022, 4:23:03 AM9/8/22
to sage-support
Solved :)
Thank you!

Reply all
Reply to author
Forward
0 new messages