-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
torchvision data downloader aborts if ipywidgets are not available #3284
Comments
@jaintj95 which version of tqdm deepnote provides ? |
@vfdev-5 From my environment it seems tqdm version 4.55.1 |
CC @jakubzitny |
We normally have a fall-back from PyTorch that if The problem here is that |
Actually, let me clarify it. There are already some ideas in this thread: tqdm/tqdm#619 |
@jakubzitny If I understand correctly, tqdm does not work with deepnote no matter the package using it, right ? I think disabling/uninstalling tqdm in the environment may be a better solution... |
If this is possible, I agree that this should be the way forward. Otherwise we might need to add some way (for example an environment variable) to disable the use of |
Based on my limited knowledge I tried most of the solutions listed on the linked thread but they don't seem to work. |
@jaintj95 a solution like tqdm/tqdm#619 (comment) should help , as it disables the tqdm bar IIUC. If this doesn't work, it might be because PyTorch now defaults to importing |
Thanks. I've already tried the solution you linked. It doesn't work. Let me see if I can figure out the patch. |
🐛 Bug
I am testing some PyTorch code in Deepnote and the following call to torchvision aborts since the environment doesn't support ipywidgets
test_data = torchvision.datasets.MNIST('../data', train=False, download=True, transform=local_transforms)
To Reproduce
Check the following notebook - https://deepnote.com/project/0b12c588-a1de-4d66-bb0f-fa6b8f9b1b87
Expected behavior
Maybe a check can be added that skips call to tqdm if it's not available?
cc @pmeier
The text was updated successfully, but these errors were encountered: