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

suppress tqdm warning #113

Closed
aadm opened this issue Nov 11, 2022 · 1 comment
Closed

suppress tqdm warning #113

aadm opened this issue Nov 11, 2022 · 1 comment

Comments

@aadm
Copy link
Contributor

aadm commented Nov 11, 2022

When using segysak within jupyter-lab there is an annoying warning on import issued from tdqm:

C:\Users\ag19324\Miniconda3\envs\work\lib\site-packages\segysak\segy\_segy_core.py:7: TqdmExperimentalWarning: Using `tqdm.autonotebook.tqdm` in notebook mode. Use `tqdm.tqdm` instead to force console mode (e.g. in jupyter console)
  from tqdm.autonotebook import tqdm

By modifiying line 7 in segysak/segy/_segy_core.py from

from tqdm.autonotebook import tqdm

to one of these two alternatives:

(A)

from tqdm import tqdm_notebook as tqdm

(B)

from tqdm.auto import tqdm

the warning is suppressed.

As there are two alternatives and I have no good grasp of how tqdm works I hesitate on creating a pull request.

@trhallam
Copy link
Owner

Fixed in a47bf5b, thanks for reporting an issue.

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