def View(df):
    css = """<style>
    table { border-collapse: collapse; border: 3px solid 
    table tr th:first-child { background-color: 
    table thead th { background-color: 
    tr, th, td { border: 1px solid 
    padding: 3px; font-family: monospace; font-size: 10px }</style>
    """
s = '<script type="text/Javascript">'
s += (
    """var win = window.open("", "Title", "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=780, height=200, top="+(screen.height-400)+", left="+(screen.width-840));"""
    )
s += "win.document.body.innerHTML = '" + (df.to_html() + css).replace('\n',
    '\\') + "';"
s += '</script>'
return HTML(s + css)
Pop-out / expand jupyter cell to new browser window