From 41911a676fcfa7f53550e411b3b761d7a0f8d1bc Mon Sep 17 00:00:00 2001 From: Brett Naul Date: Mon, 9 Sep 2019 10:55:48 -0700 Subject: [PATCH] Suppress IPython IFrame warning --- mapboxgl/viz.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mapboxgl/viz.py b/mapboxgl/viz.py index ce93f02..bdd909a 100644 --- a/mapboxgl/viz.py +++ b/mapboxgl/viz.py @@ -1,6 +1,7 @@ import codecs import json import os +import warnings from IPython.core.display import HTML, display @@ -258,7 +259,9 @@ def show(self, **kwargs): map_html = self.as_iframe(html) # Display the iframe in the current jupyter notebook view - display(HTML(map_html)) + with warnings.catch_warnings(): + warnings.simplefilter("ignore") + display(HTML(map_html)) def add_unique_template_variables(self, options): pass