Skip to content

Feature request: easier workflow for PDF slides #9348

Open

Description

@jluttine

As far as I know, the current workflow for exporting slides to PDF is as follows (http://stackoverflow.com/a/34168948/2184571):

jupyter nbconvert --to slides --post serve /path/to/your/notebook.ipynb

Append ?print-pdf to the URL:

http://127.0.0.1:8000/<some-title>.slides.html?print-pdf

Finally, use browser's print dialog to print to a PDF file.

Would it be possible to simplify this? For instance, so that something like this would work:

jupyter nbconvert --to pdfslides /path/to/your/notebook.ipynb

or

jupyter nbconvert --to slides --post pdf /path/to/your/notebook.ipynb

Activity

  1. added this to the not ipython milestone on Mar 23, 2016
  2. takluyver commented on Mar 23, 2016

    @takluyver
    Member

    There are two major options you could chase down:

    1. Use the existing reveal slides and automate the conversion to PDF. I know there are various HTML to PDF tools out there; I don't know how well any of them will handle slides. In a pinch, you could use Selenium to auto-drive a real browser and print to PDF.
    2. Create a Latex template that uses Beamer to create slides.

    If you're feeling adventurous, you could also go looking at ways to create PDFs directly, like reportlab.

  3. jluttine commented on Mar 24, 2016

    @jluttine
    Author

    Thanks a lot for the feedback and great comments, very helpful! (I wish I could move this issue thread as it is to nbconvert issues..)

  4. takluyver commented on Mar 24, 2016

    @takluyver
    Member

    We have an issue migration script somewhere around, but the results aren't that great. We'd love Github to offer a way to move issues to another repo properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions