Skip to main content

A tool to run a Jupyter Notebook from a (partial) Github repository.

Project description

GitMiller

This description can be found on GitHub here

GitMiller is a tool for running Jupyter Notebooks from a (partial) Github repository. It downloads the repository in your temp folder, runs a designated notebook within it, and removes all downloaded files afterwards.

Installation

$ pip install gitmiller

After installation you can use the gitmiller command-line tool to run your github notebooks.

Usage

The command-line interface takes the following input parameters:

parameter description
-u, --username Username to gain access to GitHub repository
-p, --password Password Github repository
-r, --repository URL of GitHub repository (can be a subfolder)
-n, --notebook filename of notebook you wish to execute, this file must exist in the root folder of the (partially) downloaded folder structure.
-o, --output local path where GitMiller will put the executed version of your notebook
-c, --config local path of YAML file in which you can add all mentioned paramaters

GitMiller uses Papermill to run your remote notebook. Besides executing, Papermill also enables you to parameterize notebooks. If you would like to override certain variables in your notebook, add the variables and values in the config YAML file under the papermill key. See example below.

This repository contains a folder example in which a notebook test.ipynb exists. If you would like to run this notebook with GitMiller, use either:

$ gitmiller -u <GITHUB USERNAME> -p <GITHUB PASSWORD>, -r https://github.com/UtrechtUniversity/GitMiller/tree/master/example, -n test.ipynb, -o <LOCAL OUTPUT-PATH>

or create the following YAML file:

repository: https://github.com/UtrechtUniversity/GitMiller/tree/master/example
username: <GITHUB USERNAME>
password: <GITHUB PASSWORD>
notebook: test.ipynb
output: <LOCAL OUTPUT-PATH>

papermill:
  a: 10
  b: 60

and run with:

$ gitmiller -c <PATH TO YAML-FILE>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gitmiller-0.1.2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gitmiller-0.1.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file gitmiller-0.1.2.tar.gz.

File metadata

  • Download URL: gitmiller-0.1.2.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.3

File hashes

Hashes for gitmiller-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1e4bd205f6556a6928e576f379fb3786a1ef3ab17e0c4ba3512b06fdd8e30031
MD5 87f122adc68daf0d67bfb8c7f4638eac
BLAKE2b-256 47024cbf58d339b251fbaccfd177f13fdc784358fba1d66f1be045f63da81188

See more details on using hashes here.

File details

Details for the file gitmiller-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: gitmiller-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.3

File hashes

Hashes for gitmiller-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 97882fe56a87f30ff3d3524ea0fb1cbd4258269ee2624849dca795ee9bdb1c4e
MD5 2995c1326c88279eadb16c1a6236f791
BLAKE2b-256 26c24d9417eb0b41a5268392d5331abed798599d7ae50c26354df43fba580332

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page