Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Add florence gcp #31

Closed
wants to merge 189 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
189 commits
Select commit Hold shift + click to select a range
6f05eb3
jupyter notebook for reading NWPSAF AAPP MAIA Cloud product
roquetp Sep 15, 2017
11d239c
Add modus true color example
adybbroe Sep 18, 2017
0b069e2
Sentinel-1 false color composite
mitkin Sep 20, 2017
6c295a0
Add viirs example with satoy and pysepctral (rayleigh correction)
adybbroe Sep 21, 2017
be9aaab
Refactored accessing two polarizations from a single scene object
mitkin Sep 21, 2017
2083318
Merge branch 'master' into master
mitkin Sep 21, 2017
84665e2
retrieve the datasets in a more explicit way
mitkin Sep 25, 2017
c0c3f5e
Merge branch 'master' of https://github.com/mitkin/pytroll-examples
mitkin Sep 25, 2017
f9cbcc9
Merge pull request #1 from mitkin/master
mraspaud Sep 25, 2017
4f97bbf
Add atm correction example with pyspectral
adybbroe Sep 26, 2017
e1765e0
Merge branch 'master' of github.com:pytroll/pytroll-examples
adybbroe Sep 26, 2017
4626742
Add basic viirs ratio sharpened true color example
adybbroe Sep 27, 2017
3dd4e89
Bugfix: Correct how aerosol type is specified
adybbroe Oct 1, 2017
9ca5139
Add the hrit msg tutorial
mraspaud Oct 2, 2017
ac15547
Add GOES-16 mosaic example
mraspaud Oct 11, 2017
f14d024
Add Himawari-8 AHI true color example
adybbroe Oct 13, 2017
2594235
Merge branch 'master' of github.com:pytroll/pytroll-examples
adybbroe Oct 13, 2017
04c1d80
Adding True color VIIRS case for article
adybbroe Oct 25, 2017
d3e9655
Simplify the satpy-viirs-smoke example
adybbroe Oct 25, 2017
480ec59
Use double quotes for image source
adybbroe Nov 3, 2017
4e2b04b
Reduce area, add orange coast lines
adybbroe Nov 7, 2017
7b72d47
Bugfix mark down
adybbroe Nov 7, 2017
c6012c2
Add gac example
mraspaud Nov 17, 2017
06b089a
Use glob and key word argument filenames to specify the input files
adybbroe Nov 17, 2017
b81600e
Merge branch 'master' of github.com:pytroll/pytroll-examples
adybbroe Nov 17, 2017
27d9eb4
Reduce GAC example
mraspaud Nov 17, 2017
6c77d44
Spelling correction
adybbroe Nov 17, 2017
f2c9408
Merge branch 'master' of github.com:pytroll/pytroll-examples
adybbroe Nov 17, 2017
02a7106
Add olci example
mraspaud Nov 22, 2017
155b642
Updated AHI example removing base_dir, and using on the fly definitio…
adybbroe Dec 13, 2017
d878572
Merge branch 'master' of github.com:pytroll/pytroll-examples
adybbroe Dec 13, 2017
28a7671
Bugfix ahi example, and run with latest version where we
adybbroe Dec 14, 2017
47dee44
Add olci examples
adybbroe Dec 19, 2017
dde550c
Replace full scale images with thumbnails
adybbroe Dec 19, 2017
bc70888
Add quicklook image of raw true color
adybbroe Dec 19, 2017
9b47355
Add snow-rgb example using satpy and pyspectral
adybbroe Jan 2, 2018
687cd8c
File discovery is moved outside satpy. Use of base_dir is deprecated
adybbroe Jan 2, 2018
1bd2236
Merge branch 'truecolor_examples'
adybbroe Feb 1, 2018
17b0d2d
Fix OLCI example to use find_files_and_readers
mraspaud Feb 19, 2018
376a296
Improved viirs sdr true color example
adybbroe Feb 28, 2018
1723ff6
Remove old true color example image
adybbroe Feb 28, 2018
488b860
Merge branch 'master' of github.com:pytroll/pytroll-examples
adybbroe Feb 28, 2018
b57ac59
Add ears-nwc example
adybbroe Mar 19, 2018
0796643
Add ears-nwc notebook
adybbroe Mar 19, 2018
8755e09
Use find_files_and_readers function to find the hrit files before mak…
adybbroe May 3, 2018
147f7e8
Try to fix images showing in ears-nwc
mraspaud May 4, 2018
bd06890
fix ears-nwc images
mraspaud May 4, 2018
2a8e002
Remove redundant import
adybbroe May 4, 2018
4e896ef
Merge branch 'master' of github.com:pytroll/pytroll-examples
adybbroe May 4, 2018
7f9a3d5
Fix links to image files under git-lfs, for pyspectral examples
adybbroe May 4, 2018
dd4171a
Use PaletteCompositor in maia example, and simplify slightly
adybbroe May 9, 2018
321c1cc
Add Sentinel 2 example
mraspaud May 24, 2018
cbfddcb
Update AHI example
mraspaud May 31, 2018
a1641e9
Add some titles and documentation text in the ahi example.
mraspaud Jun 1, 2018
465ceb6
Add satpy cartopy example
djhoese Jun 15, 2018
96ccdae
Merge pull request #2 from pytroll/example-cartopy
djhoese Jun 15, 2018
b2daec4
Fix broken link on gallery pages: Add full path to git-lfs file
adybbroe Jun 28, 2018
66db439
Fix modis image link
mraspaud Jun 28, 2018
fc05ea9
Update example to latest version of SatPy.
adybbroe Jun 29, 2018
380bfc4
Merge branch 'master' of github.com:pytroll/pytroll-examples
adybbroe Jun 29, 2018
6617825
Add new viirs i-band enhanced true color example image
adybbroe Jun 29, 2018
30b91c1
Update viirs i-band enhanced true color example
adybbroe Jun 29, 2018
d37a214
Updte example with list of package dependencies
adybbroe Jun 29, 2018
19aae50
Update MODIS true color example
adybbroe Jun 29, 2018
fa8dc2a
Fix filtering of scene by time
adybbroe Jun 29, 2018
fb738f4
Add list of package dependencies
adybbroe Jun 29, 2018
ee05b33
Checked MAIA example and added package versions
adybbroe Jun 29, 2018
8db604d
Fix satpy and modis examples
adybbroe Jun 29, 2018
797ef47
Add S2 MSI RGB image to example
adybbroe Jun 29, 2018
2b29758
Remove redundant imports
adybbroe Jun 29, 2018
87e3e37
Add note on loading Himawari hrit formatted data
adybbroe Jun 29, 2018
44433ef
Add initial scipy 2018 presentation slides
djhoese Jul 2, 2018
a404c64
Fix git lfs links to ct images
djhoese Jul 2, 2018
dee22eb
Add 'fun stuff' section to scipy presentation
djhoese Jul 2, 2018
5cd9590
Trim down scipy presentation to save time
djhoese Jul 3, 2018
ad36b00
Trim down the presentation more (focus on easy of satpy)
djhoese Jul 3, 2018
ff1167b
Trim available_X examples from scipy presentation
djhoese Jul 4, 2018
96b4245
Add more outline information to the slides
djhoese Jul 7, 2018
d721189
Add do stuff diagram
djhoese Jul 10, 2018
dd87cca
Add remap image to scipy presentation
djhoese Jul 10, 2018
e5c45eb
Add comments and resampling to OLCI example
mraspaud Aug 29, 2018
ff72616
Add olcitc.jpg as git lfs file
djhoese Sep 5, 2018
16917eb
Merge branch 'master' into scipy_2018
djhoese Sep 5, 2018
f5ebb9e
Merge pull request #4 from pytroll/scipy_2018
djhoese Sep 5, 2018
0f67b41
Add ABI true color florence example
djhoese Sep 11, 2018
8ed7f5e
Update URLs in florence example
djhoese Sep 11, 2018
6f11973
Update dependencies on florence example
djhoese Sep 11, 2018
d1a9e10
Add pyspectral dependency
djhoese Sep 11, 2018
ad4fc92
Add satpy metpy siphon example with hurricane florence
djhoese Sep 14, 2018
9f22934
Fix link to florence image
djhoese Sep 14, 2018
28455eb
Try making the image smaller in siphon notebook
djhoese Sep 14, 2018
62daf78
Make florence image half the size
djhoese Sep 14, 2018
72c833b
Add goes_nc introduction
sfinkens Sep 21, 2018
589b462
Update goes_nc_introduction.ipynb
sfinkens Sep 21, 2018
00422d3
Update goes_nc_introduction.ipynb
sfinkens Sep 25, 2018
3b7b3c1
add hrit jma example
mraspaud Sep 28, 2018
ef9b12a
Update goes_nc introduction
sfinkens Sep 28, 2018
d0da88b
Rename goes_nc -> nc_goes
sfinkens Sep 28, 2018
a3ab2aa
Fix typo
sfinkens Oct 1, 2018
347d299
Add (empty) exercise notebooks
mraspaud Oct 4, 2018
e2c5af0
Adding text to tutorial 1
mraspaud Oct 4, 2018
3fc7b2a
Add material to tutorial 2
mraspaud Oct 4, 2018
739351c
Complete tutorials 1 and 2
mraspaud Oct 4, 2018
a577da6
Mention a couple of method to help in tutorial 1
mraspaud Oct 4, 2018
791d40c
Write tutorial 10
mraspaud Oct 5, 2018
92c2349
Work on tutorial 4
mraspaud Oct 5, 2018
c6473c3
Add installation instructions.
sjoro Oct 5, 2018
10f7b99
Added tutorial 6
mraspaud Oct 5, 2018
8b1f066
First draft of custom reader tutorial
mraspaud Oct 5, 2018
76312ad
Work of custom reader
mraspaud Oct 8, 2018
feaf53c
Initial draft of MSG animation exercise
Oct 8, 2018
5ea722a
Merge branch 'training_exercises' of https://github.com/pytroll/pytro…
Oct 8, 2018
f3ac0ca
Add Exercise 9-draft.
sjoro Oct 8, 2018
b89a307
Add Exercise 9
sjoro Oct 9, 2018
ff39026
updated to include test data path and some additional examples
Oct 9, 2018
03e73d0
Merge branch 'training_exercises' of https://github.com/pytroll/pytro…
Oct 9, 2018
305dc5a
Update Exercises 0, 2, 7.
sjoro Oct 9, 2018
ae38ec2
Misc fixes
mraspaud Oct 9, 2018
8cc9e96
Add exercise 3
mraspaud Oct 10, 2018
b96a5bd
Update installation instructions.
sjoro Oct 10, 2018
d2d3f2c
Merge pull request #5 from sfinkens/feature-goes-nc
mraspaud Dec 3, 2018
1f06712
Add MTSAT HRIT introduction
sfinkens Dec 3, 2018
97797c1
Rename hrit_jma -> hrit_ahi in Himawari-8 examples
sfinkens Dec 3, 2018
3966fb4
Mention reader names explicitly
sfinkens Dec 3, 2018
d7fc51c
Rename MTSAT reader names according to #527
sfinkens Dec 3, 2018
b92a190
Minor text improvements and cosmetics
sfinkens Jan 7, 2019
2d70187
Compress notebook and reduce image size
sfinkens Jan 7, 2019
9bfa216
Compress GOES intro and reduce image size
sfinkens Jan 7, 2019
3dfe97c
Remove old png mosaic
sfinkens Jan 7, 2019
ad9bdac
Update AHI HRIT reader names
sfinkens Jan 7, 2019
bfb0f73
Fix mosaic offset
sfinkens Jan 7, 2019
4ffbdf4
Merge pull request #8 from sfinkens/feature-mtsat
mraspaud Jan 7, 2019
9aeb1d7
Add satpy geoviews example notebook
BENR0 Jan 7, 2019
4578eb7
Fix area variable name
BENR0 Jan 7, 2019
dc8acc4
Clean up geoviews example notebook
BENR0 Feb 3, 2019
c4006c3
Merge pull request #6 from pytroll/training_exercises
djhoese Feb 3, 2019
c3e5c20
Merge pull request #9 from BENR0/master
djhoese Feb 3, 2019
d6ca914
Add pangeo binder configuration
djhoese Feb 15, 2019
cd03fc0
Update binder environment to include fuse and other GCS utils
djhoese Feb 15, 2019
2b69152
Remove fuse mounting of abi data for debugging
djhoese Feb 15, 2019
5e3bbd8
Remove fuse from binder environment
djhoese Feb 16, 2019
d423d5c
Fix git lfs images
djhoese Mar 3, 2019
57aaaa7
Add gsutil installation to binder configs
djhoese Mar 3, 2019
59813f1
Add more explicit google cloud sdk installation usage to binder configs
djhoese Mar 4, 2019
ccb701d
Remove gcloud command from postBuild for binder configs
djhoese Mar 4, 2019
ada0f0c
Modify exercises to use new reader names. Update installation instruc…
sjoro Mar 26, 2019
6bfa437
Update installation instructions.
sjoro Mar 26, 2019
b2ae11b
Unify exercise naming. Update installation instructions.
sjoro Mar 26, 2019
4ae45b8
Unify exercise naming. Update installation instructions.
sjoro Mar 26, 2019
aced934
Update installation instructions. Comment out netCDF saving in ex2.
sjoro Mar 27, 2019
ff9fec3
Fix exercise 3
mraspaud Mar 27, 2019
d382603
Move eum exercises to pytroll-exercises-two-day directory
djhoese May 21, 2019
54e0423
Change update reader names for seviri and modis
BENR0 Jun 11, 2019
62269be
Merge pull request #15 from BENR0/master
djhoese Jun 11, 2019
9266172
Merge pull request #14 from pytroll/eum-2019-03
djhoese Jun 11, 2019
ccc0635
Add half day satpy tutorial
djhoese Jul 26, 2019
e0ecdce
Update ABI mosaic example to call montage from the notebook
djhoese Jul 29, 2019
6139542
Change montage_abi.jpg to use git LFS
djhoese Jul 29, 2019
19d41d5
Merge pull request #16 from djhoese/update-abi-mosaic
djhoese Jul 30, 2019
ae77a38
Add baseline for resampling examples
pnuu Nov 6, 2019
17047bf
Separate pyresample and satpy resampling examples, add explanations
pnuu Nov 7, 2019
d682b9c
Fix bucket_fraction image orientation
pnuu Nov 7, 2019
496764f
Remove unused import
pnuu Nov 7, 2019
c349046
Update AVHRR example
sfinkens Nov 26, 2019
71c3a9b
Add link to pygac TLEs on github
sfinkens Nov 27, 2019
fab5f85
Fix the filename
pnuu Jan 30, 2020
570aef1
Use xarray plot accessor to show the images, where applicable
pnuu Jan 30, 2020
355f8d7
Add FY4A agri tutorial
zxdawn Feb 5, 2020
c021b4f
Move to figures folder
zxdawn Feb 6, 2020
0027f12
Add FY4A agri tutorial in English
zxdawn Feb 6, 2020
41d0835
Add FY4A agri tutorial in Chinese
zxdawn Feb 6, 2020
1c5278f
Remove useless packages and add FAQ link
zxdawn Feb 6, 2020
637d63a
Fix typo
zxdawn Feb 6, 2020
e0f78d5
Merge pull request #22 from zxdawn/add_fy4a
mraspaud Feb 10, 2020
f0e3860
Merge pull request #20 from sfinkens/feature-update-avhrr-example
mraspaud Feb 10, 2020
5305bf7
Merge pull request #19 from pnuu/feature-resampling
mraspaud Feb 10, 2020
24d7a1d
Add notebook for the NWCSAF User workshop 2020
Mar 10, 2020
1cbac1c
Add reference image from Zenodo
Mar 10, 2020
bea5c6c
Add more examples with PPS Cloud products
Mar 10, 2020
9cf92bb
Restructure and add more examples including Geo products
Mar 11, 2020
03feb5a
Further improvements and fixes, partly taking onboard input from revi…
Mar 11, 2020
f87abd3
Merge pull request #24 from adybbroe/nwcsaf-workshop-2020
adybbroe Mar 11, 2020
3e1776a
Fix name of msi_safe reader in Sentinel 2 example
djhoese Mar 25, 2020
0652120
Merge pull request #27 from pytroll/bugfix-msi-safe
mraspaud Mar 25, 2020
e9a1aae
Fix deprecated use of combine_attrs for combine_metadata
djhoese Mar 27, 2020
832949e
Merge pull request #28 from pytroll/bugfix-combine-metadata
pnuu Mar 27, 2020
696a7b2
attempt at fix
Aug 8, 2020
4a72d6f
use stable satpy
Aug 8, 2020
7a9db4f
add debugger
Aug 8, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .dask/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
distributed:
logging:
bokeh: critical

