Skip to content

Commit 14f5059

Browse files
authored
Merge pull request #10 from ProjectPythia/try_updated_theme
Start using the updated Pythia theme
2 parents 58cf488 + 5eb9958 commit 14f5059

15 files changed

+7706
-480
lines changed

_config.yml

+14-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: Unstructured Grids Visualization Cookbook
55
description: Comprehensive showcase of workflows and techniques for visualizing Unstructured Grids using UXarray
66
author: the <a href="https://projectpythia.org/">Project Pythia</a> Community
77
logo: notebooks/images/logos/pythia_logo-white-rtext.svg
8-
copyright: "2023"
8+
copyright: "2024"
99

1010
execute:
1111
# To execute notebooks via a Binder instead, replace 'cache' with 'binder'
@@ -41,7 +41,9 @@ sphinx:
4141
use_issues_button: true
4242
use_repository_button: true
4343
use_edit_page_button: true
44-
google_analytics_id: G-T52X8HNYE8
44+
use_fullscreen_button: true
45+
analytics:
46+
google_analytics_id: G-T52X8HNYE8
4547
github_url: https://github.com/ProjectPythia
4648
twitter_url: https://twitter.com/project_pythia
4749
icon_links:
@@ -55,7 +57,12 @@ sphinx:
5557
extra_navbar: |
5658
Theme by <a href="https://projectpythia.org">Project Pythia</a>.<br><br>
5759
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>
58-
logo_link: https://projectpythia.org
60+
logo:
61+
link: https://projectpythia.org
62+
navbar_start:
63+
- navbar-logo
64+
navbar_end:
65+
- navbar-icon-links
5966
navbar_links:
6067
- name: Home
6168
url: https://projectpythia.org
@@ -68,6 +75,9 @@ sphinx:
6875
- name: Community
6976
url: https://projectpythia.org/index.html#join-us
7077
footer_logos:
71-
NCAR: notebooks/images/logos/NCAR-contemp-logo-blue.svg
78+
NCAR: notebooks/images/logos/NSF-NCAR_Lockup-UCAR-Dark_102523.svg
7279
Unidata: notebooks/images/logos/Unidata_logo_horizontal_1200x300.svg
7380
UAlbany: notebooks/images/logos/UAlbany-A2-logo-purple-gold.svg
81+
footer_start:
82+
- footer-logos
83+
- footer-info

_static/custom.css

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.bd-main .bd-content .bd-article-container {
2+
max-width: 100%; /* default is 60em */
3+
}
4+
.bd-page-width {
5+
max-width: 100%; /* default is 88rem */
6+
}

environment.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@ dependencies:
1515
- netcdf4
1616
- numba
1717
- numpy
18-
- pandas<2.1.0
18+
- pandas
1919
- pathlib
2020
- pip
2121
- pre_commit
22-
- pyarrow<13.0.0
22+
- pyarrow
2323
- pytest
2424
- pytest-cov
25-
- python>=3.9,<3.12
2625
- requests
2726
- scikit-learn
2827
- scipy
2928
- shapely
30-
- spatialpandas
29+
- spatialpandas
30+
- sphinx-pythia-theme
3131
- uxarray
3232
- xarray
3333
- pip:
3434
- antimeridian
35-
- sphinx-pythia-theme
35+
- git+https://github.com/UXARRAY/uxarray.git@main #until UXarray's March or April release

notebooks/01-intro/01-unstructured-grid-overview.ipynb

+24-7
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@
2727
"4. Why UXarrary for unstructured grids?"
2828
]
2929
},
30+
{
31+
"cell_type": "markdown",
32+
"metadata": {
33+
"collapsed": false,
34+
"jupyter": {
35+
"outputs_hidden": false
36+
}
37+
},
38+
"source": []
39+
},
3040
{
3141
"cell_type": "markdown",
3242
"metadata": {},
@@ -240,9 +250,13 @@
240250
"cell_type": "markdown",
241251
"metadata": {},
242252
"source": [
243-
":::{note}\n",
244-
"This is a very basic example of an unstructured grid with triangles. There are very specialized libraries to create unstructured grids. Often the region of interest is meshed with a finer resolution. The mesh is then coarsened in areas where the resolution is not needed. This is done to reduce the number of elements and improve computational efficiency.\n",
245-
":::"
253+
"<div class=\"admonition alert alert-info\">\n",
254+
" <p class=\"admonition-title\" style=\"font-weight:bold\">Note:</p>\n",
255+
" This is a very basic example of an unstructured grid with triangles. There are very specialized libraries to create\n",
256+
" unstructured grids. Often the region of interest is meshed with a finer resolution. The mesh is then coarsened in\n",
257+
" areas where the resolution is not needed. This is done to reduce the number of elements and improve computational\n",
258+
" efficiency.\n",
259+
"</div>"
246260
]
247261
},
248262
{
@@ -272,9 +286,12 @@
272286
"cell_type": "markdown",
273287
"metadata": {},
274288
"source": [
275-
":::{note}\n",
276-
"This notebook serves as an introduction to unstructured grids and UXarray. For more information, please visit the UXarray documentation at https://uxarray.readthedocs.io/en/latest/ and specifically see the example section: https://uxarray.readthedocs.io/en/latest/examples.html\n",
277-
":::"
289+
"<div class=\"admonition alert alert-info\">\n",
290+
" <p class=\"admonition-title\" style=\"font-weight:bold\">Note:</p>\n",
291+
" This notebook serves as an introduction to unstructured grids and UXarray. For more information, please visit the\n",
292+
" <a href=\"https://uxarray.readthedocs.io/en/latest/\">UXarray documentation</a> and specifically see the \n",
293+
" <a href=\"https://uxarray.readthedocs.io/en/latest/examples.html\">Usage examples</a> section.\n",
294+
"</div>"
278295
]
279296
},
280297
{
@@ -302,7 +319,7 @@
302319
"name": "python",
303320
"nbconvert_exporter": "python",
304321
"pygments_lexer": "ipython3",
305-
"version": "3.11.6"
322+
"version": "3.12.2"
306323
},
307324
"nbdime-conflicts": {
308325
"local_diff": [

notebooks/02-methods/01-plotting-libraries.ipynb

+22-13
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@
1616
"cell_type": "markdown",
1717
"metadata": {},
1818
"source": [
19-
":::{note}\n",
20-
"The following design diagram is actually provided in the [Plotting API](../03-uxarray-vis/01-plot-api.ipynb) section along with key takeaways about it. We highly recommend to check them out as well.\n",
21-
":::"
19+
"<div class=\"admonition alert alert-info\">\n",
20+
" <p class=\"admonition-title\" style=\"font-weight:bold\">Note:</p>\n",
21+
" The following design diagram is actually provided in the <a href=\"../03-uxarray-vis/01-plot-api.ipynb\">Plotting\n",
22+
" API</a> section along with key takeaways about it. We highly recommend to check them out as well.\n",
23+
"</div>"
2224
]
2325
},
2426
{
@@ -69,9 +71,13 @@
6971
"cell_type": "markdown",
7072
"metadata": {},
7173
"source": [
72-
":::{important}\n",
73-
"UXarray takes care of the vital tasks such as recognizing unstructured grids from various formats (such as UGRID, MPAS, Scrip, Exodus, etc.) and representing them in a unified UGRID-like format, providing the data structures and functionality necessary for convenient preprocessing of the grid, and wrapping up HoloViz packages' functionality to enable unstructured grids-specialized, high-level visualization functions.\n",
74-
":::"
74+
"<div class=\"admonition alert alert-warning\">\n",
75+
" <p class=\"admonition-title\" style=\"font-weight:bold\">Important!</p>\n",
76+
" UXarray takes care of the vital tasks such as recognizing unstructured grids from various formats (such as UGRID,\n",
77+
" MPAS, Scrip, Exodus, etc.) and representing them in a unified UGRID-like format, providing the data structures and\n",
78+
" functionality necessary for convenient preprocessing of the grid, and wrapping up HoloViz packages' functionality to\n",
79+
" enable unstructured grids-specialized, high-level visualization functions.\n",
80+
"</div>"
7581
]
7682
},
7783
{
@@ -99,9 +105,10 @@
99105
"cell_type": "markdown",
100106
"metadata": {},
101107
"source": [
102-
":::{important}\n",
103-
"UXarray allows both Matplotlib and Bokeh backends to be chosen in visualization functions as they are provided by Holoviews (in addition to Plotly).\n",
104-
":::"
108+
"<div class=\"admonition alert alert-info\">\n",
109+
" <p class=\"admonition-title\" style=\"font-weight:bold\">Note:</p>\n",
110+
" UXarray allows both Matplotlib and Bokeh backends to be chosen in visualization functions as they are provided by Holoviews (in addition to Plotly).\n",
111+
"</div>"
105112
]
106113
},
107114
{
@@ -207,9 +214,11 @@
207214
"cell_type": "markdown",
208215
"metadata": {},
209216
"source": [
210-
":::{warning}\n",
211-
"While these conversion functions have already been released, we have observed some issues with the resulting Matplotlib plots after the exceution of these functions, and the bug-fixing of that is WIP. Hence, we don't have an officially released documentation/example about these functions yet.\n",
212-
":::"
217+
"<div class=\"admonition alert alert-warning\">\n",
218+
" <p class=\"admonition-title\" style=\"font-weight:bold\">Warning!</p>\n",
219+
" While these conversion functions have already been released, we have observed some issues with the resulting Matplotlib plots after the exceution of\n",
220+
" these functions, and the bug-fixing of that is WIP. Hence, we don't have an officially released documentation/example about these functions yet.\n",
221+
"</div>"
213222
]
214223
},
215224
{
@@ -255,7 +264,7 @@
255264
"name": "python",
256265
"nbconvert_exporter": "python",
257266
"pygments_lexer": "ipython3",
258-
"version": "3.11.6"
267+
"version": "3.12.2"
259268
},
260269
"nbdime-conflicts": {
261270
"local_diff": [

0 commit comments

Comments
 (0)