-
Notifications
You must be signed in to change notification settings - Fork 37
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
studio: Don't skip data event if _inside_dvc_exp
.
#471
Conversation
Workaround #397 for live experiments with `dvc exp run`. Allows to send live experiment updates when running inside `dvc exp run` and DVC is not available as a Python library.
Codecov ReportBase: 95.71% // Head: 95.96% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #471 +/- ##
==========================================
+ Coverage 95.71% 95.96% +0.24%
==========================================
Files 37 37
Lines 2336 2355 +19
Branches 196 196
==========================================
+ Hits 2236 2260 +24
+ Misses 61 57 -4
+ Partials 39 38 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Does it work for
Can we better clarify in the code or tests that this is what it's for? It took me a bit to understand how |
No
Yes, we should do that. Addressing it should also improve the warnings as the current warning is misleading when DVC is not available as a lib. |
Will just do it in this P.R. |
To add on this, I just feel like we should not support live experiments with |
354b923
to
b0a2d44
Compare
Let's discuss in #474 😄 |
@daavoo Is it ready for another review? |
src/dvclive/live.py
Outdated
from ruamel.yaml.representer import RepresenterError | ||
|
||
from . import env | ||
from .dvc import ( | ||
dvc_installed, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: name is a bit misleading ... dvc_lib_available
?
9002f3a
to
3ed7b2f
Compare
@dberenbaum yes |
try: | ||
from dvc_studio_client.env import STUDIO_TOKEN | ||
from dvc_studio_client.post_live_metrics import post_live_metrics | ||
except ImportError: | ||
post_live_metrics = None | ||
STUDIO_TOKEN = None | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated but dvc_studio_client
has been in install_requires
of dvclive for a while
A couple questions:
|
3ed7b2f
to
1f6b9bd
Compare
Done.
Let's discuss in the issue |
Closing in favor of #481 |
Workaround #397 for live experiments with
dvc exp run
.Closes #473
Allows to send
data
updates when running insidedvc exp run
and DVC is not available as a Python library.