[IPython-dev] Static View for the Notebook
Wed Aug 8 19:37:32 CDT 2012
On Wed, Aug 8, 2012 at 5:13 PM, Carl Smith <email@example.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
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:
And the static HTML export you will see:
> On 9 August 2012 01:10, MinRK <firstname.lastname@example.org> wrote:
> > This is one of the use cases nbconvert is meant to cover, by the time
> > 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
> > / PDF renders in the same fashion.
> > -MinRK
> > On Wed, Aug 8, 2012 at 5:05 PM, Carl Smith <email@example.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
> >> IPythonfirstname.lastname@example.org
> >> http://mail.scipy.org/mailman/listinfo/ipython-dev
> > _______________________________________________
> > IPython-dev mailing list
> > IPythonemail@example.com
> > http://mail.scipy.org/mailman/listinfo/ipython-dev
> IPython-dev mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev