Ejemplo n.º 1
0
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)))
Ejemplo n.º 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))
    )