🔰 ABOUT
👨💻 STEPS
📖 LICENSE
📲 REACH ME
✨ This repository provides a simple and convenient way to convert Jupyter Notebook (ipynb) files to PDF format 🤓
✨ By following the instructions properly which are mentioned below, you can easily convert any Jupyter Notebook (.ipynb) file to PDF file 🚀
To get started, at first you'll need to have Python
installed on your computer. You can download the latest version of Python from the official website: https://www.python.org/downloads/
Now Install Anaconda Navigator
from the official website: https://docs.anaconda.com/free/anaconda/install/
-
- Open the
command prompt
or terminal
- Open the
-
- Run the following command to install nbconvert using pip:
pip install nbconvert
- This command will download and install the nbconvert package and its dependencies. Wait for the installation to complete. You should see the progress in the command prompt or terminal.
Now you need to install Pandoc
in addition to nbconvert if you want to convert .ipynb files to PDF format. Pandoc is a separate tool that nbconvert relies on for the conversion process.
-
To install Pandoc, follow the below mentioned steps:
-
Visit the Official Pandoc website at: https://pandoc.org/installing.html and download the appropriate installer for your operating system.
-
Run the installer and follow the on-screen instructions to install
Pandoc
-
After the installation is complete, you can verify the installation by running the following command in the command prompt or terminal:
pandoc --version
- If the installation was successful, you should see the version information for Pandoc.
-
For converting notebooks to PDF (with --to pdf), nbconvert makes use of
LaTeX
and theXeTeX
as the rendering engine. -
To install a complete TeX environment (including XeLaTeX and the necessary supporting packages) by hand can be tricky. Fortunately, there are packages that make this much easier.
-
Because nbconvert depends on packages and fonts included in standard
TeX distributions
, if you do not have a complete installation, you may not be able to use nbconvert’s standard tooling to convert notebooks to PDF. These packages are specific to differentoperating systems
.
Alternatively, you can also visit the Official website of TeX Live here: https://tug.org/texlive/
🔰 NOTE : TeXlive is a large distribution, and installing it might consume a significant amount of disk space. It has over 4000+ files. It might take 1-2 hours (depending upon the system) for TeX Live to install in your device.
🔰 Once you have nbconvert
, Pandoc
and TeX
installed, you should be able to convert Jupyter Notebook (.ipynb) files to PDF
👉🏻 Now you can easily convert your Jupyter Notebook
file to PDF
file without any error using the Anaconda Navigator
which you have installed in Step No. 2
Follow the below instructions carefully to convert your Jupyter Notebook
file to PDF
file using the Anaconda Navigator
:
- A new blank window will open up now and your conversion will be done in few seconds/minutes (depending upon the system).
If you have any suggestions for improving the code or adding new notebooks, feel free to submit a pull request. We welcome contributions from the community.
- Fork the project
- Create a new branch (git checkout -b feature/awesome-feature)
- Make your changes and commit them (git commit -am 'Add an awesome feature')
- Push to the branch (git push origin feature/awesome-feature)
- Create a pull request
My "Convert ipynb to PDF" repository is licensed under the Standard MIT License License.
- See LICENSE for more information.