From aafc6dc2c19bb53f98d8865f63af493dd1395f94 Mon Sep 17 00:00:00 2001 From: James Munroe Date: Tue, 3 Dec 2024 10:15:55 -0500 Subject: [PATCH] combine environment into binder folder --- binder/environment.yml | 27 +++++++++++++++++++++++++++ binder/overrides.json | 7 +++++++ binder/postBuild | 5 +++++ 3 files changed, 39 insertions(+) create mode 100644 binder/environment.yml create mode 100644 binder/overrides.json create mode 100644 binder/postBuild diff --git a/binder/environment.yml b/binder/environment.yml new file mode 100644 index 0000000..c625d8e --- /dev/null +++ b/binder/environment.yml @@ -0,0 +1,27 @@ +name: radar-cookbook-dev +channels: + - conda-forge + - pyviz +dependencies: + - python=3.11 + - jupyterlab + - jupytext + - matplotlib + - cartopy + - jupyter_server + - numpy<2.0 + - xarray + - metpy + - act-atmos>=1.2.0 + - imageio + - arm_pyart + - hvplot + - datashader + - panel + - sphinx-pythia-theme + - s3fs>=2024.3.1 + - pip + - pip: + - fast-barnes-py + - git+https://github.com/vlouf/eth_radar.git + - open-radar-data>=0.1.2 \ No newline at end of file diff --git a/binder/overrides.json b/binder/overrides.json new file mode 100644 index 0000000..218f184 --- /dev/null +++ b/binder/overrides.json @@ -0,0 +1,7 @@ +{ + "@jupyterlab/docmanager-extension:plugin": { + "defaultViewers": { + "markdown": "Jupytext Notebook" + } + } +} diff --git a/binder/postBuild b/binder/postBuild new file mode 100644 index 0000000..587c8e6 --- /dev/null +++ b/binder/postBuild @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +set -eux + +mkdir -p ${NB_PYTHON_PREFIX}/share/jupyter/lab/settings +cp overrides.json ${NB_PYTHON_PREFIX}/share/jupyter/lab/settings