-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
JupyterNotebook hangs when using DVC #8387
Comments
The hang is in the built in python Are you using multiprocessing? It looks like it could be this issue: https://bugs.python.org/issue42097 |
Hi @pmrowla , I'm @zanussbaum 's colleague and I believe our problem has to do with logging handlers added by tensorflow (the Specifically, this can be narrowed down to the handlers added by tensorflow like so:
This is with python 3.8.13, tensorflow 2.8.0, dvc 2.27.2. |
That sounds like this is probably a tensorflow (or |
@pmrowla it looks like an interaction between colorama, tensorflow/absl, and Jupyter.
works fine, but
hangs with the same stack trace. |
@dg-carolyn if you import dvc before importing tensorflow (so colorama+dvc logging is init'ed before absl logging) do you get the same behavior |
I can reproduce by opening a jupyter notebook and running:
@pmrowla It does not hang if I reverse the imports. |
To fix it without debugging the underlying tensorflow and colorama issues, it seems like the easiest thing to do is to move |
Bug Report
Description
We have been using
dvc
and it's been working great for our package. However, if we try to use our package (which usesdvc
to pull data for us internally) in a Jupyter Notebook, it hangs forever. We have seen that this is wheredvc
seems to hangHow can we avoid this hanging in Jupyter?
The text was updated successfully, but these errors were encountered: