We have lecturers who teach Math, Python, R and are jumping between Moodle en Jupyter Notebook to allow students use editors with code evaluate options. I found in Moodle the Sage filter which connects to a SageCell server.
Sage had a Sage Notebook, but is now creating a version (8.1) on top of Jupyter Notebook: http://www.sagemath.org/
If you wish to use the complete functionality of Jupyter (and the new JupyterLab) you stick to that,
but why not have the option to connect to the server and borrow editor boxes you merge in a Moodle book, so you can combine the options from Moodle with such editors?
The Sage plugin asks now for code between the sage tags like [sage]1+2[/sage] and shows only the result.
If you change the plugin in your own moodle (see below) it can also offer Sage in editor mode [sage]...[/sage] and then you can type - in Moodle - code like in the two attachments.
If you wish to create a "Jupyter-like" Moodle book you wish to offer students combinations of text with empty editors and editors already filled with code where students have to press the evaluate button like [sage]example code[/sage]
BUT: when there are symbols in the code like < or > our Moodle/server combination FIRST replaces < with: & l t ;
If you press " evaluate" you get an error, but if you manually put the code symbol back and then press it works fine...
How to overrule this Moodle rewrite action?