ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 08 Apr 2020 18:51:03 +0200Exporting @interacthttps://ask.sagemath.org/question/50618/exporting-interact/ Is there a simple solution to export trully a `@interact` cell ?Tue, 07 Apr 2020 09:00:29 +0200https://ask.sagemath.org/question/50618/exporting-interact/Comment by tmonteil for <p>Is there a simple solution to export trully a <code>@interact</code> cell ?</p>
https://ask.sagemath.org/question/50618/exporting-interact/?comment=50623#post-id-50623It should be doable, as long as there is not much states in the interact, since, by removing the computational engine, we will have to store each result for each state. So, could you please procide an example of a typical interact you want to export ?Tue, 07 Apr 2020 17:28:26 +0200https://ask.sagemath.org/question/50618/exporting-interact/?comment=50623#post-id-50623Comment by Cyrille for <p>Is there a simple solution to export trully a <code>@interact</code> cell ?</p>
https://ask.sagemath.org/question/50618/exporting-interact/?comment=50635#post-id-50635I will show an exemple very soonWed, 08 Apr 2020 18:51:03 +0200https://ask.sagemath.org/question/50618/exporting-interact/?comment=50635#post-id-50635Answer by tmonteil for <p>Is there a simple solution to export trully a <code>@interact</code> cell ?</p>
https://ask.sagemath.org/question/50618/exporting-interact/?answer=50629#post-id-50629There have been some proof-of-concept, see for example https://jakevdp.github.io/blog/2013/12/05/static-interactive-widgets/
Unfortunately, `StaticInteract` no longer exists, and the feature-request is still open : https://github.com/jupyter-widgets/ipywidgets/issues/1903
In any case, the interact should not have too much states, since all of them have to be pre-computed and exported as an image, so while this should work with sliders and buttons, do not expect an interact where the user can enter her own values.
Tue, 07 Apr 2020 22:49:25 +0200https://ask.sagemath.org/question/50618/exporting-interact/?answer=50629#post-id-50629