dashboard:
link: /user/{JUPYTERHUB_USER}/proxy/{port}/status

admin:
tick:
limit: 5s

kubernetes:
worker-name: dask-{JUPYTERHUB_USER}-{uuid}
worker-template:
metadata:
spec:
restartPolicy: Never
containers:
- args:
- dask-worker
- --nthreads
- '2'
- --no-bokeh
- --memory-limit
- 7GB
- --death-timeout
- '60'
image: ${JUPYTER_IMAGE_SPEC}
name: dask-worker
resources:
limits:
cpu: "1.75"
memory: 7G
requests:
cpu: "1.75"
memory: 7G
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.png filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
*.tif filter=lfs diff=lfs merge=lfs -text
*.mp4 filter=lfs diff=lfs merge=lfs -text
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
Expand Down
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "tutorial-satpy-half-day"]
path = tutorial-satpy-half-day
url = [email protected]:pytroll/tutorial-satpy-half-day.git
branch = master
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
# pytroll-examples
Collection of examples for pytroll satellite data processing

Pytroll examples showcase various features in Pytroll packages like satpy, pyresample, and pyspectral. These packages are typically used for processing earth-observing satellite data.

## Interactive Examples

These examples can be run from a live Binder/JupyterHub environment.
Try these notebooks on binder.pangeo.io: [![Binder Link][1]](http://binder.pangeo.io/v2/gh/pytroll/pytroll-examples/master)

See http://pangeo.io for more information.

## Data Access

Some examples depend on input data that is not publicly available or has not been compiled in to a single download source. This is being slowly fixed as solutions are discovered for easily accessing those instruments' data over the internet.

[1]: http://binder.pangeo.io/badge.svg

23 changes: 23 additions & 0 deletions Welcome.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Welcome To Pangeo Binder
========================

<img src="https://pangeo.io/_images/small_e_logo_cropped.png" width="30%" align="right">

This is a live session from which you can run scalable notebooks on the cloud.

A file browser listing example notebooks is available to the left.

Dask dashboard plots are available to the right.
These will activate when you launch a Dask cluster and start doing work.
(these cells are already written for you).

To get started, double click on one of the notebooks to the left,
and start running through the Jupyter notebook cells.


Where is this running?
----------------------

This session is running on [binder.pangeo.io](https://binder.pangeo.io),
a service designed and maintained by the [Pangeo community](https://pangeo.io) for scalable earth science.
It is running on Google Cloud Platform using credits generously donated by Google to that Community.
1 change: 1 addition & 0 deletions binder/apt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
graphviz
50 changes: 50 additions & 0 deletions binder/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: pangeo
channels:
- conda-forge
dependencies:
- python=3.6
- xarray
- dask
- distributed
- dask-kubernetes
- gcsfs
- intake::intake-xarray
- zarr
- matplotlib
- numcodecs
- python-blosc
- lz4
- nomkl
- nbserverproxy
- jupyter
- jupyterlab=0.35
- jupyterlab_launcher
- jupyter_client
- ipywidgets
- graphviz
- nodejs
# pytroll dependencies
#- satpy
# satpy dependencies
- pyresample
- pillow
- pyresample
- trollsift
- trollimage
- pykdtree
- pyspectral
- pyyaml
- h5py
- netcdf4
- pyorbital
- imageio
- imageio-ffmpeg
- cartopy
- metpy
- siphon
- pandas
#- gcsfs
- pip:
- kubernetes
- graphviz
- git+https://github.com/pytroll/satpy.git@master
93 changes: 93 additions & 0 deletions binder/jupyterlab-workspace.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
{
"data": {
"layout-restorer:data": {
"main": {
"dock": {
"type": "split-area",
"orientation": "horizontal",
"sizes": [
0.5,
0.5
],
"children": [
{
"type": "tab-area",
"currentIndex": 0,
"widgets": [
"application-mimedocuments:Welcome.md:Markdown Preview"
]
},
{
"type": "split-area",
"orientation": "vertical",
"sizes": [
0.67,
0.33
],
"children": [
{
"type": "tab-area",
"currentIndex": 0,
"widgets": [
"dask-dashboard-launcher:individual-task-stream"
]
},
{
"type": "tab-area",
"currentIndex": 0,
"widgets": [
"dask-dashboard-launcher:individual-progress"
]
}
]
}
]
},
"mode": "multiple-document",
"current": "application-mimedocuments:Welcome.md:Markdown Preview"
},
"left": {
"collapsed": false,
"current": "filebrowser",
"widgets": [
"filebrowser",
"running-sessions",
"dask-dashboard-launcher",
"command-palette",
"tab-manager"
]
},
"right": {
"collapsed": true,
"widgets": []
}
},
"file-browser-filebrowser:cwd": {
"path": ""
},
"dask-dashboard-launcher:individual-task-stream": {
"data": {
"route": "individual-task-stream",
"label": "Task Stream"
}
},
"dask-dashboard-launcher:individual-progress": {
"data": {
"route": "individual-progress",
"label": "Progress"
}
},
"dask-dashboard-launcher": {
"url": "DASK_DASHBOARD_URL"
},
"application-mimedocuments:Welcome.md:Markdown Preview": {
"data": {
"path": "Welcome.md",
"factory": "Markdown Preview"
}
}
},
"metadata": {
"id": "WORKSPACE_ID"
}
}
23 changes: 23 additions & 0 deletions binder/postBuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash
jupyter serverextension enable --py nbserverproxy --sys-prefix
jupyter labextension install @jupyter-widgets/jupyterlab-manager \
@jupyterlab/[email protected] \
@pyviz/jupyterlab_pyviz \
jupyter-leaflet \
dask-labextension

# install google cloud storage tools
# once gsutil is python 3 compatible we can remove this and install
# 'google-cloud-sdk' from conda-forge instead
# first, check if we have a gsutil command already
command -v gsutil
if [ $? -ne 0 ]; then
curl https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-236.0.0-linux-x86_64.tar.gz -o gc_sdk.tar.gz
tar -xzf gc_sdk.tar.gz
./google-cloud-sdk/install.sh --usage-reporting false --path-update true --quiet
source .bashrc
fi

#gcloud components update

#EOF
12 changes: 12 additions & 0 deletions binder/start
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

# Replace DASK_DASHBOARD_URL with the proxy location
sed -i -e "s|DASK_DASHBOARD_URL|/user/${JUPYTERHUB_USER}/proxy/8787|g" binder/jupyterlab-workspace.json
# Get the right workspace ID
sed -i -e "s|WORKSPACE_ID|/user/${JUPYTERHUB_USER}/lab|g" binder/jupyterlab-workspace.json

# Import the workspace into JupyterLab
jupyter lab workspaces import binder/jupyterlab-workspace.json \
--NotebookApp.base_url=user/${JUPYTERHUB_USER}

exec "$@"
Loading