Skip to content

Commit

Permalink
Fix notebooks for upcoming Jupyter env (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
tlvu authored Jun 1, 2023
2 parents ee48cd4 + 6eb9e0f commit e8a7a85
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions content/notebooks/climate_indicators/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.ipynb_checkpoints/
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,17 @@
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING:pint.util:Redefining 'percent' (<TYPE_CLASSpint.delegates.txt_defparser.plain.UnitDefinition'>)\n",
"WARNING:pint.util:Redefining '%' (<TYPE_CLASSpint.delegates.txt_defparser.plain.UnitDefinition'>)\n",
"WARNING:pint.util:Redefining 'year' (<class 'pint.delegates.txt_defparser.plain.UnitDefinition'>)\n",
"WARNING:pint.util:Redefining 'yr' (<class 'pint.delegates.txt_defparser.plain.UnitDefinition'>)\n",
"WARNING:pint.util:Redefining 'C' (<class 'pint.delegates.txt_defparser.plain.UnitDefinition'>)\n",
"WARNING:pint.util:Redefining 'd' (<class 'pint.delegates.txt_defparser.plain.UnitDefinition'>)\n",
"WARNING:pint.util:Redefining 'h' (<class 'pint.delegates.txt_defparser.plain.UnitDefinition'>)\n",
"WARNING:pint.util:Redefining 'degrees_north' (<class 'pint.delegates.txt_defparser.plain.UnitDefinition'>)\n",
"WARNING:pint.util:Redefining 'degrees_east' (<class 'pint.delegates.txt_defparser.plain.UnitDefinition'>)\n",
"WARNING:pint.util:Redefining '[speed]' (<class 'pint.delegates.txt_defparser.plain.DerivedDimensionDefinition'>)\n"
"WARNING:pint.util:Redefining '[speed]' (<class 'pint.delegates.txt_defparser.plain.DerivedDimensionDefinition'>)\n",
"WARNING:pint.util:Redefining '[radiation]' (<TYPE_CLASSpint.delegates.txt_defparser.plain.DerivedDimensionDefinition'>)\n"
]
},
{
Expand Down Expand Up @@ -841,8 +844,16 @@
}
],
"source": [
"import os\n",
"\n",
"os.environ[\"USE_PYGEOS\"] = \"0\" # force use Shapely with GeoPandas\n",
"\n",
"import warnings\n",
"\n",
"import numba\n",
"\n",
"warnings.simplefilter(\"ignore\", category=numba.core.errors.NumbaDeprecationWarning)\n",
"\n",
"import geopandas as gpd\n",
"import matplotlib.pyplot as plt\n",
"import xarray as xr\n",
Expand Down Expand Up @@ -1938,7 +1949,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.13"
"version": "3.10.11"
}
},
"nbformat": 4,
Expand Down

0 comments on commit e8a7a85

Please sign in to comment.