Add DVCLIVE_OPEN env var to suppress automatic plots opening#1175
Add DVCLIVE_OPEN env var to suppress automatic plots opening#1175rogermparent wants to merge 2 commits into
Conversation
|
looks like the default will be |
🤦 You're right, using that DVC PR without this change also fixes the issue. |
|
I think that VSCode should still be forcing Users can have It's not an issue for |
Good point, I forgot that the configuration option will still affect us! I'll reopen this PR. |
|
Code Climate has analyzed commit 44e026f and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (85% is the threshold). This pull request will bring the total coverage in the repository to 96.2% (0.0% change). View more on Code Climate. |
I disagree, we should not silently change a user's config options. If they have explicitly set the config option to true then the HTML should show up. If we did force the option then we open up to a few edge cases. The main one would be a difference in behaviour between running experiments in the VS Code integrated terminal and through the extension command. One would open the HTML as expected, the other would not. I think it is unlikely that users will sometimes run experiments outside of VS Code and something inside. IMO they'll do one or the other and they should set the config options appropriately. |
|
I'm ok with whatever you decide. I could remove the env var or leave it just in case. I have a question though:
If that's the reasoning, why don't tell users to deactivate |
I would expect that there could/will be one than one user per project and the split between VS Code and straight CLI users could be any possible combination. Is the config shared between all users or specific to the user? |
Up to the user (https://dvc.org/doc/command-reference/config) depending on whether they set with |
|
So @mattseddon @rogermparent to ensure we are on the same page, can I remove the |
As long as the default behavior doesn't open the window, we should be fine. |
|
Closing again since we've decided against this |
In anticipation of treeverse/dvc#7159, this PR adds the
DVCLIVE_OPENenv var as to our execution function so that we don't automatically open a browser tab when running experiments.Fixing the tests here opened up a question: should we consolidate the
mockedEnvalways-present env vars into a single place so we only have to edit one thing when adding variables like this?