Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Use Python Extension's
getExecutionDetails
to provide venv to reader #201Use Python Extension's
getExecutionDetails
to provide venv to reader #201Changes from all commits
f8e62ba
ae75cb8
341140c
23c5e76
38dd8f2
96f4d63
4502e55
788b0d0
df67cf5
91b6ff8
286bdd1
cd324ab
e04e954
78d1f98
f388299
4bfbb56
a4a6636
a775b12
d675761
3c1c278
73f3305
1597231
f3d2d9d
a628a13
f4e3769
6dc58a4
a57fa12
f446e53
df0a3ac
f5fb440
4994041
aedb01a
a3a69b7
bd34268
ce701e7
239e5c4
551a18c
03fb001
b110507
06d4c80
ce693c7
da193c4
da11c1e
de5320c
cd689bd
42d4e87
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
[Q] Won't this mean that we won't be able to run experiments from the reader if
cliPath
is set? I.e we just bypass the virtual environment?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.
Isn't the idea to remove the
IntegratedTerminal
as a next step?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.
That's the idea, as the lack of control we have over
IntegratedTerminal
warrants a rewrite that takes advantage of the Python extension introspection to make a shell instance of dvc that we can observe and control.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.
[Q] @rogermparent what are the actual execution details? just the path to python inside the virtual environment?
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.
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.
From here in the Python extension's
src/client/api.ts
So yeah, a path to the current Python interpreter that we call with
-m
to use its binaries, or theconda run
command to get an equivalent.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.
The above screenshot demonstrates that this won't be enough to run commands that need the environment to be activated.