formulahendry / formulahendry/vscode-code-runner

code-runner run before loading environment

Open
#434 2 comments 4 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.4k
Forks
351
PR merge metrics
No merged PRs in 30d

Description

Dear community,

I have Anaconda Python and a virtual environment MYENV inside of it. When trying to run the file using Code-Runner (in terminal or in the built-in terminal) I got an error because Code-runner runs before source and conda activate MYENV, i.e., It runs in the following order:

```
cd "/Users//.../
python3 -u "/Users//.../app.py
source /Users//anaconda3/bin/activate
conda activate MYENV

```
How can I tell to vscode or code-runner to run in the correct order??:

```
source /Users//anaconda3/bin/activate
conda activate MYENV
cd "/Users//.../
python3 -u "/Users//.../app.py
```
I'm running the latest version of vscode with the Code-Runner and Anaconda( with Python respectively) extensions in MacOS.

Thanks in advance!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.