Skip to content

Commit

Permalink
emoji bars
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Apr 4, 2022
1 parent 7994aa8 commit bf6c960
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ dependencies:
- wheel # `setup.py bdist_wheel`
# `cd docs && pymake`
- mkdocs-material
- pydoc-markdown >=4.6.0
- pydoc-markdown
- pygments
- pymdown-extensions
- pip:
Expand Down
8 changes: 6 additions & 2 deletions tqdm/contrib/slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,13 @@ def display(self, **kwargs):
fmt = self.format_dict
if fmt.get('bar_format', None):
fmt['bar_format'] = fmt['bar_format'].replace(
'<bar/>', '{bar:10u}').replace('{bar}', '{bar:10u}')
'<bar/>', '`{bar:10}`').replace('{bar}', '`{bar:10u}`')
else:
fmt['bar_format'] = '{l_bar}{bar:10u}{r_bar}'
fmt['bar_format'] = '{l_bar}`{bar:10}`{r_bar}'
if fmt['ascii'] is False:
fmt['ascii'] = [":black_square:", ":small_blue_diamond:", ":large_blue_diamond:",
":large_blue_square:"]
fmt['ncols'] = 336
self.sio.write(self.format_meter(**fmt))

def clear(self, *args, **kwargs):
Expand Down

0 comments on commit bf6c960

Please sign in to comment.