ASKSAGE: Sage Q&A Forum - Individual question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 21 Jan 2019 08:40:47 -0600Import Functions defined in fileshttps://ask.sagemath.org/question/45124/import-functions-defined-in-files/How to load a file with
- functions?
Is there any documentation on this?
What happens if there are some variables also defined in this file.
Mon, 21 Jan 2019 07:55:12 -0600https://ask.sagemath.org/question/45124/import-functions-defined-in-files/Answer by tmonteil for <p>How to load a file with
- functions?
Is there any documentation on this? </p>
<p>What happens if there are some variables also defined in this file.</p>
https://ask.sagemath.org/question/45124/import-functions-defined-in-files/?answer=45127#post-id-45127Given a `file.sage` file containing Sage code, you can;
- attach it with the `%attach` jupyer magic
%attach file.sage
- load is with the `%load` jupyer magic
%load file.sage
- if you are not using the jupyter notebook, with the `load function`:
load('file.sage')
Mon, 21 Jan 2019 08:40:47 -0600https://ask.sagemath.org/question/45124/import-functions-defined-in-files/?answer=45127#post-id-45127