https://github.com/mohamedelashri/jupyter-to-pdf
Convert Jupyter notebook files to PDF
https://github.com/mohamedelashri/jupyter-to-pdf
Last synced: 30 days ago
JSON representation
Convert Jupyter notebook files to PDF
- Host: GitHub
- URL: https://github.com/mohamedelashri/jupyter-to-pdf
- Owner: MohamedElashri
- License: mit
- Created: 2021-10-07T07:09:45.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-08T07:00:42.000Z (almost 4 years ago)
- Last Synced: 2025-02-28T21:13:51.256Z (7 months ago)
- Language: Dockerfile
- Homepage:
- Size: 10.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Jupyter-to-PDF
Convert Jupyter notebook files to PDF## Usage
This is example on how to use this action and using `peter-evans/create-pull-request` to create a pull requests with the converted Markdown files to the repository
Add this to `.github/workflow/action.yml`
```
name: Jupyter to PDF
on:
workflow_dispatch:
push:
paths:
- '**.ipynb'
- '**/**.ipynb'
jobs:
convertmd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Jupyter Notebooks to PDF
uses: MohamedElashri/Jupyter-to-PDF@v1.3
- name: workaround for permission denied problem
run: |
sudo chown -R $USER:$USER .
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: Pull request with the Convreted PDF files
committer: Mohamed Elashri
title: Convert file from .ipynb to .PDF
body: This is an auto-generated PR
branch: PDF
````branch` and `base` can't be the same. `branch` is where the automatic pull requests will be pushed