ipython: Can't get PDF version of reveal.js slides using ?print-pdf

I’m trying to print a PDF version of my slides at http://bit.ly/pyconca-pandas using IPython 1.0.0

When I run ipython nbconvert --to slides --post serve and add ?print-pdf to the end of the URL and try to print, the result looks like this: http://imgur.com/Vzbjixj (1 page, two slides on the same page)

I’ve looked at #3634, but that doesn’t seem to be the problem (the print stylesheet is being included correctly)

About this issue

  • Original URL
  • State: closed
  • Created 11 years ago
  • Comments: 33 (26 by maintainers)

Most upvoted comments

I have to write a blog post of how to do it 😉 sorry for the delay, I will do it this week.

To make it short, in the directory where the slides lives:

  1. Add this custom.css file: https://gist.github.com/damianavila/6211198
  2. Run this little snippet: https://gist.github.com/damianavila/6211211
  3. Run python -m SimpleHTTPServer 8001
  4. Open Mozilla Firefox browser and point to localhost:8001
  5. Add ?print.pdf to the end of the url (ie, http://127.0.0.1:8001/jevans.slides.html?print-pdf)
  6. Print to pdf, use Landscape orientation

And you will get this one (check jevans.pdf from this repo: https://github.com/damianavila/Miscellaneus).

Hope it helps.

Damián.