Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

View Marimo progress bars in terminal #1194

Open
twrightsman opened this issue Apr 22, 2024 · 1 comment
Open

View Marimo progress bars in terminal #1194

twrightsman opened this issue Apr 22, 2024 · 1 comment

Comments

@twrightsman
Copy link

Description

See any mo.status.progress_bars also in the terminal, like tqdm.

Suggested solution

Not quite sure how this would be implemented 馃檪

Alternative

No response

Additional context

No response

@mscolnick
Copy link
Contributor

mscolnick commented Apr 22, 2024

we don't really have a pattern internally with our plugins/utils for displaying for UI vs for the terminal.

you can build this in your own notebook, using mo.running_in_notebook.

You could do something like:

my_list = mo.status.status.progress_bar(list)
if not mo.running_in_notebook():
  my_list = tqdm(my_list)

for i in my_list:

(i havent tested the above, so might have some typos)

If you have a good pattern for this, it would be great to bring this back into core, if you are open to contributing it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants