This file contains 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
{{! Markdown-friendly Docstring Template }} | |
{{summaryPlaceholder}} | |
{{#parametersExist}} | |
### Parameters | |
{{#args}} | |
`{{var}}` : `{{type}}` | |
{{descriptionPlaceholder}} | |
{{/args}} | |
{{#kwargs}} |
This file contains 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
from IPython.display import HTML, display | |
def update_progress(value, max=1): | |
return HTML(""" | |
<progress | |
value='{value}' | |
max='{max}', | |
style='width: 100%' | |
> | |
{value} |
This file contains 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 sys | |
def update_progress(progress, prefix='Progress', suffix=''): | |
bar_len = 60 | |
filled_len = int(round(bar_len * progress)) | |
perc = round(100.0 * progress, 1) | |
bar = '█' * filled_len + '-' * (bar_len - filled_len) | |
ending_char = '\r' if progress != 1 else '\n' |
This file contains 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
{"lastUpload":"2020-02-10T14:52:58.795Z","extensionVersion":"v3.4.3"} |