Dominic has figured out how to do this with the standard Python import functionality. I have just pushed some experimental code to github which does this. With this you can import notebooks into other notebooks. For example, if you have a library.cnb
notebook containing a cell
library.cnb
:
{m, n}::Indices;
ex:=A_{m n};
you can import this expression and the property declaration into another notebook doing
from library import *
This will auto-convert your library.cnb
into a library.py
file which is then imported.
As I said: experimental. Any feedback welcome.