Skip to content
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

Not possible to select conda environment to run with #54

Open
simaosr opened this issue Nov 16, 2023 · 2 comments
Open

Not possible to select conda environment to run with #54

simaosr opened this issue Nov 16, 2023 · 2 comments

Comments

@simaosr
Copy link

simaosr commented Nov 16, 2023

When I profile a script, it always calls python from a specific conda environment, which is always the one selected for the workspace.

It would be nice if austin could be run with environment assigned to the script being profiled.

If it is not possible, how can I define the environment it uses (where can I specify the default python path)?

Thank you.

@P403n1x87
Copy link
Owner

When I profile a script, it always calls python from a specific conda environment, which is always the one selected for the workspace.

Indeed the extension infers the Python executable to invoke on the basis of the Python interpreter selected for the Python extension

It would be nice if austin could be run with environment assigned to the script being profiled.

Ah I didn't know it was possible to assign an interpreter/environment to a script. In theory it should be possible to use this environment instead, but I'm not sure where that information would be coming from.

If it is not possible, how can I define the environment it uses (where can I specify the default python path)?

I think for now the solution would be to use an Austin task and pass the path to the python executable within the desired environment via the args property.

@simaosr
Copy link
Author

simaosr commented Nov 16, 2023

They can be assigned to workspace and individual folders in the workspace (not individual scripts as I wrote before).

I don't know if this helps, but I found this: https://github.com/microsoft/vscode-python/wiki/Setting-descriptions#pythondefaultinterpreterpath

I will try to do it with a task.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants