Ask Your Question

Can Notebooks Call Other Notebooks?

asked 2010-09-21 19:32:53 -0600

ccanonc gravatar image

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?

edit retag flag offensive close merge delete


I know there are textbooks being converted to Sage. I'm wondering if/how chapters share code.

ccanonc gravatar imageccanonc ( 2010-09-22 16:05:38 -0600 )edit

I'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.

mandrake gravatar imagemandrake ( 2010-12-09 20:48:01 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2011-01-13 08:28:47 -0600

Shashank gravatar image

Yes 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"
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2010-09-21 19:32:53 -0600

Seen: 212 times

Last updated: Jan 13 '11