Skip to content

✨ This repository is your go-to resource for seamlessly transforming Jupyter Notebook (ipynb) 📚 files into portable document format (PDF). 📚 🔀 It provides a simple and convenient way to convert Jupyter Notebook (ipynb) files to PDF format 🤓

License

Notifications You must be signed in to change notification settings

creativepurus/Convert-ipynb-to-PDF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Purushottam Anand 🇮🇳 on GitHub ☕ MY GITHUB PROFILE

WELCOME MESSAGE

📚 Table of Contents

🔰 ABOUT

👨‍💻 STEPS

📖 LICENSE

ABOUT

✨ 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 🚀

STEPS

STEP 1

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/

STEP 2

Now Install Anaconda Navigator from the official website: https://docs.anaconda.com/free/anaconda/install/

STEP 3

Now you need to install nbconvert tool. To install nbconvert, follow the below mentioned steps:

    1. Open the command prompt or terminal
    1. 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.

STEP 4

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.

🔰 NOTE : RESTART your Device 💻 (Laptop or Desktop) after installing nbconvert and pandoc


STEP 5

Now the final tool that you will need is the TeX tool.

  • For converting notebooks to PDF (with --to pdf), nbconvert makes use of LaTeX and the XeTeX 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 different operating systems.

Follow the below links as per your Operating System (OS) to install TeX:

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.

TeX Installer

🔰 So be patient and leave the rest on installer.

🔰 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


STEP 6

Using Anaconda Navigator

After successfully completing all the above mentioned steps, now you are ready to go.

Follow the below instructions carefully to convert your Jupyter Notebook file to PDF file using the Anaconda Navigator :

Step 1 : Open Anaconda Navigator. Then Launch the Jupyter Notebook

Step 1

Step 2 : Upload then Open your Notebook File

Step 2

Step 3 : Go to File > Download as

Step 3

Step 4 : Select PDF via LaTeX (.pdf)

Step 4

Step 5 : Done

Step 5

  • A new blank window will open up now and your conversion will be done in few seconds/minutes (depending upon the system).

☕ So be patient, have a Coffee, and leave the rest. You can also BUY ME A COFFEE here 😊

FEEDBACK & CONTRIBUTIONS

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

❤️ Thank you for visiting my repository, and happy exploring 🤗

LICENSE

  • See LICENSE for more information.

REACH ME

BUY ME A COFFEE

Purushottam Anand's GitHub Sponsors Page

Back to Top

About

✨ This repository is your go-to resource for seamlessly transforming Jupyter Notebook (ipynb) 📚 files into portable document format (PDF). 📚 🔀 It provides a simple and convenient way to convert Jupyter Notebook (ipynb) files to PDF format 🤓

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published