Sylvain Thank you for your fast and comprehensive answer.
Re the imperfect behaviour of the 'save notebook with snapshot' function, I posted this issue on GitHub https://github.com/ipython/ipywidgets/issues/754 . I have modified my repo <https://github.com/oscar6echo/BlackScholesWidget> to write the 'Toggle Code Cell' function in 2 ways - 1/ using ipywidgets and 2/ 'manual' javascript. You can see the result in through nbviewer there <http://nbviewer.jupyter.org/github/oscar6echo/BlackScholesWidget/blob/master/demo_blackscholes_widget.ipynb> . As expected the custom widget is frozen into a snapshot and could not work as there is no python kernel running. And the 'manual' javascript is still fully functional as it is pure js embedded in the page. Question: Is it possible to write pure front end custom widgets (storing some state - in my case boolean code_shown) that will still work in nbviewer ? If this is possible, then I believe that such exemple could be in the official examples, as many people try to hide the code cells in the context of blogs or live notebook (from what I have read around), and surely would often use such widget. If not, I think such pure frontend 'half ipywidget' would be very useful to many people. Of course one can do without but a framework is convenient and helps standardize code patterns (Just sharing an opinion). Anyway thx again for this very useful lib ! -- You received this message because you are subscribed to the Google Groups "Project Jupyter" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/347a0c09-1cc0-4ea3-8679-c53e39dab731%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
