Ask Your Question

Revision history [back]

(partial answer) The reason why you have different behaviors is that interact in jupyter notebook is not the same object as interact in a cell. You can check that

print(type(interact), interact.__module__)

prints

  • <class 'ipywidgets.widgets.interaction._InteractFactory'> ipywidgets.widgets.interaction in Jupyter notebook
  • <class 'function'> interact_sagecell in the SageCell