Some of my classes might ask you to submit a Juptyter notebook as a PDF. This page describes how you can do this.
- Jupyter NBConvert (recommended)
Jupyter nbconvert
is a command line tool that converts jupyter notebooks to a variety of formats. See this stackoverflow response for how to use this tool to generate a PDF.
This solution has the greatest learning curve but is also the most flexible and powerful.
https://stackoverflow.com/questions/15998491/how-to-convert-ipython-notebooks-to-pdf-and-html
Be sure that you have properly configured jupyter nbcovert to generate any outputs required for the assignment. This may include markdown, images, the results of print statements, or any other deliverables asked of you in the assignment. Double-check your PDF before submitting!
- Save to PDF from the browser (also ok)
Open the jupyter notebook in your browser, and use the browser’s Save as PDF or Print to PDF utility. This is the recommended solution if you are short on time.
- Online converter services (not recommended; I make no guarantees about the safety or quality of these services, but they exist)