You can do that. Use the following very simple steps:
I use: OS: Ubuntu, Anaconda-Jupyter laptop, Python 3
1 Save your notepad in HTML format:
- Launch the Jupyter notebook you want to save in HTML format. First, save the notebook correctly so that the last saved version of your code / notebook is in the HTML file.
Run the following command from the notebook itself:
!jupyter nbconvert --to html your_notebook_name.ipynb
Change: or you can also use !jupyter nbconvert your_notebook_name.ipynb --to html
After execution, it will create an HTML version of your notebook and save it in the current working directory. You will see that one HTML file will be added to the current directory with the name your_notebook_name.html
( your_notebook_name.ipynb → your_notebook_name.html ).
If you want to know how to save it in pdf format, please check my answer to this question: IPython notepad - cannot be exported to pdf
source share