From 9ecd861989f345f7925632f6e6555e66c6e5e7dd Mon Sep 17 00:00:00 2001 From: Xun Li Date: Fri, 13 Aug 2021 15:07:17 -0700 Subject: [PATCH] allow height option to work in google colab --- bindings/kepler.gl-jupyter/keplergl/keplergl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/kepler.gl-jupyter/keplergl/keplergl.py b/bindings/kepler.gl-jupyter/keplergl/keplergl.py index c313015e94..31cbf496e0 100644 --- a/bindings/kepler.gl-jupyter/keplergl/keplergl.py +++ b/bindings/kepler.gl-jupyter/keplergl/keplergl.py @@ -159,7 +159,7 @@ def show(self, data=None, config=None, read_only=False, center_map=False): if "google.colab" in sys.modules: from IPython.display import HTML, Javascript display(HTML(frame_txt)) - display(Javascript("google.colab.output.setIframeHeight('500');")) + display(Javascript(f"google.colab.output.setIframeHeight('{self.height}');")) def _repr_html_(self, data=None, config=None, read_only=False, center_map=False): ''' Return current map in an html encoded string