[IPython-User] Pretty rendering of docstrings
Thu Jan 24 12:41:51 CST 2013
I know this is heresy, but the easiest docstring format for us to deal
with is markdown. It would be nearly trivial for us to render that in
the notebook along with embedded latex. reST is horrible for this
type of thing - especially because it requires server side rendering,
which I am not excited about at all.
What about the following:
* By default we just render docstrings as text.
* We establish an informal protocol that allows doctstrings to declare
their own format (html, markdown, etc.).
* We use that information to determine how to render the docstring.
Obviously, people would have to start to write their docstrings in
this way, but it would at least set the stage for what can be done.
Personally, if the notebook became able to handle markdown+latex
docstrings, I would never user reST for any new project.
On Wed, Jan 23, 2013 at 7:03 PM, Gökhan Sever <firstname.lastname@example.org> wrote:
> Is there any plan for IPython notebook to support pretty rendering of
> Take for instance:
> Sphinx puts a nice rendered equation (probably via MathJax), right below:
> "The probability density function for the log-normal distribution is"
> and the layout of documentation is quite neat.
> Sage notebook also renders the equation fine. Can this be supported in
> IPython notebook?
> I am particularly interested in equation rendering, since I am planning to
> insert latex representation of the equations in function docstrings.
> IPython-User mailing list
Brian E. Granger
Cal Poly State University, San Luis Obispo
email@example.com and firstname.lastname@example.org
More information about the IPython-User