First time here? Check out the FAQ!

Ask Your Question
1

Can Notebooks Call Other Notebooks?

asked 14 years ago

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?

Preview: (hide)

Comments

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

ccanonc gravatar imageccanonc ( 14 years ago )

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 ( 14 years ago )

1 Answer

Sort by » oldest newest most voted
2

answered 14 years ago

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"
Preview: (hide)
link

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: 14 years ago

Seen: 452 times

Last updated: Jan 13 '11