File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments