Jeroen Demeyer
unread,May 25, 2017, 3:40:20 AM5/25/17Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sage-...@googlegroups.com
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 solutions too: in
Jupyter, an "interact" is just an object which can be displayed. You
create such an object with:
def interactive_function(...):
...
w = interact.widget(interactive_function)
After this, w will be the interact object. Just defining it in this way
does not display it.