Best way to print Jupyter notebook slides? How to put a page break?

I want to print my jupyter notebook and share a hard copy with non-programmers.

What i have done so far:

My question is: How do I put a page break to indicate the content on each pdf page?

As soon as I convert the slides (html) to pdf, the text and the graph are not in the expected place in pdf. I want the graph and the text explaining the graph to be on the same page. Do I need to turn pages in the markdown cell of my Jupyter laptop? Or how to specify content on each pdf page, instead of allowing the browser to resolve

Also, I am trying to convert Jupyter notebok directly to pdf, but I am facing problems: Convert jupyter notebook to pdf: error installing pandoc

+5
source share
1 answer

, , HTML- . , , :

  • HTML . <p style="page-break-after:always;"></p>
  • HTML nbconvert. jupyter nbconvert --to html YourNotebook.ipynb
  • HTML Chrome.
  • , Chrome save as PDF.

, .ipynb nbconvert, PDF, . HTML, html PDF .

0

Source: https://habr.com/ru/post/1650847/


All Articles