Skip to content

Commit

Permalink
binder
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeff committed Jun 17, 2020
1 parent e8289b9 commit 7dc889f
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .binder/apt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
graphviz
ffmpeg
15 changes: 15 additions & 0 deletions .binder/postBuild
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions .binder/runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python-3.6
3 changes: 3 additions & 0 deletions .binder/start
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
export AUDIO_DIR=./data/fma_small/
exec "$@"
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7dc889f

Please sign in to comment.