d2py.tools.sanstyle.display.html#

Module Contents#

Classes#

Embed

Generic class to embed an embed in an IPython notebook

Attributes#

element_template

frame_template

class d2py.tools.sanstyle.display.html.Embed(src, height, width='100%', className='w3-card w3-pale-blue', typeName='text/html', **kwargs)[源代码]#

Generic class to embed an embed in an IPython notebook

_embed = '<embed type="{typeName}" class="{className}" width="{width}" height="{height}" src="{src}{params}">'#
_repr_html_()[源代码]#

return the embed iframe

d2py.tools.sanstyle.display.html.element_template#
d2py.tools.sanstyle.display.html.frame_template#