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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use progress bar in processes #31

Open
dfguerrerom opened this issue Feb 22, 2023 · 4 comments
Open

Use progress bar in processes #31

dfguerrerom opened this issue Feb 22, 2023 · 4 comments

Comments

@dfguerrerom
Copy link
Collaborator

As it was deactivated before on #30 , we should include it again once it would be possible.

@12rambau
Copy link
Contributor

isn't it just an importation issue ? I think there are 2 ways of importing tqdm progress bar

@dfguerrerom
Copy link
Collaborator Author

oh I'm not really sure, I thought the problem was associated with ipywidgets, and that we cannot render them in voila, I will do some tests with imports.

@dfguerrerom
Copy link
Collaborator Author

dfguerrerom commented Feb 22, 2023

Is this what you meant?
I have errors when using voila in both., if I'm not wrong that's because tqdm is built on top of ipywidgets.

from tqdm.notebook import trange, tqdm
from time import sleep

for i in trange(3, desc='1st loop'):
    for j in tqdm(range(100), desc='2nd loop'):
        sleep(0.01)
from tqdm.notebook import trange
from tqdm.auto import tqdm
from time import sleep

for i in trange(3, desc='1st loop'):
    for j in tqdm(range(100), desc='2nd loop'):
        sleep(0.01)

image

image

@12rambau
Copy link
Contributor

ok that's why there's an error in all the panels of all the apps. as we embed tqdm by design in alerts, there's a JS error.

It's now on top of my priorities.

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