binder-examples/data-quilt

Name: data-quilt

Owner: Binder Examples

Description: Install quilt data packages and use them in Binder notebooks

Forked from: quiltdata/data2binder

Created: 2018-01-28 03:22:17.0

Updated: 2018-01-29 22:44:41.0

Pushed: 2018-02-23 05:18:44.0

Homepage: https://quiltdata.com/

Size: 5861

Language: Jupyter Notebook

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Importing data with Quilt

Binder

Pull data into Binder notebooks

This example uses Quilt to inject data packages into a Jupyter notebook.

Data packages are versioned, immutable snapshots of data. Data packages may contain data of any size. Here is an example of data package: uciml/iris.

How to specify data dependencies in your own Binder
  1. Add quilt to requirements.txt

  2. Specify data package dependencies in quilt.yml (docs). For example:

ages:
vgauthier/DynamicPopEstimate   # get the latest version
danWebster/sgRNAs:a972d92      # get a specific hash (short hash)
akarve/sales:tag:latest        # get a specific tag
asah/snli:v:1.0                # get a specific version
  1. Include the following lines at the top of postBuild. (postBuild should be executable: chmod +x postBuild on UNIX, git update-index --chmod=+x postBuild for Windows).
in/bash
t install

Now you can access the package data in your Jupyter notebooks:

1]: from quilt.data.akarve import sales
2]: sales.transactions()
2]: 
  Row ID  Order ID Order Date Order Priority  Order Quantity       Sales  \
       1         3 2010-10-13            Low               6    261.5400   
      49       293 2012-10-01           High              49  10123.0200   
      50       293 2012-10-01           High              27    244.5700   

Developer

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.