File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -306,20 +306,21 @@ def _repr_html_(self, **kwargs):
306
306
307
307
Parameters
308
308
----------
309
+
309
310
"""
310
311
html = self .render (** kwargs )
311
312
html = "data:text/html;base64," + base64 .b64encode (html .encode ('utf8' )).decode ('utf8' ) # noqa
312
313
313
314
if self .height is None :
314
- iframe = ( """
315
+ iframe = """
315
316
<div style="width:{width};">
316
317
<div style="position:relative;width:100%;height:0;padding-bottom:{ratio};">
317
318
<iframe src="{html}" style="position:absolute;width:100%;height:100%;left:0;top:0;">
318
319
</iframe>
319
- </div></div>""" ) # noqa
320
- iframe . format (html = html ,
321
- width = self .width ,
322
- ratio = self .ratio )
320
+ </div></div>""" . format # noqa
321
+ iframe = iframe (html = html ,
322
+ width = self .width ,
323
+ ratio = self .ratio )
323
324
else :
324
325
iframe = ('<iframe src="{html}" width="{width}" '
325
326
'height="{height}"></iframe>' ).format
You can’t perform that action at this time.
0 commit comments