Skip to content

Commit 76dc9f2

Browse files
committed
Suppress cartopy warnings in landing-page notebook
1 parent f18a50b commit 76dc9f2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

landing-page.ipynb

+7-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
{
1414
"cell_type": "code",
15-
"execution_count": 2,
15+
"execution_count": 1,
1616
"id": "356d3fba",
1717
"metadata": {
1818
"tags": [
@@ -34,6 +34,11 @@
3434
}
3535
],
3636
"source": [
37+
"# Suppress warnings issued by Cartopy when downloading data files\n",
38+
"import warnings\n",
39+
"\n",
40+
"warnings.filterwarnings('ignore')\n",
41+
"\n",
3742
"import matplotlib.pyplot as plt\n",
3843
"from cartopy import crs as ccrs, feature as cfeature\n",
3944
"\n",
@@ -46,7 +51,7 @@
4651
"ax.coastlines()\n",
4752
"ax.add_feature(cfeature.BORDERS, linewidth=0.5, edgecolor='blue')\n",
4853
"\n",
49-
"ax.stock_img();\n"
54+
"ax.stock_img();"
5055
]
5156
},
5257
{

0 commit comments

Comments
 (0)