Skip to content

Commit 52b84d5

Browse files
committed
fix: disable warning
1 parent d4047d6 commit 52b84d5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

portal/metrics.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ import matplotlib.cm as cm
2020
import matplotlib.colors as colors
2121
import matplotlib.pyplot as plt
2222
import numpy as np
23+
import warnings
24+
2325
from google.analytics.data_v1beta import BetaAnalyticsDataClient
2426
from google.analytics.data_v1beta.types import DateRange, Dimension, Metric, RunReportRequest
2527
@@ -263,6 +265,9 @@ plot_top_pages(PORTAL_ID, FOUNDATIONS_ID, COOKBOOKS_ID)
263265
```{code-cell} python3
264266
:tags: [remove-cell]
265267
268+
# Disable cartopy warning
269+
warnings.filterwarnings('ignore', category=cartopy.DownloadWarning)
270+
266271
def _run_usersXcountry_report(property_id):
267272
"""
268273
Function for requesting users by country for a project.

0 commit comments

Comments
 (0)