Skip to content

omartazi/Multi_nb2pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

███╗   ███╗██╗   ██╗██╗  ████████╗██╗    ███╗   ██╗██████╗ ██████╗ ██████╗ ██████╗ ███████╗
████╗ ████║██║   ██║██║  ╚══██╔══╝██║    ████╗  ██║██╔══██╗╚════██╗██╔══██╗██╔══██╗██╔════╝
██╔████╔██║██║   ██║██║     ██║   ██║    ██╔██╗ ██║██████╔╝ █████╔╝██████╔╝██║  ██║█████╗  
██║╚██╔╝██║██║   ██║██║     ██║   ██║    ██║╚██╗██║██╔══██╗██╔═══╝ ██╔═══╝ ██║  ██║██╔══╝  
██║ ╚═╝ ██║╚██████╔╝███████╗██║   ██║    ██║ ╚████║██████╔╝███████╗██║     ██████╔╝██║     
╚═╝     ╚═╝ ╚═════╝ ╚══════╝╚═╝   ╚═╝    ╚═╝  ╚═══╝╚═════╝ ╚══════╝╚═╝     ╚═════╝ ╚═╝                                                                                                 

Convert Multiple Jupyter Notebooks to PDF

Multiple Jupyter Notebooks to PDF Converter (Multi_nb2pdf)

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.

Features

  • Convert selected Jupyter notebooks to PDF.
  • Option to merge all generated PDFs into a single PDF file.
  • User-friendly selection of notebooks to convert.

Requirements

Installation

  1. Clone the repository and navigate to the directory:

    git clone <repository-url>
    cd <repository-directory>
  2. 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
  3. Ensure MiKTeX is installed and added to your system PATH.

Usage

  1. Place the script multi_nb2pdf.py in the directory/folder containing your Jupyter notebooks, or copy its path.

  2. 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.

    Licence

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

About

Convert Multiple Jupyter Notebooks to PDF

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages