Skip to content

Commit

Permalink
Resolving pre-commit-hook changes
Browse files Browse the repository at this point in the history
  • Loading branch information
erogluorhan committed Dec 1, 2023
1 parent 23a5fcb commit 2565922
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 16 deletions.
12 changes: 6 additions & 6 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,22 @@ name: unstructured-grid-viz-cookbook-dev
channels:
- conda-forge
dependencies:
- jupyter-book
- jupyterlab
- jupyter_server
- pip
# - uxarray uncomment this and remove the below pip uxarray install if Grid.plot.mesh() etc get released
- cartopy
- dask
- datashader
- geoviews
- holoviews
- hvplot
- jupyter-book
- jupyterlab
- jupyter_server
- matplotlib-base
- netcdf4
- numba
- numpy
- pandas<2.1.0
- pathlib
- pip
- pre_commit
- pyarrow<13.0.0
- pytest
Expand All @@ -28,9 +27,10 @@ dependencies:
- scipy
- shapely
# - spatialpandas # uncomment this and remove below pip install if from_exterior_coords() gets released
# - uxarray uncomment this and remove the below pip uxarray install if Grid.plot.mesh() etc get released
- xarray
- pip:
- sphinx-pythia-theme
- antimeridian
- git+https://github.com/UXARRAY/uxarray.git@philipc2/point-viz
- git+https://github.com/holoviz/spatialpandas.git
- sphinx-pythia-theme
35 changes: 25 additions & 10 deletions notebooks/03-uxarray-vis/02-grid-topology.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
{
"cell_type": "markdown",
"metadata": {
"collapsed": false
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
},
"source": [
"## Setup"
Expand All @@ -35,7 +38,10 @@
{
"cell_type": "markdown",
"metadata": {
"collapsed": false
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
},
"source": [
"### Imports"
Expand All @@ -45,7 +51,10 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
},
"outputs": [],
"source": [
Expand All @@ -61,7 +70,10 @@
{
"cell_type": "markdown",
"metadata": {
"collapsed": false
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
},
"source": [
"### Read in the data"
Expand All @@ -71,7 +83,10 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
},
"outputs": [],
"source": [
Expand All @@ -93,12 +108,12 @@
"source": [
"<div class=\"admonition alert alert-attention\">\n",
" <p class=\"admonition-title\" style=\"font-weight:bold\">How to plot through `Grid`, `UxDataset`, or `UxDataArray`?</p>\n",
" As the above `ux_grid` and `uxds` creation suggests, you may either have a `UxDataset` (or similarly `UxDataArray`), or a standalone `Grid` object. Visualization\n",
"of the geometric elements of an unstructured grid is possible in all of these cases as follows (Through `uxgrid` accessor when it is a `UxDataset` or `UxDataArray`): <br />\n",
" As the above `ux_grid` and `uxds` creation suggests, you may either have a `UxDataset` (or similarly `UxDataArray`), or a standalone `Grid` object. Visualizatio of the geometric elements of an unstructured grid is possible in all of these cases as follows (Through `uxgrid` accessor when it is a `UxDataset` or `UxDataArray`): <br />\n",
" \n",
"`uxarray.Grid.plot.plotting_function()` <br />\n",
"`uxarray.UxDataset.uxgrid.plot.plotting_function()` <br /> \n",
"`uxarray.UxDataArray.uxgrid.plot.plotting_function()` <br />\n",
" `uxarray.Grid.plot.plotting_function()` <br />\n",
" `uxarray.UxDataset.uxgrid.plot.plotting_function()` <br /> \n",
" `uxarray.UxDataArray.uxgrid.plot.plotting_function()` <br />\n",
"\n",
"We will demonstrate plotting functions using the standalone `ux_grid` thorughout this notebook.\n",
"</div>"
]
Expand Down

0 comments on commit 2565922

Please sign in to comment.