diff --git a/.gitignore b/.gitignore index d449ab3..6179a80 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ __pycache__/ # Distribution / packaging .Python build/ +_build/ notebooks/_build/ develop-eggs/ dist/ @@ -128,3 +129,6 @@ dmypy.json # Pyre type checker .pyre/ + +# IDEs +.vscode/ \ No newline at end of file diff --git a/_config.yml b/_config.yml index 21ab7a0..45841e5 100644 --- a/_config.yml +++ b/_config.yml @@ -4,7 +4,7 @@ title: xbatcher for Machine Learning Part 1 author: Christopher Dupuis logo: notebooks/images/logos/pythia_logo-white-rtext.svg -copyright: "2022" +copyright: "2024" execute: # To execute notebooks via a Binder instead, replace 'cache' with 'binder' @@ -43,7 +43,9 @@ sphinx: use_issues_button: true use_repository_button: true use_edit_page_button: true - google_analytics_id: G-T52X8HNYE8 + use_fullscreen_button: true + analytics: + google_analytics_id: G-T52X8HNYE8 github_url: https://github.com/ProjectPythia twitter_url: https://twitter.com/project_pythia icon_links: @@ -54,10 +56,12 @@ sphinx: launch_buttons: binderhub_url: https://binder.projectpythia.org notebook_interface: jupyterlab - extra_navbar: | - Theme by Project Pythia.

- All code in Pythia Cookbooks is licensed under Apache 2.0. All other non-code content is licensed under Creative Commons BY 4.0 (CC BY 4.0).

