Skip to content

Instantly share code, notes, and snippets.

@Yamp
Created April 9, 2019 07:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Yamp/a122df6ad6a2346a8534c25dc0c6878a to your computer and use it in GitHub Desktop.
Save Yamp/a122df6ad6a2346a8534c25dc0c6878a to your computer and use it in GitHub Desktop.
Watching your jujpyter progress in page title
import IPython.core.display as ipydi
tabber_template = """<script id="the_tabber">(() => {
setTimeout(() => document.querySelector("#the_tabber").closest(".output_area").remove());
document.title="%s";
})()</script>"""
def tab(*args):
ipydi.display(ipydi.HTML(tabber_template % " ".join(map(str, args)).replace('"','\\"')))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment