Skip to content

Commit

Permalink
Merge pull request #14 from jukent/main
Browse files Browse the repository at this point in the history
new theme
  • Loading branch information
jukent authored Apr 3, 2024
2 parents 45a060e + 5ba6296 commit 82d9f50
Show file tree
Hide file tree
Showing 9 changed files with 73 additions and 70 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ __pycache__/
# Distribution / packaging
.Python
build/
_build/
notebooks/_build/
develop-eggs/
dist/
Expand Down Expand Up @@ -128,3 +129,6 @@ dmypy.json

# Pyre type checker
.pyre/

# IDEs
.vscode/
21 changes: 14 additions & 7 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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:
Expand All @@ -54,10 +56,12 @@ sphinx:
launch_buttons:
binderhub_url: https://binder.projectpythia.org
notebook_interface: jupyterlab
extra_navbar: |
Theme by <a href="https://projectpythia.org">Project Pythia</a>.<br><br>
All code in Pythia Cookbooks is licensed under Apache 2.0. All other non-code content is licensed under <a href="https://creativecommons.org/licenses/by/4.0/">Creative Commons BY 4.0 (CC BY 4.0)</a>.<br><br>
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
Expand All @@ -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
6 changes: 6 additions & 0 deletions _static/custom.css
Original file line number Diff line number Diff line change
@@ -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 */
}
26 changes: 10 additions & 16 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion notebooks/images/logos/NCAR-contemp-logo-blue.svg

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 5 additions & 36 deletions notebooks/surface_currents.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
},
Expand Down Expand Up @@ -984,7 +953,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.9"
"version": "3.11.8"
}
},
"nbformat": 4,
Expand Down
20 changes: 16 additions & 4 deletions notebooks/surface_currents_model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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": [],
Expand Down Expand Up @@ -90,7 +102,7 @@
},
{
"cell_type": "code",
"execution_count": 70,
"execution_count": null,
"id": "0482c1db-9481-46c0-b4e6-164ff7f0adb6",
"metadata": {},
"outputs": [],
Expand All @@ -113,7 +125,7 @@
},
{
"cell_type": "code",
"execution_count": 71,
"execution_count": null,
"id": "5f27dbab-4e71-4228-8ec4-43d1226b22da",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -323,7 +335,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.9"
"version": "3.11.8"
}
},
"nbformat": 4,
Expand Down
23 changes: 17 additions & 6 deletions notebooks/surface_currents_prep.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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": [],
Expand Down Expand Up @@ -58,7 +69,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": null,
"id": "12cbc2e1-2e65-4725-b91a-6677907584a7",
"metadata": {
"tags": []
Expand Down Expand Up @@ -101,7 +112,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": null,
"id": "a7d76e1a-91b1-413f-bb52-b1bcf756041a",
"metadata": {},
"outputs": [],
Expand All @@ -122,7 +133,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": null,
"id": "0c175cea-575c-44f7-adee-b9186289e9df",
"metadata": {},
"outputs": [],
Expand All @@ -141,7 +152,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": null,
"id": "8096e42d-51c2-44d6-bf38-7b8360616096",
"metadata": {},
"outputs": [],
Expand All @@ -167,7 +178,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.9"
"version": "3.11.8"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 82d9f50

Please sign in to comment.