示例#1
0
文件: __init__.py 项目: zkan/bonobo
def _repr_html_():
    """This allows to easily display a version snippet in Jupyter."""
    from bonobo.commands.version import get_versions

    return ('<div style="padding: 8px;">'
            '  <div style="float: left; width: 20px; height: 20px;">{}</div>'
            '  <pre style="white-space: nowrap; padding-left: 8px">{}</pre>'
            "</div>").format(__logo__, "<br/>".join(get_versions(all=True)))
示例#2
0
def _repr_html_():
    """This allows to easily display a version snippet in Jupyter."""
    from bonobo.util.pkgs import bonobo_packages
    from bonobo.commands.version import get_versions

    return (
        '<div style="padding: 8px;">'
        '  <div style="float: left; width: 20px; height: 20px;">{}</div>'
        '  <pre style="white-space: nowrap; padding-left: 8px">{}</pre>'
        '</div>'
    ).format(
        __logo__, '<br/>'.join(get_versions(all=True))
    )