[IPython-dev] ipython sphinx directive

VáclavŠmilauer eudoxos@arcig...
Sun Dec 13 04:42:33 CST 2009


> > A demo document is included below, which is rendered at
> > http://matplotlib.sourceforge.net/ipymode/_build/html/ipy_demo.html,
> > and the ipython_directive is attached.

Hi, I found your ipython_directive in your previous posts and use it very
successfully for documenting yade (https://www.yade-dem.org/sphinx/).
Thanks a lot!!

Is the current version somewhere around (it is not in ipython bzr branch)?
I would like to send some patches, concerning in particular custom 
in/out prompts [*] (the out prompt doesn't work, as you see in the output,
btw), a way to (dis)allow commands that raise exception (so that sphinx
aborts if there is exception from ipython code where it is not expected)
and, finally, to have the possiblity of "raw" input (without the input
prompt, and just input lines).

[*] I change module-variables from the conf.py to achieve that:
http://bazaar.launchpad.net/%7Eeudoxos/%2Bjunk/ydoc/annotate/head%3A/conf.py#L69

I also thought there should be some way to switch matplotlib figure format
based on output (e.g. png/svg for html, but pdf for latex).

Cheers, Václav



More information about the IPython-dev mailing list