I'm trying to use the above functionality to be able to import a very long expression from a text file. However, it seems to fail and I cannot see what I'm doing wrong.
As a simple example, my Cadabra1.cnb file looks like
#!/usr/local/bin/cadabra2
test := 5;
Now I go to a separate cadabra file and run
from Cadabra1 import *
No error is reported, so it seems to have found the file, but "test" is not recognized as an object.