Live data from Hacker News

Now Serving: Full-Text Sampler in IPython Notebook Format

miningthesocialweb.com

1–10 of 28 posts

Re: Now Serving: Full-Text Sampler in IPython Notebook Format

#6
post #5

YES! I would also love to see a publishing workflow that could render IPython Notebooks for print on dead trees.

The 1.0.0 version started bundling nbconvert, which does a pretty good job of exporting to html, pdf, latex, etc. Have you tried it out yet?

Re: Now Serving: Full-Text Sampler in IPython Notebook Format

#7
post #5

YES! I would also love to see a publishing workflow that could render IPython Notebooks for print on dead trees.

Sorry, forgot the link. It's what I used to export the interactive ipynb file to html for preview on GitHub, for example: https://rawgithub.com/ptwobrussell/Mining-the-Social-Web-2nd...

Re: Now Serving: Full-Text Sampler in IPython Notebook Format

#8
post #5

YES! I would also love to see a publishing workflow that could render IPython Notebooks for print on dead trees.

The 1.0.0 version started bundling nbconvert, which does a pretty good job of exporting to html, pdf, latex, etc. Have you tried it out yet?

I haven't started meaningfully playing with nbconvert yet, but I think one of the really promising features are the nbconvert templates[1]. From what I gather you can make custom templates with jinja and invoke them on the command line. It would be interesting to create a docbook, msword, specifically formatted pdf templates which would allow IPython Notebooks to flow into existing print publication workflows (if I recall O'Reilly uses docbook, yes?). I haven't been able to find documentation about the nbconvert templates so I'm dragging this out of memory from an email or a tweet I saw once upon a time.

One thing I'm hoping to figure out is a way to transform IPython Notebooks into PDFs that satisfy my university's dissertation formatting guidelines (one inch margins, 12pt times, etc).

[1] https://github.com/ipython/ipython/tree/master/IPython/nbcon...

Re: Now Serving: Full-Text Sampler in IPython Notebook Format

#9
post #8

Earlier quoted context omitted.

The 1.0.0 version started bundling nbconvert, which does a pretty good job of exporting to html, pdf, latex, etc. Have you tried it out yet?

I haven't started meaningfully playing with nbconvert yet, but I think one of the really promising features are the nbconvert templates[1]. From what I gather you can make custom templates with jinja and invoke them on the command line. It would be interesting to create a docbook, msword, specifically formatted pdf templates which would allow IPython Notebooks to flow into existing print publication workflows (if I r…

Wow, you definitely have some great ideas here, and given the enthusiasm about ipynb, I would not be surprised to see these things happen in the next 6-12 months.

O'Reilly does use docbook internally as part of the toolchain, but asciidoc is coming into style as well. I've done most of my work in docbook with a docbook editor, but did some of my latest boook in asciidoc, which was much easier. Just use a standard text editor of choice (like Vim) and get right to it. Much easier for me, anyway.

One thing I'd really like to see is ipynb supporting asciidoc instead of or in addition to markdown. You can go to/from asciidoc and docbook in a lossless way, IIRC.

Re: Now Serving: Full-Text Sampler in IPython Notebook Format

#10
I purchased Mining the Social Web, 2nd Edition (O'Reilly, 2013) a few weeks ago and have been loving the IPython Notebook setup they're using to distribute the code examples. Anyone can clone the following git repo and play around with the code:

https://github.com/ptwobrussell/Mining-the-Social-Web-2nd-Ed...

Post reply on HN