Skip to content

Commit 7a6c5ab

Browse files
authored
Fix flake8 errors (#80)
1 parent c02e3f0 commit 7a6c5ab

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

branca/element.py

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -333,23 +333,24 @@ def _repr_html_(self, **kwargs):
333333

334334
if self.height is None:
335335
iframe = (
336-
'<div style="width:{width};">'
337-
'<div style="position:relative;width:100%;height:0;padding-bottom:{ratio};">' # noqa
338-
'<span style="color:#565656">Make this Notebook Trusted to load map: File -> Trust Notebook</span>' # noqa
339-
'<iframe src="about:blank" style="position:absolute;width:100%;height:100%;left:0;top:0;' # noqa
340-
'border:none !important;" '
341-
'data-html={html} onload="{onload}" '
342-
'allowfullscreen webkitallowfullscreen mozallowfullscreen>'
343-
'</iframe>'
344-
'</div></div>').format
345-
iframe = iframe(html=html, onload=onload, width=self.width, ratio=self.ratio)
336+
'<div style="width:{width};">'
337+
'<div style="position:relative;width:100%;height:0;padding-bottom:{ratio};">' # noqa
338+
'<span style="color:#565656">Make this Notebook Trusted to load map: File -> Trust Notebook</span>' # noqa
339+
'<iframe src="about:blank" style="position:absolute;width:100%;height:100%;left:0;top:0;' # noqa
340+
'border:none !important;" '
341+
'data-html={html} onload="{onload}" '
342+
'allowfullscreen webkitallowfullscreen mozallowfullscreen>'
343+
'</iframe>'
344+
'</div></div>'
345+
).format(html=html, onload=onload, width=self.width, ratio=self.ratio)
346346
else:
347-
iframe = ('<iframe src="about:blank" width="{width}" height="{height}"'
348-
'style="border:none !important;" '
349-
'data-html={html} onload="{onload}" '
350-
'"allowfullscreen" "webkitallowfullscreen" "mozallowfullscreen">' # noqa
351-
'</iframe>').format
352-
iframe = iframe(html=html, onload=onload, width=self.width, height=self.height)
347+
iframe = (
348+
'<iframe src="about:blank" width="{width}" height="{height}"'
349+
'style="border:none !important;" '
350+
'data-html={html} onload="{onload}" '
351+
'"allowfullscreen" "webkitallowfullscreen" "mozallowfullscreen">'
352+
'</iframe>'
353+
).format(html=html, onload=onload, width=self.width, height=self.height)
353354
return iframe
354355

355356
def add_subplot(self, x, y, n, margin=0.05):
@@ -569,19 +570,18 @@ def render(self, **kwargs):
569570

570571
if self.height is None:
571572
iframe = (
572-
'<div style="width:{width};">'
573-
'<div style="position:relative;width:100%;height:0;padding-bottom:{ratio};">' # noqa
574-
'<iframe src="{html}" style="position:absolute;width:100%;height:100%;left:0;top:0;' # noqa
575-
'border:none !important;">'
576-
'</iframe>'
577-
'</div></div>').format
578-
iframe = iframe(html=html,
579-
width=self.width,
580-
ratio=self.ratio)
573+
'<div style="width:{width};">'
574+
'<div style="position:relative;width:100%;height:0;padding-bottom:{ratio};">' # noqa
575+
'<iframe src="{html}" style="position:absolute;width:100%;height:100%;left:0;top:0;' # noqa
576+
'border:none !important;">'
577+
'</iframe>'
578+
'</div></div>'
579+
).format(html=html, width=self.width, ratio=self.ratio)
581580
else:
582-
iframe = ('<iframe src="{html}" width="{width}" style="border:none !important;" '
583-
'height="{height}"></iframe>').format
584-
iframe = iframe(html=html, width=self.width, height=self.height)
581+
iframe = (
582+
'<iframe src="{html}" width="{width}" style="border:none !important;" '
583+
'height="{height}"></iframe>'
584+
).format(html=html, width=self.width, height=self.height)
585585
return iframe
586586

587587

0 commit comments

Comments
 (0)