[IPython-dev] Static View for the Notebook

MinRK benjaminrk@gmail....
Wed Aug 8 19:37:32 CDT 2012


On Wed, Aug 8, 2012 at 5:13 PM, Carl Smith <carl.input@gmail.com> wrote:

> Ah, no worries. I was thinking that'd be trickier when using IPython
> as  a web app, but I guess that's a separate issue. How to convert to
> html verses how to download a file through the notebook, which I never
> could get working without running another mini server on the same
> machine.
>

When nbconvert is merged into IPython proper, then handlers will be added
for nbconvert renderers, which should take care of all of that.

The result would be akin to running `!nbconvert -f html <notebook.ipynb>`,
and then visiting files/notebook.html.

In fact, here's a notebook that checks out nbconvert, and renders and
serves an HTML export of itself:

https://gist.github.com/3299958

And the static HTML export you will see:

http://nbviewer.ipython.org/3299958

-MinRK


>
> On 9 August 2012 01:10, MinRK <benjaminrk@gmail.com> wrote:
> > This is one of the use cases nbconvert is meant to cover, by the time
> it's
> > done.
> >
> > The whole print-view, etc. we have now will be discarded in favor of a
> > static HTML render via nbconvert.
> > Once nbconvert is in, then it would be trivial to also provide the
> markdown
> > / PDF renders in the same fashion.
> >
> > -MinRK
> >
> > On Wed, Aug 8, 2012 at 5:05 PM, Carl Smith <carl.input@gmail.com> wrote:
> >>
> >> Hi all
> >>
> >> I was writing a blog post in the Notebook yesterday and wanted to post
> >> a bit of feedback.
> >>
> >> I was writing the English in Markdown cells and writing Python
> >> examples in code cells, as you'd expect. Once I was happy with the
> >> code example, I would indent the whole cell one extra level and
> >> convert it to a markdown cell, so it could be merged into the markdown
> >> cells around it. This was a bit clumsy, but worked ok.
> >>
> >> I was thinking it might be possible to have a way of automating
> >> something like this. Imagine you press a button and every code cell in
> >> the notebook would indent and convert to a markdown cell, then every
> >> cell would be merged into one big markdown super cell and rendered.
> >>
> >> This should be a view, it shouldn't change the notebook content
> >> itself, so users could toggle in and out of the view.
> >>
> >> It'd be really nice if this feature could also display this super cell
> >> as markdown and as plain html, so it could be copied into forums and
> >> web pages easily.
> >>
> >> It was just an idea I thought I'd share. I haven't any code for it or
> >> anything, but wondered if it made sense to others.
> >>
> >> Cheers
> >>
> >> Carl
> >> _______________________________________________
> >> IPython-dev mailing list
> >> IPython-dev@scipy.org
> >> http://mail.scipy.org/mailman/listinfo/ipython-dev
> >
> >
> >
> > _______________________________________________
> > IPython-dev mailing list
> > IPython-dev@scipy.org
> > http://mail.scipy.org/mailman/listinfo/ipython-dev
> >
> _______________________________________________
> IPython-dev mailing list
> IPython-dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20120808/9982f5c4/attachment.html 


More information about the IPython-dev mailing list