diff --git a/.readthedocs.yaml b/.readthedocs.yaml index d8de548..98aa7ee 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -15,7 +15,10 @@ build: sphinx: configuration: docs/conf.py -# Optionally set the version of Python and requirements required to build your docs +# Install Python dependencies using pyproject.toml python: install: - - requirements: requirements/docs.txt + - method: pip + path: . + extra_requirements: + - docs diff --git a/Makefile b/Makefile index 94392b5..d9d3988 100644 --- a/Makefile +++ b/Makefile @@ -15,10 +15,11 @@ clean-docs: install: python -m pip install --upgrade pip - pip install -r requirements/core.txt -r requirements/dev.txt -r requirements/docs.txt + pip install . + pip install .[dev,docs] install-examples: install - pip install -r requirements/examples.txt + pip install .[examples] examples: install-examples jupyter-lab diff --git a/docs/user/notebook.html b/docs/user/notebook.html index 84bf614..aa553ff 100644 --- a/docs/user/notebook.html +++ b/docs/user/notebook.html @@ -7495,12 +7495,12 @@
import sys; sys.path.append('..')
-!{sys.executable} -m pip install -q -r ../requirements/examples.txt
+import helper
-# Install harmony-py requirements. Not necessary if you ran `pip install harmony-py` in your kernel
-!{sys.executable} -m pip install -q -r ../requirements/core.txt
+# Install the project with both 'examples' and 'dev' extra dependencies
+helper.install_project_and_dependencies('..', libs=['examples'])
+import sys
import datetime as dt
from IPython.display import display, JSON
import rasterio
@@ -7508,7 +7508,7 @@ Harmony Py Tutorialimport netCDF4 as nc4
from matplotlib import pyplot as plt
import numpy as np
-import helper
+
from harmony import BBox, WKT, Client, Collection, Request, Environment
@@ -7719,7 +7719,7 @@ Harmony Py Tutorial
-/tmp/4856803_2020_01_01_7f00ff_global_blue_var_regridded_subsetted.tif
+/tmp/4857426_2020_01_01_7f00ff_global_blue_var_regridded_subsetted.tif
/tmp/4856804_2020_01_01_7f00ff_global_blue_var_regridded_subsetted.tif +/tmp/4857427_2020_01_01_7f00ff_global_blue_var_regridded_subsetted.tif
/tmp/4856805_2020_01_02_3200ff_global_blue_var_regridded_subsetted.tif +/tmp/4857428_2020_01_02_3200ff_global_blue_var_regridded_subsetted.tif
/tmp/4856806_2020_01_03_0019ff_global_blue_var_regridded_subsetted.tif +/tmp/4857429_2020_01_03_0019ff_global_blue_var_regridded_subsetted.tif
/tmp/4856807_2020_01_04_0065ff_global_blue_var_regridded_subsetted.tif +/tmp/4857430_2020_01_04_0065ff_global_blue_var_regridded_subsetted.tif
/tmp/4856808_2020_01_05_00b2ff_global_blue_var_regridded_subsetted.tif +/tmp/4857431_2020_01_05_00b2ff_global_blue_var_regridded_subsetted.tif
/tmp/4856809_2020_01_06_00feff_global_blue_var_regridded_subsetted.tif +/tmp/4857432_2020_01_06_00feff_global_blue_var_regridded_subsetted.tif
/tmp/4856810_2020_01_07_00ffb2_global_blue_var_regridded_subsetted.tif +/tmp/4857433_2020_01_07_00ffb2_global_blue_var_regridded_subsetted.tif
/tmp/4856811_2020_01_08_00ff66_global_blue_var_regridded_subsetted.tif +/tmp/4857434_2020_01_08_00ff66_global_blue_var_regridded_subsetted.tif
/tmp/4856812_2020_01_09_00ff19_global_blue_var_regridded_subsetted.tif +/tmp/4857435_2020_01_09_00ff19_global_blue_var_regridded_subsetted.tif
<matplotlib.image.AxesImage at 0x1271cefd0>+
<matplotlib.image.AxesImage at 0x12cde2d50>
'3d9ff057-50af-430b-bc9c-8edd13430078'+
'd5306445-54aa-4457-bf3c-9fca9d4e50e1'
'b049d8f3-6fea-439b-aad6-60da59dcf1f7'+
'91b2043e-2bf2-444a-a47a-15f0247a380a'
- /tmp/4856817_001_00_7f00ff_global_blue_var_regridded.nc.png + /tmp/4857440_001_00_7f00ff_global_blue_var_regridded.nc.png