Skip to content

Instantly share code, notes, and snippets.

@clemesha
Created May 25, 2009 10:16
Show Gist options
  • Save clemesha/117485 to your computer and use it in GitHub Desktop.
Save clemesha/117485 to your computer and use it in GitHub Desktop.

Notes on implementing @interact

  • First eval with "@interact" creates a "interact cell"

Drag of Slider creates update of the "interact cell", here is the data for ``cell id6``

id 6
input
%__sage_interact__
sage.server.notebook.interact.recompute(6)
newcell       0

decouple pieces

How can @interact be made to have as little dependence as possible on the underlining engine?

  • Use an iframe (could be made into a Widget): Loads and interacts with - How to decide if we are part of a Notebook or just a single Widget? It's really about the output cell
  • Should @interact be its own django app - even with separate db tables? Help decouple or not?

code

  • keep table layout
  • add spinning 'working' img.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment