Skip to content

Commit 6af7aab

Browse files
author
Martin Journois
committed
<<Strip>> Figure._repr_html_ output
1 parent fb21cf4 commit 6af7aab

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

folium/element.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -359,12 +359,12 @@ def _repr_html_(self, **kwargs):
359359
html = "data:text/html;base64," + base64.b64encode(html.encode('utf8')).decode('utf8') # noqa
360360

361361
if self.height is None:
362-
iframe = """
363-
<div style="width:{width};">
364-
<div style="position:relative;width:100%;height:0;padding-bottom:{ratio};">
365-
<iframe src="{html}" style="position:absolute;width:100%;height:100%;left:0;top:0;">
366-
</iframe>
367-
</div></div>""".format # noqa
362+
iframe = (
363+
'<div style="width:{width};">'
364+
'<div style="position:relative;width:100%;height:0;padding-bottom:{ratio};">' # noqa
365+
'<iframe src="{html}" style="position:absolute;width:100%;height:100%;left:0;top:0;">' # noqa
366+
'</iframe>'
367+
'</div></div>').format
368368
iframe = iframe(html=html,
369369
width=self.width,
370370
ratio=self.ratio)

0 commit comments

Comments
 (0)