Ask Your Question
1

Can Notebooks Call Other Notebooks?

asked 2010-09-22 02:32:53 +0100

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

Comments

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

ccanonc gravatar imageccanonc ( 2010-09-22 23:05:38 +0100 )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-10 03:48:01 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2011-01-13 15:28:47 +0100

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

Stats

Asked: 2010-09-22 02:32:53 +0100

Seen: 442 times

Last updated: Jan 13 '11