From 7dc889f81813956acfc8f09a7f148717cbd37be4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Defferrard?= Date: Wed, 17 Jun 2020 01:41:48 +0200 Subject: [PATCH] binder --- .binder/apt.txt | 2 ++ .binder/postBuild | 15 +++++++++++++++ .binder/runtime.txt | 1 + .binder/start | 3 +++ README.md | 3 +++ 5 files changed, 24 insertions(+) create mode 100644 .binder/apt.txt create mode 100755 .binder/postBuild create mode 100644 .binder/runtime.txt create mode 100755 .binder/start diff --git a/.binder/apt.txt b/.binder/apt.txt new file mode 100644 index 00000000..86203e8e --- /dev/null +++ b/.binder/apt.txt @@ -0,0 +1,2 @@ +graphviz +ffmpeg diff --git a/.binder/postBuild b/.binder/postBuild new file mode 100755 index 00000000..c966d462 --- /dev/null +++ b/.binder/postBuild @@ -0,0 +1,15 @@ +#!/bin/sh + +python3.6 -m venv ./env + +./env/bin/pip install --upgrade pip setuptools wheel +./env/bin/pip install numpy==1.12.1 # workaround resampy's bogus setup.py +./env/bin/pip install -r requirements.txt + +# Shadow the default kernelspec for jupyter to use our environment by default. +./env/bin/python -m ipykernel install --user + +cd data +curl -O https://os.unil.cloud.switch.ch/fma/fma_metadata.zip +unzip fma_metadata.zip +rm fma_metadata.zip diff --git a/.binder/runtime.txt b/.binder/runtime.txt new file mode 100644 index 00000000..71911c0b --- /dev/null +++ b/.binder/runtime.txt @@ -0,0 +1 @@ +python-3.6 diff --git a/.binder/start b/.binder/start new file mode 100755 index 00000000..b42266b9 --- /dev/null +++ b/.binder/start @@ -0,0 +1,3 @@ +#!/bin/sh +export AUDIO_DIR=./data/fma_small/ +exec "$@" diff --git a/README.md b/README.md index 866890bd..f2473afc 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,9 @@ The following notebooks, scripts, and modules have been developed for the datase ## Usage +[![Binder](https://static.mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/mdeff/fma/outputs?urlpath=lab/tree/usage.ipynb) +  Click the binder badge to play with the code and data from your browser without installing anything. + 1. Clone the repository. ```sh git clone https://github.com/mdeff/fma.git