Created
November 20, 2018 16:57
-
-
Save Dih5/6e9eb3e405406f0d591165bb5f67449e to your computer and use it in GitHub Desktop.
Download a Kaggle dataset and a kernel, run it locally and export as pdf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
export DATA="username/dataset" | |
export KERNEL="username/kernel-name" | |
kaggle datasets download --unzip -p input $DATA | |
kaggle kernels pull -p kernel $KERNEL | |
jupyter nbconvert --to notebook --execute --allow-errors --inplace kernel/*.ipynb | |
jupyter nbconvert kernel/*.ipynb --to pdf | |
mv kernel/*.pdf . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment