[IPython-dev] using the notebook for teaching?

Thomas Kluyver takowl@gmail....
Thu Dec 6 11:26:45 CST 2012


On 6 December 2012 16:27, Jason Grout <jason-sage@creativetrax.com> wrote:

> Just as a point of reference, Sage has %html cells.  Anything in
> <sage></sage> tags is evaluated and converted to latex and rendered with
> mathjax.  The whole thing is shipped back to the browser and rendered as
> html there.  So:
>
> %html
> The <b>value</b> is <sage>integrate(x^2,(x,0,1))</sage>.


Thanks, that's a useful reference. It would be quite easy to write a cell
magic that did something similar in IPython. I envisage something a bit
more integrated, so that when the output is shown, the template code is
hidden. It could be used to create more report-like notebooks.

Best wishes,
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20121206/cb088bb7/attachment.html 


More information about the IPython-dev mailing list