- logo_link: https://projectpythia.org + logo: + link: https://projectpythia.org + navbar_start: + - navbar-logo + navbar_end: + - navbar-icon-links navbar_links: - name: Home url: https://projectpythia.org @@ -70,6 +74,9 @@ sphinx: - name: Community url: https://projectpythia.org/index.html#join-us footer_logos: - NCAR: notebooks/images/logos/NCAR-contemp-logo-blue.svg + NCAR: notebooks/images/logos/NSF-NCAR_Lockup-UCAR-Dark_102523.svg Unidata: notebooks/images/logos/Unidata_logo_horizontal_1200x300.svg UAlbany: notebooks/images/logos/UAlbany-A2-logo-purple-gold.svg + footer_start: + - footer-logos + - footer-info diff --git a/_static/custom.css b/_static/custom.css new file mode 100644 index 0000000..0c9948b --- /dev/null +++ b/_static/custom.css @@ -0,0 +1,6 @@ +.bd-main .bd-content .bd-article-container { + max-width: 100%; /* default is 60em */ + } + .bd-page-width { + max-width: 100%; /* default is 88rem */ + } diff --git a/environment.yml b/environment.yml index 471ea3d..2cdc45f 100644 --- a/environment.yml +++ b/environment.yml @@ -14,19 +14,13 @@ dependencies: - xbatcher - intake-xarray - gcsfs -# -# The balance of this environment file pins several libraries in order for -# to satisfy dependencies for the sphinx-pythia-theme 2022.3.22 package. -# - - sphinx==4.5.0 - - sphinxcontrib-applehelp<1.0.7 - - sphinxcontrib-devhelp<1.0.5 - - sphinxcontrib-htmlhelp<2.0.4 - - sphinxcontrib-qthelp<1.0.6 - - sphinxcontrib-serializinghtml<1.1.9 - - pydata-sphinx-theme<=0.8 - - jsonschema-with-format-nongpl<4.19.1 - - docutils==0.16 - - pip - - pip: - - sphinx-pythia-theme + - sphinx + - sphinxcontrib-applehelp + - sphinxcontrib-devhelp + - sphinxcontrib-htmlhelp + - sphinxcontrib-qthelp + - sphinxcontrib-serializinghtml + - pydata-sphinx-theme + - jsonschema-with-format-nongpl + - docutils + - sphinx-pythia-theme diff --git a/notebooks/images/logos/NCAR-contemp-logo-blue.svg b/notebooks/images/logos/NCAR-contemp-logo-blue.svg deleted file mode 100644 index 3bcda63..0000000 --- a/notebooks/images/logos/NCAR-contemp-logo-blue.svg +++ /dev/null @@ -1 +0,0 @@ -NCAR-contemp-logo-blue.a diff --git a/notebooks/images/logos/NSF-NCAR_Lockup-UCAR-Dark_102523.svg b/notebooks/images/logos/NSF-NCAR_Lockup-UCAR-Dark_102523.svg new file mode 100644 index 0000000..538f8ec --- /dev/null +++ b/notebooks/images/logos/NSF-NCAR_Lockup-UCAR-Dark_102523.svg @@ -0,0 +1 @@ + diff --git a/notebooks/surface_currents.ipynb b/notebooks/surface_currents.ipynb index e42aecf..72c0a0c 100644 --- a/notebooks/surface_currents.ipynb +++ b/notebooks/surface_currents.ipynb @@ -71,43 +71,12 @@ "import numpy as np\n", "import xarray as xr\n", "\n", - "from intake import open_catalog\n", "from dataclasses import dataclass\n", - "from typing import Iterable" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "7371c0ae-770b-4e9d-9545-f36e045794db", - "metadata": { - "tags": [] - }, - "outputs": [], - "source": [ + "from typing import Iterable\n", + "\n", "from matplotlib import pyplot as plt\n", - "from IPython.display import clear_output" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "7edff03e-636b-4c08-85d4-2f25a9507011", - "metadata": {}, - "outputs": [], - "source": [ - "import tensorflow as tf" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "ac258fca-23fa-4b04-91d5-17e9a7606ff6", - "metadata": { - "tags": [] - }, - "outputs": [], - "source": [ + "from IPython.display import clear_output\n", + "import tensorflow as tf\n", "import xbatcher as xb" ] }, @@ -984,7 +953,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.9" + "version": "3.11.8" } }, "nbformat": 4, diff --git a/notebooks/surface_currents_model.ipynb b/notebooks/surface_currents_model.ipynb index b529848..27537c0 100644 --- a/notebooks/surface_currents_model.ipynb +++ b/notebooks/surface_currents_model.ipynb @@ -18,7 +18,19 @@ }, { "cell_type": "code", - "execution_count": 69, + "execution_count": null, + "id": "df638ba4", + "metadata": {}, + "outputs": [], + "source": [ + "import tensorflow as tf\n", + "import matplotlib.pyplot as plt\n", + "import xarray as xr" + ] + }, + { + "cell_type": "code", + "execution_count": null, "id": "c02cd823-33ca-4168-8890-7124830a1df3", "metadata": {}, "outputs": [], @@ -90,7 +102,7 @@ }, { "cell_type": "code", - "execution_count": 70, + "execution_count": null, "id": "0482c1db-9481-46c0-b4e6-164ff7f0adb6", "metadata": {}, "outputs": [], @@ -113,7 +125,7 @@ }, { "cell_type": "code", - "execution_count": 71, + "execution_count": null, "id": "5f27dbab-4e71-4228-8ec4-43d1226b22da", "metadata": {}, "outputs": [], @@ -323,7 +335,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.9" + "version": "3.11.8" } }, "nbformat": 4, diff --git a/notebooks/surface_currents_prep.ipynb b/notebooks/surface_currents_prep.ipynb index b280ddb..3ffc313 100644 --- a/notebooks/surface_currents_prep.ipynb +++ b/notebooks/surface_currents_prep.ipynb @@ -16,7 +16,18 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": null, + "id": "fe2cd2e0", + "metadata": {}, + "outputs": [], + "source": [ + "import numpy as np\n", + "from intake import open_catalog" + ] + }, + { + "cell_type": "code", + "execution_count": null, "id": "4e875cd7-9f2e-4fca-a56a-c88c76ba9ffd", "metadata": {}, "outputs": [], @@ -58,7 +69,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": null, "id": "12cbc2e1-2e65-4725-b91a-6677907584a7", "metadata": { "tags": [] @@ -101,7 +112,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": null, "id": "a7d76e1a-91b1-413f-bb52-b1bcf756041a", "metadata": {}, "outputs": [], @@ -122,7 +133,7 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": null, "id": "0c175cea-575c-44f7-adee-b9186289e9df", "metadata": {}, "outputs": [], @@ -141,7 +152,7 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": null, "id": "8096e42d-51c2-44d6-bf38-7b8360616096", "metadata": {}, "outputs": [], @@ -167,7 +178,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.9" + "version": "3.11.8" } }, "nbformat": 4,