diff --git a/jupyterbook/content/code_gallery/data_access_notebooks/2016-10-12-fetching_data.ipynb b/jupyterbook/content/code_gallery/data_access_notebooks/2016-10-12-fetching_data.ipynb index 12e3898e..5d241a9c 100644 --- a/jupyterbook/content/code_gallery/data_access_notebooks/2016-10-12-fetching_data.ipynb +++ b/jupyterbook/content/code_gallery/data_access_notebooks/2016-10-12-fetching_data.ipynb @@ -13,16 +13,20 @@ "import subprocess\n", "import sys\n", "\n", + "\n", "def _install(package):\n", " subprocess.check_call([sys.executable, \"-m\", \"pip\", \"install\", \"--quiet\", package])\n", "\n", + "\n", "def _colab_install_missing_deps(deps):\n", " import importlib\n", + "\n", " for dep in deps:\n", " if importlib.util.find_spec(dep) is None:\n", " _install(dep)\n", "\n", - "deps = ['erddapy']\n", + "\n", + "deps = [\"erddapy\"]\n", "_colab_install_missing_deps(deps)" ] }, diff --git a/jupyterbook/content/code_gallery/data_access_notebooks/2016-11-15-glider_data_example.ipynb b/jupyterbook/content/code_gallery/data_access_notebooks/2016-11-15-glider_data_example.ipynb index 5c5bdcff..eb370232 100644 --- a/jupyterbook/content/code_gallery/data_access_notebooks/2016-11-15-glider_data_example.ipynb +++ b/jupyterbook/content/code_gallery/data_access_notebooks/2016-11-15-glider_data_example.ipynb @@ -13,16 +13,20 @@ "import subprocess\n", "import sys\n", "\n", + "\n", "def _install(package):\n", " subprocess.check_call([sys.executable, \"-m\", \"pip\", \"install\", \"--quiet\", package])\n", "\n", + "\n", "def _colab_install_missing_deps(deps):\n", " import importlib\n", + "\n", " for dep in deps:\n", " if importlib.util.find_spec(dep) is None:\n", " _install(dep)\n", "\n", - "deps = ['cf_xarray', 'palettable', 'seawater']\n", + "\n", + "deps = [\"cf_xarray\", \"palettable\", \"seawater\"]\n", "_colab_install_missing_deps(deps)" ] }, diff --git a/jupyterbook/content/code_gallery/data_access_notebooks/2016-12-20-searching_glider_deployments.ipynb b/jupyterbook/content/code_gallery/data_access_notebooks/2016-12-20-searching_glider_deployments.ipynb index 535656e7..72f6b236 100644 --- a/jupyterbook/content/code_gallery/data_access_notebooks/2016-12-20-searching_glider_deployments.ipynb +++ b/jupyterbook/content/code_gallery/data_access_notebooks/2016-12-20-searching_glider_deployments.ipynb @@ -13,16 +13,20 @@ "import subprocess\n", "import sys\n", "\n", + "\n", "def _install(package):\n", " subprocess.check_call([sys.executable, \"-m\", \"pip\", \"install\", \"--quiet\", package])\n", "\n", + "\n", "def _colab_install_missing_deps(deps):\n", " import importlib\n", + "\n", " for dep in deps:\n", " if importlib.util.find_spec(dep) is None:\n", " _install(dep)\n", "\n", - "deps = ['iris', 'seawater']\n", + "\n", + "deps = [\"iris\", \"seawater\"]\n", "_colab_install_missing_deps(deps)" ] }, diff --git a/jupyterbook/content/code_gallery/data_access_notebooks/2017-01-18-siphon-explore-thredds.archived.ipynb b/jupyterbook/content/code_gallery/data_access_notebooks/2017-01-18-siphon-explore-thredds.archived.ipynb index c45224d3..58bb4b09 100644 --- a/jupyterbook/content/code_gallery/data_access_notebooks/2017-01-18-siphon-explore-thredds.archived.ipynb +++ b/jupyterbook/content/code_gallery/data_access_notebooks/2017-01-18-siphon-explore-thredds.archived.ipynb @@ -52,17 +52,15 @@ "catalog = TDSCatalog(\"https://thredds.cencoos.org/thredds/catalog.xml\")\n", "\n", "\n", - "info = \"\"\"\n", + "info = f\"\"\"\n", "Catalog information\n", "-------------------\n", "\n", - "Base THREDDS URL: {}\n", - "Catalog name: {}\n", - "Catalog URL: {}\n", - "Metadata: {}\n", - "\"\"\".format(\n", - " catalog.base_tds_url, catalog.catalog_name, catalog.catalog_url, catalog.metadata\n", - ")\n", + "Base THREDDS URL: {catalog.base_tds_url}\n", + "Catalog name: {catalog.catalog_name}\n", + "Catalog URL: {catalog.catalog_url}\n", + "Metadata: {catalog.metadata}\n", + "\"\"\"\n", "\n", "print(info)" ] @@ -234,13 +232,11 @@ } ], "source": [ - "info = \"\"\"\n", - "Href: {}\n", - "Name: {}\n", - "Title: {}\n", - "\"\"\".format(\n", - " ref.href, ref.name, ref.title\n", - ")\n", + "info = f\"\"\"\n", + "Href: {ref.href}\n", + "Name: {ref.name}\n", + "Title: {ref.title}\n", + "\"\"\"\n", "\n", "print(info)" ] diff --git a/jupyterbook/content/code_gallery/data_access_notebooks/2017-03-21-ERDDAP_IOOS_Sensor_Map.ipynb b/jupyterbook/content/code_gallery/data_access_notebooks/2017-03-21-ERDDAP_IOOS_Sensor_Map.ipynb index cbf048f8..affdbb38 100644 --- a/jupyterbook/content/code_gallery/data_access_notebooks/2017-03-21-ERDDAP_IOOS_Sensor_Map.ipynb +++ b/jupyterbook/content/code_gallery/data_access_notebooks/2017-03-21-ERDDAP_IOOS_Sensor_Map.ipynb @@ -13,16 +13,20 @@ "import subprocess\n", "import sys\n", "\n", + "\n", "def _install(package):\n", " subprocess.check_call([sys.executable, \"-m\", \"pip\", \"install\", \"--quiet\", package])\n", "\n", + "\n", "def _colab_install_missing_deps(deps):\n", " import importlib\n", + "\n", " for dep in deps:\n", " if importlib.util.find_spec(dep) is None:\n", " _install(dep)\n", "\n", - "deps = ['erddapy']\n", + "\n", + "deps = [\"erddapy\"]\n", "_colab_install_missing_deps(deps)" ] }, diff --git a/jupyterbook/content/code_gallery/data_access_notebooks/2017-06-12-NCEI_RA_archive_history.ipynb b/jupyterbook/content/code_gallery/data_access_notebooks/2017-06-12-NCEI_RA_archive_history.ipynb index a3bf3d33..f4e9ae8e 100644 --- a/jupyterbook/content/code_gallery/data_access_notebooks/2017-06-12-NCEI_RA_archive_history.ipynb +++ b/jupyterbook/content/code_gallery/data_access_notebooks/2017-06-12-NCEI_RA_archive_history.ipynb @@ -13,16 +13,20 @@ "import subprocess\n", "import sys\n", "\n", + "\n", "def _install(package):\n", " subprocess.check_call([sys.executable, \"-m\", \"pip\", \"install\", \"--quiet\", package])\n", "\n", + "\n", "def _colab_install_missing_deps(deps):\n", " import importlib\n", + "\n", " for dep in deps:\n", " if importlib.util.find_spec(dep) is None:\n", " _install(dep)\n", "\n", - "deps = ['owslib']\n", + "\n", + "deps = [\"owslib\"]\n", "_colab_install_missing_deps(deps)" ] }, @@ -139,10 +143,8 @@ " \"SCCOOS\": \"Southern California Coastal Ocean Observing System\",\n", " \"SECOORA\": \"Southeast Coastal Ocean Observing Regional Association\",\n", " }\n", - " reg_assoc = '(dataThemeinstitutions_s:\"{}\" dataThemeprojects_s:\"{} ({})\")'.format(\n", - " RAs[ra],\n", - " RAs[ra],\n", - " ra,\n", + " reg_assoc = (\n", + " f'(dataThemeinstitutions_s:\"{RAs[ra]}\" dataThemeprojects_s:\"{RAs[ra]} ({ra})\")'\n", " )\n", "\n", "# Identify the project.\n", diff --git a/jupyterbook/content/code_gallery/data_access_notebooks/2017-09-09-hurricane_irma.ipynb b/jupyterbook/content/code_gallery/data_access_notebooks/2017-09-09-hurricane_irma.ipynb index 991d8edd..4a6e7dc0 100644 --- a/jupyterbook/content/code_gallery/data_access_notebooks/2017-09-09-hurricane_irma.ipynb +++ b/jupyterbook/content/code_gallery/data_access_notebooks/2017-09-09-hurricane_irma.ipynb @@ -13,16 +13,20 @@ "import subprocess\n", "import sys\n", "\n", + "\n", "def _install(package):\n", " subprocess.check_call([sys.executable, \"-m\", \"pip\", \"install\", \"--quiet\", package])\n", "\n", + "\n", "def _colab_install_missing_deps(deps):\n", " import importlib\n", + "\n", " for dep in deps:\n", " if importlib.util.find_spec(dep) is None:\n", " _install(dep)\n", "\n", - "deps = ['cf-units', 'ioos-tools', 'pyoos', 'retrying']\n", + "\n", + "deps = [\"cf-units\", \"ioos-tools\", \"pyoos\", \"retrying\"]\n", "_colab_install_missing_deps(deps)" ] }, @@ -72,7 +76,7 @@ }, "outputs": [], "source": [ - "import sys\n", + "import sys # noqa\n", "from pathlib import Path\n", "from urllib.request import urlopen, urlretrieve\n", "\n", @@ -6544,7 +6548,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.4" + "version": "3.11.5" } }, "nbformat": 4, diff --git a/jupyterbook/content/code_gallery/data_access_notebooks/2017-11-30-rerddap.ipynb b/jupyterbook/content/code_gallery/data_access_notebooks/2017-11-30-rerddap.ipynb index 91791bd3..214e59b0 100644 --- a/jupyterbook/content/code_gallery/data_access_notebooks/2017-11-30-rerddap.ipynb +++ b/jupyterbook/content/code_gallery/data_access_notebooks/2017-11-30-rerddap.ipynb @@ -13,16 +13,20 @@ "import subprocess\n", "import sys\n", "\n", + "\n", "def _install(package):\n", " subprocess.check_call([sys.executable, \"-m\", \"pip\", \"install\", \"--quiet\", package])\n", "\n", + "\n", "def _colab_install_missing_deps(deps):\n", " import importlib\n", + "\n", " for dep in deps:\n", " if importlib.util.find_spec(dep) is None:\n", " _install(dep)\n", "\n", - "deps = ['cartopy']\n", + "\n", + "deps = [\"cartopy\"]\n", "_colab_install_missing_deps(deps)" ] }, diff --git a/jupyterbook/content/code_gallery/data_access_notebooks/2018-02-20-obis.ipynb b/jupyterbook/content/code_gallery/data_access_notebooks/2018-02-20-obis.ipynb index d9c093ce..9af2912d 100644 --- a/jupyterbook/content/code_gallery/data_access_notebooks/2018-02-20-obis.ipynb +++ b/jupyterbook/content/code_gallery/data_access_notebooks/2018-02-20-obis.ipynb @@ -13,16 +13,20 @@ "import subprocess\n", "import sys\n", "\n", + "\n", "def _install(package):\n", " subprocess.check_call([sys.executable, \"-m\", \"pip\", \"install\", \"--quiet\", package])\n", "\n", + "\n", "def _colab_install_missing_deps(deps):\n", " import importlib\n", + "\n", " for dep in deps:\n", " if importlib.util.find_spec(dep) is None:\n", " _install(dep)\n", "\n", - "deps = ['palettable']\n", + "\n", + "deps = [\"palettable\"]\n", "_colab_install_missing_deps(deps)" ] }, diff --git a/jupyterbook/content/code_gallery/data_access_notebooks/2018-03-01-erddapy.ipynb b/jupyterbook/content/code_gallery/data_access_notebooks/2018-03-01-erddapy.ipynb index e6990086..11ef55a1 100644 --- a/jupyterbook/content/code_gallery/data_access_notebooks/2018-03-01-erddapy.ipynb +++ b/jupyterbook/content/code_gallery/data_access_notebooks/2018-03-01-erddapy.ipynb @@ -13,16 +13,20 @@ "import subprocess\n", "import sys\n", "\n", + "\n", "def _install(package):\n", " subprocess.check_call([sys.executable, \"-m\", \"pip\", \"install\", \"--quiet\", package])\n", "\n", + "\n", "def _colab_install_missing_deps(deps):\n", " import importlib\n", + "\n", " for dep in deps:\n", " if importlib.util.find_spec(dep) is None:\n", " _install(dep)\n", "\n", - "deps = ['erddapy', 'palettable']\n", + "\n", + "deps = [\"erddapy\", \"palettable\"]\n", "_colab_install_missing_deps(deps)" ] }, @@ -1216,9 +1220,7 @@ " )\n", " if len(var) > 2:\n", " raise Exception(\n", - " \"Found more than 1 variable with `standard_names` {}\\n{!r}\".format(\n", - " standard_names, var\n", - " )\n", + " f\"Found more than 1 variable with `standard_names` {standard_names}\\n{var!r}\"\n", " )\n", " variables.extend(var)\n", " return variables" diff --git a/jupyterbook/content/code_gallery/data_access_notebooks/2019-03-08-grids-temperature.ipynb b/jupyterbook/content/code_gallery/data_access_notebooks/2019-03-08-grids-temperature.ipynb index 48bc9866..450a6458 100644 --- a/jupyterbook/content/code_gallery/data_access_notebooks/2019-03-08-grids-temperature.ipynb +++ b/jupyterbook/content/code_gallery/data_access_notebooks/2019-03-08-grids-temperature.ipynb @@ -13,16 +13,20 @@ "import subprocess\n", "import sys\n", "\n", + "\n", "def _install(package):\n", " subprocess.check_call([sys.executable, \"-m\", \"pip\", \"install\", \"--quiet\", package])\n", "\n", + "\n", "def _colab_install_missing_deps(deps):\n", " import importlib\n", + "\n", " for dep in deps:\n", " if importlib.util.find_spec(dep) is None:\n", " _install(dep)\n", "\n", - "deps = ['cartopy', 'gridgeo', 'netcdf4', 'palettable']\n", + "\n", + "deps = [\"cartopy\", \"gridgeo\", \"netcdf4\", \"palettable\"]\n", "_colab_install_missing_deps(deps)" ] }, diff --git a/jupyterbook/content/code_gallery/data_access_notebooks/2019-05-27-hurricane_gis_part02.ipynb b/jupyterbook/content/code_gallery/data_access_notebooks/2019-05-27-hurricane_gis_part02.ipynb index 0bd4033b..aa0dedd2 100644 --- a/jupyterbook/content/code_gallery/data_access_notebooks/2019-05-27-hurricane_gis_part02.ipynb +++ b/jupyterbook/content/code_gallery/data_access_notebooks/2019-05-27-hurricane_gis_part02.ipynb @@ -13,16 +13,20 @@ "import subprocess\n", "import sys\n", "\n", + "\n", "def _install(package):\n", " subprocess.check_call([sys.executable, \"-m\", \"pip\", \"install\", \"--quiet\", package])\n", "\n", + "\n", "def _colab_install_missing_deps(deps):\n", " import importlib\n", + "\n", " for dep in deps:\n", " if importlib.util.find_spec(dep) is None:\n", " _install(dep)\n", "\n", - "deps = ['cf-units', 'ioos-tools', 'pyoos', 'retrying']\n", + "\n", + "deps = [\"cf-units\", \"ioos-tools\", \"pyoos\", \"retrying\"]\n", "_colab_install_missing_deps(deps)" ] }, diff --git a/jupyterbook/content/code_gallery/data_access_notebooks/2020-10-10-GTS.ipynb b/jupyterbook/content/code_gallery/data_access_notebooks/2020-10-10-GTS.ipynb index a1d4e234..12cb116a 100644 --- a/jupyterbook/content/code_gallery/data_access_notebooks/2020-10-10-GTS.ipynb +++ b/jupyterbook/content/code_gallery/data_access_notebooks/2020-10-10-GTS.ipynb @@ -13,16 +13,20 @@ "import subprocess\n", "import sys\n", "\n", + "\n", "def _install(package):\n", " subprocess.check_call([sys.executable, \"-m\", \"pip\", \"install\", \"--quiet\", package])\n", "\n", + "\n", "def _colab_install_missing_deps(deps):\n", " import importlib\n", + "\n", " for dep in deps:\n", " if importlib.util.find_spec(dep) is None:\n", " _install(dep)\n", "\n", - "deps = ['ipyleaflet']\n", + "\n", + "deps = [\"ipyleaflet\"]\n", "_colab_install_missing_deps(deps)" ] }, diff --git a/jupyterbook/content/code_gallery/data_access_notebooks/2021-10-19-multiple-erddap-search.ipynb b/jupyterbook/content/code_gallery/data_access_notebooks/2021-10-19-multiple-erddap-search.ipynb index f62512e5..c1c75920 100644 --- a/jupyterbook/content/code_gallery/data_access_notebooks/2021-10-19-multiple-erddap-search.ipynb +++ b/jupyterbook/content/code_gallery/data_access_notebooks/2021-10-19-multiple-erddap-search.ipynb @@ -13,16 +13,20 @@ "import subprocess\n", "import sys\n", "\n", + "\n", "def _install(package):\n", " subprocess.check_call([sys.executable, \"-m\", \"pip\", \"install\", \"--quiet\", package])\n", "\n", + "\n", "def _colab_install_missing_deps(deps):\n", " import importlib\n", + "\n", " for dep in deps:\n", " if importlib.util.find_spec(dep) is None:\n", " _install(dep)\n", "\n", - "deps = ['erddapy', 'ipyleaflet', 'seawater']\n", + "\n", + "deps = [\"erddapy\", \"ipyleaflet\", \"seawater\"]\n", "_colab_install_missing_deps(deps)" ] }, diff --git a/jupyterbook/content/code_gallery/data_access_notebooks/2022-11-23_pyobis_example.ipynb b/jupyterbook/content/code_gallery/data_access_notebooks/2022-11-23_pyobis_example.ipynb index f20e5f79..da2c3a0a 100644 --- a/jupyterbook/content/code_gallery/data_access_notebooks/2022-11-23_pyobis_example.ipynb +++ b/jupyterbook/content/code_gallery/data_access_notebooks/2022-11-23_pyobis_example.ipynb @@ -13,16 +13,20 @@ "import subprocess\n", "import sys\n", "\n", + "\n", "def _install(package):\n", " subprocess.check_call([sys.executable, \"-m\", \"pip\", \"install\", \"--quiet\", package])\n", "\n", + "\n", "def _colab_install_missing_deps(deps):\n", " import importlib\n", + "\n", " for dep in deps:\n", " if importlib.util.find_spec(dep) is None:\n", " _install(dep)\n", "\n", - "deps = ['geoplot', 'pyobis']\n", + "\n", + "deps = [\"geoplot\", \"pyobis\"]\n", "_colab_install_missing_deps(deps)" ] }, diff --git a/jupyterbook/content/code_gallery/data_analysis_and_visualization_notebooks/2016-11-16-CF-UGRID-SGRID-conventions.ipynb b/jupyterbook/content/code_gallery/data_analysis_and_visualization_notebooks/2016-11-16-CF-UGRID-SGRID-conventions.ipynb index 4df429d9..3e2f6918 100644 --- a/jupyterbook/content/code_gallery/data_analysis_and_visualization_notebooks/2016-11-16-CF-UGRID-SGRID-conventions.ipynb +++ b/jupyterbook/content/code_gallery/data_analysis_and_visualization_notebooks/2016-11-16-CF-UGRID-SGRID-conventions.ipynb @@ -13,16 +13,20 @@ "import subprocess\n", "import sys\n", "\n", + "\n", "def _install(package):\n", " subprocess.check_call([sys.executable, \"-m\", \"pip\", \"install\", \"--quiet\", package])\n", "\n", + "\n", "def _colab_install_missing_deps(deps):\n", " import importlib\n", + "\n", " for dep in deps:\n", " if importlib.util.find_spec(dep) is None:\n", " _install(dep)\n", "\n", - "deps = ['cartopy', 'cf_xarray', 'netcdf4', 'odvc', 'pysgrid', 'pyugrid']\n", + "\n", + "deps = [\"cartopy\", \"cf_xarray\", \"netcdf4\", \"odvc\", \"pysgrid\", \"pyugrid\"]\n", "_colab_install_missing_deps(deps)" ] }, diff --git a/jupyterbook/content/code_gallery/data_analysis_and_visualization_notebooks/2018-12-04-grids.ipynb b/jupyterbook/content/code_gallery/data_analysis_and_visualization_notebooks/2018-12-04-grids.ipynb index 51201662..4f8275fe 100644 --- a/jupyterbook/content/code_gallery/data_analysis_and_visualization_notebooks/2018-12-04-grids.ipynb +++ b/jupyterbook/content/code_gallery/data_analysis_and_visualization_notebooks/2018-12-04-grids.ipynb @@ -13,16 +13,20 @@ "import subprocess\n", "import sys\n", "\n", + "\n", "def _install(package):\n", " subprocess.check_call([sys.executable, \"-m\", \"pip\", \"install\", \"--quiet\", package])\n", "\n", + "\n", "def _colab_install_missing_deps(deps):\n", " import importlib\n", + "\n", " for dep in deps:\n", " if importlib.util.find_spec(dep) is None:\n", " _install(dep)\n", "\n", - "deps = ['cartopy', 'gridgeo', 'netcdf4']\n", + "\n", + "deps = [\"cartopy\", \"gridgeo\", \"netcdf4\"]\n", "_colab_install_missing_deps(deps)" ] }, diff --git a/jupyterbook/content/code_gallery/data_analysis_and_visualization_notebooks/2020-02-14-QARTOD_ioos_qc_Water-Level-Example.ipynb b/jupyterbook/content/code_gallery/data_analysis_and_visualization_notebooks/2020-02-14-QARTOD_ioos_qc_Water-Level-Example.ipynb index bdd1a65e..df76a433 100644 --- a/jupyterbook/content/code_gallery/data_analysis_and_visualization_notebooks/2020-02-14-QARTOD_ioos_qc_Water-Level-Example.ipynb +++ b/jupyterbook/content/code_gallery/data_analysis_and_visualization_notebooks/2020-02-14-QARTOD_ioos_qc_Water-Level-Example.ipynb @@ -13,16 +13,20 @@ "import subprocess\n", "import sys\n", "\n", + "\n", "def _install(package):\n", " subprocess.check_call([sys.executable, \"-m\", \"pip\", \"install\", \"--quiet\", package])\n", "\n", + "\n", "def _colab_install_missing_deps(deps):\n", " import importlib\n", + "\n", " for dep in deps:\n", " if importlib.util.find_spec(dep) is None:\n", " _install(dep)\n", "\n", - "deps = ['cf_xarray', 'erddapy', 'ioos_qc']\n", + "\n", + "deps = [\"cf_xarray\", \"erddapy\", \"ioos_qc\"]\n", "_colab_install_missing_deps(deps)" ] }, diff --git a/jupyterbook/content/code_gallery/data_analysis_and_visualization_notebooks/2021-10-25-ERDDAP-interpolate.ipynb b/jupyterbook/content/code_gallery/data_analysis_and_visualization_notebooks/2021-10-25-ERDDAP-interpolate.ipynb index 6928b4b4..e197c012 100644 --- a/jupyterbook/content/code_gallery/data_analysis_and_visualization_notebooks/2021-10-25-ERDDAP-interpolate.ipynb +++ b/jupyterbook/content/code_gallery/data_analysis_and_visualization_notebooks/2021-10-25-ERDDAP-interpolate.ipynb @@ -14,16 +14,20 @@ "import subprocess\n", "import sys\n", "\n", + "\n", "def _install(package):\n", " subprocess.check_call([sys.executable, \"-m\", \"pip\", \"install\", \"--quiet\", package])\n", "\n", + "\n", "def _colab_install_missing_deps(deps):\n", " import importlib\n", + "\n", " for dep in deps:\n", " if importlib.util.find_spec(dep) is None:\n", " _install(dep)\n", "\n", - "deps = ['erddapy']\n", + "\n", + "deps = [\"erddapy\"]\n", "_colab_install_missing_deps(deps)" ] }, diff --git a/jupyterbook/content/code_gallery/data_management_notebooks/2017-05-14-running_compliance_checker.ipynb b/jupyterbook/content/code_gallery/data_management_notebooks/2017-05-14-running_compliance_checker.ipynb index 5072854c..c712d90e 100644 --- a/jupyterbook/content/code_gallery/data_management_notebooks/2017-05-14-running_compliance_checker.ipynb +++ b/jupyterbook/content/code_gallery/data_management_notebooks/2017-05-14-running_compliance_checker.ipynb @@ -13,16 +13,20 @@ "import subprocess\n", "import sys\n", "\n", + "\n", "def _install(package):\n", " subprocess.check_call([sys.executable, \"-m\", \"pip\", \"install\", \"--quiet\", package])\n", "\n", + "\n", "def _colab_install_missing_deps(deps):\n", " import importlib\n", + "\n", " for dep in deps:\n", " if importlib.util.find_spec(dep) is None:\n", " _install(dep)\n", "\n", - "deps = ['compliance-checker']\n", + "\n", + "deps = [\"compliance-checker\"]\n", "_colab_install_missing_deps(deps)" ] }, diff --git a/jupyterbook/content/code_gallery/data_management_notebooks/2017-11-01-Creating-Archives-Using-Bagit.ipynb b/jupyterbook/content/code_gallery/data_management_notebooks/2017-11-01-Creating-Archives-Using-Bagit.ipynb index 0a09944d..f161233c 100644 --- a/jupyterbook/content/code_gallery/data_management_notebooks/2017-11-01-Creating-Archives-Using-Bagit.ipynb +++ b/jupyterbook/content/code_gallery/data_management_notebooks/2017-11-01-Creating-Archives-Using-Bagit.ipynb @@ -13,16 +13,20 @@ "import subprocess\n", "import sys\n", "\n", + "\n", "def _install(package):\n", " subprocess.check_call([sys.executable, \"-m\", \"pip\", \"install\", \"--quiet\", package])\n", "\n", + "\n", "def _colab_install_missing_deps(deps):\n", " import importlib\n", + "\n", " for dep in deps:\n", " if importlib.util.find_spec(dep) is None:\n", " _install(dep)\n", "\n", - "deps = ['bagit', 'pocean-core']\n", + "\n", + "deps = [\"bagit\", \"pocean-core\"]\n", "_colab_install_missing_deps(deps)" ] }, @@ -299,9 +303,7 @@ "metadata": {}, "outputs": [], "source": [ - "urn = \"urn:ioos:station:{naming_authority}:{st_id}\".format(\n", - " naming_authority=naming_authority, st_id=st_id\n", - ")\n", + "urn = f\"urn:ioos:station:{naming_authority}:{st_id}\"\n", "\n", "bag_meta = {\n", " \"Bag-Count\": \"1 of 1\",\n", diff --git a/jupyterbook/content/code_gallery/data_management_notebooks/2018-02-27-pocean-timeSeries-demo.ipynb b/jupyterbook/content/code_gallery/data_management_notebooks/2018-02-27-pocean-timeSeries-demo.ipynb index 8f5e36bc..b9e81d30 100644 --- a/jupyterbook/content/code_gallery/data_management_notebooks/2018-02-27-pocean-timeSeries-demo.ipynb +++ b/jupyterbook/content/code_gallery/data_management_notebooks/2018-02-27-pocean-timeSeries-demo.ipynb @@ -13,16 +13,20 @@ "import subprocess\n", "import sys\n", "\n", + "\n", "def _install(package):\n", " subprocess.check_call([sys.executable, \"-m\", \"pip\", \"install\", \"--quiet\", package])\n", "\n", + "\n", "def _colab_install_missing_deps(deps):\n", " import importlib\n", + "\n", " for dep in deps:\n", " if importlib.util.find_spec(dep) is None:\n", " _install(dep)\n", "\n", - "deps = ['oceans', 'pocean-core']\n", + "\n", + "deps = [\"oceans\", \"pocean-core\"]\n", "_colab_install_missing_deps(deps)" ] }, diff --git a/jupyterbook/content/code_gallery/data_management_notebooks/2020-12-08-DataToDwC.ipynb b/jupyterbook/content/code_gallery/data_management_notebooks/2020-12-08-DataToDwC.ipynb index 5d98e10a..82158bf0 100644 --- a/jupyterbook/content/code_gallery/data_management_notebooks/2020-12-08-DataToDwC.ipynb +++ b/jupyterbook/content/code_gallery/data_management_notebooks/2020-12-08-DataToDwC.ipynb @@ -13,16 +13,20 @@ "import subprocess\n", "import sys\n", "\n", + "\n", "def _install(package):\n", " subprocess.check_call([sys.executable, \"-m\", \"pip\", \"install\", \"--quiet\", package])\n", "\n", + "\n", "def _colab_install_missing_deps(deps):\n", " import importlib\n", + "\n", " for dep in deps:\n", " if importlib.util.find_spec(dep) is None:\n", " _install(dep)\n", "\n", - "deps = ['pyworms']\n", + "\n", + "deps = [\"pyworms\"]\n", "_colab_install_missing_deps(deps)" ] }, diff --git a/jupyterbook/content/code_gallery/data_management_notebooks/2023-03-20-Reading_and_writing_zarr.ipynb b/jupyterbook/content/code_gallery/data_management_notebooks/2023-03-20-Reading_and_writing_zarr.ipynb index eb7270bf..58a48d35 100644 --- a/jupyterbook/content/code_gallery/data_management_notebooks/2023-03-20-Reading_and_writing_zarr.ipynb +++ b/jupyterbook/content/code_gallery/data_management_notebooks/2023-03-20-Reading_and_writing_zarr.ipynb @@ -14,16 +14,20 @@ "import subprocess\n", "import sys\n", "\n", + "\n", "def _install(package):\n", " subprocess.check_call([sys.executable, \"-m\", \"pip\", \"install\", \"--quiet\", package])\n", "\n", + "\n", "def _colab_install_missing_deps(deps):\n", " import importlib\n", + "\n", " for dep in deps:\n", " if importlib.util.find_spec(dep) is None:\n", " _install(dep)\n", "\n", - "deps = ['zarr']\n", + "\n", + "deps = [\"zarr\"]\n", "_colab_install_missing_deps(deps)" ] },