A simple tool to convert Jupyter notebooks to PDF
Project description
JupyterToPDF
JupyterToPDF
is a Python package designed to simplify the process of converting Jupyter notebooks (.ipynb
files) into PDF documents. This tool aims to provide an easy and automated way for users to generate PDFs from their Jupyter notebooks, either saving them in the same directory as the notebook or in a specified output directory.
Features
- Convert Jupyter notebooks to PDF with a single function call.
- Option to specify the output directory for the generated PDF.
- Simple and easy to use, integrating seamlessly with your Jupyter workflow.
Installation
Install JupyterToPDF
using pip:
pip install JupyterToPDF
Dependencies
pdfkit
: Used for the conversion process.wkhtmltopdf
: A command-line tool required bypdfkit
for converting HTML to PDF. Make sure it's installed on your system. It can be downloaded from wkhtmltopdf.org.
Usage
Here's how to use JupyterToPDF
:
from JupyterToPDF import convert_notebook_to_pdf
Convert a notebook to PDF and save in a specific output folder
convert_notebook_to_pdf('path/to/notebook.ipynb', 'path/to/output/folder')
Save the PDF in the same folder as the notebook
convert_notebook_to_pdf('path/to/notebook.ipynb')
License
JupyterToPDF is open-source software licensed under the MIT License.
Author
Nayeem Islam
- LinkedIn: nayeemislam60053
- GitHub: nomannayeem
Contributing
Contributions to JupyterToPDF
are welcome! If you're interested in helping to improve the project, please read the contributing guidelines to get started.
- Ensure your code adheres to the project's standards.
- Include tests for new functionality.
- Document any changes or improvements.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for JupyterToPDF-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e48e7d46fa576178a9dd35d78d56f0286765acf322c7fe89d62b52b72083ae69 |
|
MD5 | 97822e85d16c4daf030b00ed78b0a30f |
|
BLAKE2b-256 | 126d81786beaece136555fe6d76b249ac6fe2ffa7c2f3d1d1b0210c8b21dbca7 |