You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use conda run for conda environments for running python files and possibly installation #18479
Feel free to also add it in the iteration planning board. Note we should not be using the OUTPUT_MARKER_SCRIPT for running/debugging files, so add an option in this API
changed the title [-]Use `conda run` for conda environments when running python files[/-][+]Use conda run for conda environments for running python files and installing modules[/+]on Feb 14, 2022
changed the title [-]Use conda run for conda environments for running python files and installing modules[/-][+]Use conda run for conda environments for running python files[/+]on Feb 18, 2022
changed the title [-]Use conda run for conda environments for running python files[/-][+]Use conda run for conda environments for running python files and possibly installation[/+]on Feb 18, 2022
Hi~ I updated my VSCode, and found that the new version seemed to fix this bug.
However, after I run the python code, the terminal shows "run -n base --no-capture-output --live-stream python xxx.py". And the result was printed. And immediately the result was cleared. I cannot see my result!
Reacted by Xiaosong Jia, Hsiao-Chuan Chang, Yanyuandaxia, ChenChenGith and wei-0321
Activity
[-]Use `conda run` for conda environments when running python files[/-][+]Use conda run for conda environments for running python files and installing modules[/+][-]Use conda run for conda environments for running python files and installing modules[/-][+]Use conda run for conda environments for running python files[/+]karrtikr commentedon Feb 18, 2022
It turns out we cannot use
conda runfor installing modules. Reason is:conda runthen kind of double activates the environment, so the module isn't installed where it's expected.conda run, it cannot find the module.Seems like another bug on conda. (conda/conda#11305)
[-]Use conda run for conda environments for running python files[/-][+]Use conda run for conda environments for running python files and possibly installation[/+]connor4312 commentedon Feb 23, 2022
Kartik Raj (@karrtikr) are there verification steps for this?
karrtikr commentedon Feb 23, 2022
Thanks for testing:
If you need more elaboration please let me know.
rchiodo commentedon Feb 23, 2022
Debug python file doesn't use conda run? Does that matter?
Otherwise verified running uses conda run:
karrtikr commentedon Feb 24, 2022
Cool. Karthik Nadig (@karthiknadig) should this happen?
karthiknadig commentedon Feb 24, 2022
No that should not happen. we might have a bug.
fsjwlf commentedon Mar 5, 2022
Hi~ I updated my VSCode, and found that the new version seemed to fix this bug.
However, after I run the python code, the terminal shows "run -n base --no-capture-output --live-stream python xxx.py". And the result was printed. And immediately the result was cleared. I cannot see my result!
karrtikr commentedon Mar 5, 2022
Fan (@fsjwlf) Can you create a new issue for this? Thanks!