[IPython-dev] custom mime types in the notebook

Cyrille Rossant cyrille.rossant at gmail.com
Thu Jul 10 08:15:47 EDT 2014


Hi,

Let's say I have a Javascript application that can read files in a
custom JSON format. I want to create an IPython extension where:

* some Python functions may return objects in this format
* the notebook understands this format and uses my JS app to display them
* cell outputs in that format are saved in the JSON notebook, along
with other representations (text, image)

What's the best way to do it? Should I create a custom mime type
"application/myapp", and extend the notebook to use the JS app for
that mime type (if that's even possible)?

Thanks
Cyrille



More information about the IPython-dev mailing list