-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
★ Enviroment sensitive progress bar
Is your feature request related to a problem? Please describe.
For now the progress bar we used is for notebook
Line 21 in 640a24f
| from tqdm.notebook import tqdm |
If we use this in non-frontend situation, this can break.
Describe the solution you'd like
create a function def is_jupyter() -> bool: to return is this environment jupyter
Then we can import progressbar correctly
if is_jupyter():
from tqdm.notebook import tqdm
else:
from tqdm import tqdmAdditional context
of course, mostly, our code will run in jupyter, so this issue isn't very pressing
is_jupyter(), I've tried on other projects. This function is harder than I thought, in many cases it can return wrong value
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers