Site Tools


notes:ipynb2pdf

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

notes:ipynb2pdf [2022/04/13 13:50] – created cjjnotes:ipynb2pdf [2025/02/18 16:48] (current) cjj
Line 1: Line 1:
 ======Generate PDF File from Jupyter Notebook====== ======Generate PDF File from Jupyter Notebook======
-You are general asked to submit your homework in a single PDF file. It is recommended that you compose your answers using Jupyter Notebook. This will include all your (commented) code cells and corresponding outputs, as well as other write ups in markdown cells. It is also recommended that you write your mathematical equations using LaTeX syntax which will be rendered typeset-ready in both plot texts and markdowns.+You are generally asked to submit your homework in a single PDF file. It is recommended that you compose your answers in [[https://nbformat.readthedocs.io/en/latest/|Jupyter Notebook format]] (.ipynb) using, e.g., [[https://jupyterlab.readthedocs.io/en/stable/index.html|JupyterLab]]. This will include all your (commented) code cells and corresponding outputs, as well as other write ups in markdown cells. It is also recommended that you write your mathematical equations using LaTeX syntax which will be rendered typeset-ready in both plot texts and markdowns.
  
-To generate PDF file, first enter the "Print Previewby selection the menu item in "File". Then, use the "Print" → "Save to PDF" or "Print to PDF" function of your browser to produce the PDF file.+To generate PDF file out of the .ipynb file, first export the notebook to an HTML file using the "Save and Export Notebook As" menu item in "File". Then, open the .html file in your browser and use the "Print" → "Save to PDF" or "Print to PDF" function of your browser to produce the PDF file.
notes/ipynb2pdf.txt · Last modified: 2025/02/18 16:48 by cjj