mars
mars copied to clipboard
Optimize the display of task process bar
What do these changes do?
- Optimize the display of task process bar With the optimization of task process bar, it will print as follows when running the codes:
import mars
import mars.tensor as mt
import mars.dataframe as md
mars.new_session()
df = md.DataFrame(
mt.random.randint(1, 100, size=(1000, 10), chunk_size=(130, 5)),
columns=list("ABCDEFGHIJ"),
)
df.describe().execute()
6%|████▎ | 5.92/100 [00:02<00:15, 5.91it/s]
21%|███████████████▍ | 21.07/100 [00:03<00:06, 11.34it/s]
33%|███████████████████████▉ | 32.76/100 [00:04<00:05, 11.49it/s]
58%|██████████████████████████████████████████ | 57.58/100 [00:06<00:03, 11.88it/s]
70%|███████████████████████████████████████████████████▎ | 70.27/100 [00:07<00:02, 12.15it/s]
84%|█████████████████████████████████████████████████████████████▌ | 84.27/100 [00:08<00:01, 12.75it/s]
100%|█████████████████████████████████████████████████████████████████████████| 100.00/100 [00:08<00:00, 11.47it/s]
- Remove unnecessary metric initialization in ray communication #3233 has implemented lazy initialization of metrics ,so it's not necessary to initialize it in ray communication.
Related issue number
Fixed #3263
Fixes #xxxx
Check code requirements
- [ ] tests added / passed (if needed)
- [ ] Ensure all linting tests pass, see here for how to run them