███╗ ███╗██╗ ██╗██╗ ████████╗██╗ ███╗ ██╗██████╗ ██████╗ ██████╗ ██████╗ ███████╗
████╗ ████║██║ ██║██║ ╚══██╔══╝██║ ████╗ ██║██╔══██╗╚════██╗██╔══██╗██╔══██╗██╔════╝
██╔████╔██║██║ ██║██║ ██║ ██║ ██╔██╗ ██║██████╔╝ █████╔╝██████╔╝██║ ██║█████╗
██║╚██╔╝██║██║ ██║██║ ██║ ██║ ██║╚██╗██║██╔══██╗██╔═══╝ ██╔═══╝ ██║ ██║██╔══╝
██║ ╚═╝ ██║╚██████╔╝███████╗██║ ██║ ██║ ╚████║██████╔╝███████╗██║ ██████╔╝██║
╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝ ╚═╝ ╚═══╝╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝
Convert Multiple Jupyter Notebooks to PDF
This repository contains a Python script to convert multiple Jupyter notebooks (.ipynb
files) to PDF format simultaneously. The script allows the user to select specific notebooks or ranges of notebooks to convert, and provides an option to merge all generated PDFs into a single PDF file.
- Convert selected Jupyter notebooks to PDF.
- Option to merge all generated PDFs into a single PDF file.
- User-friendly selection of notebooks to convert.
-
Clone the repository and navigate to the directory:
git clone <repository-url> cd <repository-directory>
-
Set up your Python environment and install dependencies:
Using
venv
:python -m venv env source env/bin/activate # On Windows use `env\Scripts\activate` pip install -r requirements.txt
Using
conda
:conda create --name multi_nb2pdf_env python=3.x conda activate multi_nb2pdf_env pip install -r requirements.txt
-
Ensure MiKTeX is installed and added to your system PATH.
-
Place the script
multi_nb2pdf.py
in the directory/folder containing your Jupyter notebooks, or copy its path. -
Run the script:
python multi_nb2pdf.py
You will be prompted to select the notebooks you want to convert and whether you want to merge the generated PDFs into a single file.
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.