@@ -333,23 +333,24 @@ def _repr_html_(self, **kwargs):
333
333
334
334
if self .height is None :
335
335
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 )
346
346
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 )
353
354
return iframe
354
355
355
356
def add_subplot (self , x , y , n , margin = 0.05 ):
@@ -569,19 +570,18 @@ def render(self, **kwargs):
569
570
570
571
if self .height is None :
571
572
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 )
581
580
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 )
585
585
return iframe
586
586
587
587
0 commit comments