Welcome to Cadabra Q&A, where you can ask questions and receive answers from other members of the community.
0 votes

I just started using Cadabra software.
I want to know is it possible to call a saved Cadabra notebook into a new one?
If it is possible, can anyone suggest to me how to call it? particularly how to give a pathway in the new one about the saved notebook location?

asked in Feature requests by (140 points)

1 Answer

+1 vote

Cadabra notebooks are treated as normal python modules when importing them into other notebooks. So you can have one notebook one.cnb and then from another one do

import one

just like you would in Python. The standard rules for importing modules hold, in particular that you need to have the one.cnb somewhere in the PYTHONPATH (or sys.path).

For some more details see https://cadabra.science/notebooks/ref_import.html

answered by (61.7k points)