vladris / tinkerer

Python blogging engine
https://vladris.com/tinkerer
Other
305 stars 81 forks source link

Ability to correctly display ipython notebooks in posts #15

Open xguse opened 11 years ago

xguse commented 11 years ago

I know that you can dump notebooks to rst, but that displays poorly.

It WORKS, but it would be better if they actually looked like the output from a notebook.

Example from pelican: http://themodernscientist.com/posts/2013/2013-06-14-visualization_of_nmr_shaped_pulses/

The plug in that does this for pelican is here: https://github.com/jakevdp/pelican-plugins/blob/liquid_tags/liquid_tags/notebook.py

I would love to write this myself and be able to have contributed in a real way to this project but I am in the middle of writing my PhD dissertation and a paper and ad nauseum.

Anyway, that's a request that I would LOVE to see added to tinkerer in case any of you folks have the time and interest.

Gus

sontek commented 10 years ago

+1

vladris commented 10 years ago

I'm not very familiar with iPython. I can try to look into it when I get some time, but contributions are welcomed in the meantime.

Just a note: this looks like it can be fully implemented as an extension to Tinkerer, so it should be either part of tinkerer-contrib or a separate distribution channel, it shouldn't be part of Tinkerer core.

vladris commented 9 years ago

Has anyone tried the official IPython Sphinx plugin? http://ipython.org/ipython-doc/rel-0.13.2/development/ipython_directive.html

As far as I can tell this doesn't cover adding notebooks, just inlining IPython in RST, but I'm curious how close that is to your needs. Again, I'm not an IPython user so I don't know much about it :)