Created
April 9, 2019 07:05
-
-
Save Yamp/a122df6ad6a2346a8534c25dc0c6878a to your computer and use it in GitHub Desktop.
Watching your jujpyter progress in page title
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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