1 | initial version |
I don't know how to do precisely what you asked, but I often write code in a separate file and attach it to a notebook cell (just write e.g. "attach path/to/filename.sage"). Then the notebook session knows all the functions I've defined in the file.
Hopefully this will work for you,
Niles