ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 13 Jan 2011 08:28:47 -0600Can Notebooks Call Other Notebooks?http://ask.sagemath.org/question/7655/can-notebooks-call-other-notebooks/Are there inter-notebook communication methods in common usage?
Since currently Cells in a given notebook execute serially upon "Evaluate All", what asyncronous approaches are available?
Has anyone experienced a need for such functionality?Tue, 21 Sep 2010 19:32:53 -0500http://ask.sagemath.org/question/7655/can-notebooks-call-other-notebooks/Comment by mandrake for <p>Are there inter-notebook communication methods in common usage?</p>
<p>Since currently Cells in a given notebook execute serially upon "Evaluate All", what asyncronous approaches are available?</p>
<p>Has anyone experienced a need for such functionality?</p>
http://ask.sagemath.org/question/7655/can-notebooks-call-other-notebooks/?comment=22431#post-id-22431I'm in a position where I'd like to share code between notebooks. In my case I have a lot of regular Python code in a notebook that implements a target tracker, which I would like to be able to reuse in other notebooks.Thu, 09 Dec 2010 20:48:01 -0600http://ask.sagemath.org/question/7655/can-notebooks-call-other-notebooks/?comment=22431#post-id-22431Comment by ccanonc for <p>Are there inter-notebook communication methods in common usage?</p>
<p>Since currently Cells in a given notebook execute serially upon "Evaluate All", what asyncronous approaches are available?</p>
<p>Has anyone experienced a need for such functionality?</p>
http://ask.sagemath.org/question/7655/can-notebooks-call-other-notebooks/?comment=22603#post-id-22603I know there are textbooks being converted to Sage. I'm wondering if/how chapters share code.Wed, 22 Sep 2010 16:05:38 -0500http://ask.sagemath.org/question/7655/can-notebooks-call-other-notebooks/?comment=22603#post-id-22603Answer by Shashank for <p>Are there inter-notebook communication methods in common usage?</p>
<p>Since currently Cells in a given notebook execute serially upon "Evaluate All", what asyncronous approaches are available?</p>
<p>Has anyone experienced a need for such functionality?</p>
http://ask.sagemath.org/question/7655/can-notebooks-call-other-notebooks/?answer=11971#post-id-11971Yes there is a way. At times sage notebooks become too big so I define sage functions and store it in a plain text file with an extention .sage. You can call those functions from another file if you begin the file with
load "/path-to file/filename.sage"Thu, 13 Jan 2011 08:28:47 -0600http://ask.sagemath.org/question/7655/can-notebooks-call-other-notebooks/?answer=11971#post-id-11971