An open API service indexing awesome lists of open source software.

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

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