Skip to content

Commit

Permalink
allow height option to work in google colab
Browse files Browse the repository at this point in the history
  • Loading branch information
lixun910 committed Aug 13, 2021
1 parent 7bd2d0b commit 9ecd861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/kepler.gl-jupyter/keplergl/keplergl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9ecd861

Please sign in to comment.