Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to re-use value from interact?

I have 3 subsequent SageMath code cells C1, C2, C3 in a Jupyter notebook.

  1. C1 sets a value a=1
  2. C2 has an interact widget (say a slider for a1) using the value of a as default
  3. C3 should assign the current value of a1 to a and proceed.

What do I have to write in C3 to access the current value of a1 in C2?