I don't fully understand what you want to do, but please have a look at
src/sage/interacts
There, various interacts are defined which can be called by the user. It
works both in SageNB and Jupyter. I guess your package could do
something similar.
If you only care about Jupyter, there are other
I would like to re-use and organize code over multiple "interacts". In
python this is done via modules/packages. Specifically, I request advise
on how to do the following -
1.) define functions and put them in an appropriately named file.
2.) tell the html page that is running an "interact" wh