Notebook, HTML, SVG, Javascript, JSON

Display SVG, JSON in a notebook.




with magic commands

Usually, the javascript needs a zone in the page where the output will be inserted. That's what the next cell does.

This cell will populate the zone just above. The rendering is not great when the notebook is converted into RST. Look into the HTML conversion.

with customized objects


Inspired from Pretty JSON Formatting in IPython Notebook. We use the trick described just above. The only addition is the use of an external library renderjson. The code is here :