Until yesterday, my VSC worked fine. I opened, edited, and run my python scripts without a problem.
However since today when I start my VSC session, it starts on Powershell Terminal, that doesn't recognize my conda enviroment despite I set the default terminal as cmd:
When I open the cmd terminal manually, automatically loads my conda env, however when I run the command "Run Python File in terminal" it always opens on Powershell
Any suggestion on how to fix this?
Related
Currently have to manually write source ./zshrc to get my zsh plugins to work within the vscode terminal window, however I dont have this issue if I open a zsh shell outside of vscode. I am using Debian on wsl2.
In terminal I get proper syntax example (due to a plugin)
However in vscode I dont unless i run source ./zshrc
As seen here:
Somehow, at some point, I set the command to execute when a new terminal in vscode is opened and I can't figure out where it is set. I have checked vscode settings.json (global and local) with no luck. This command is not executed when starting a new bash, but after it is initialized, that is, I see the command as below:
norbert#DESKTOP-2E05HS2:/mnt/c/Users/Norbert/Desktop$ conda activate user
When I type bash in the console to open a new shell, this command is not executed. This only happens when I open a new terminal via vscode.
Any ideas?
BR
Norbert
I am able to run streamlit and python on Anaconda cmd prompt on a separte window, but I can't get the streamlit to run on the VSCODE terminal (python runs fine). When I type in streamlit in the terminal, it generates a message saying
'streamlit' is not recognized as an internal or external command,
operable program or batch file.
I am guessing if I can get my VSCode terminal to run as Anaconda prompt, it should run streamlit without an error, as I am able to run streamlit on a separate Anaconda prompt outside of VSCode.
I am using Python 3.9.5 64-bit as my interpreter on VSCode and selected Command Prompt for my terminal option. I am on Windows environment.
I tried selecting Python 3.8.5 ('base') as my interpreter, but it threw the same message. Here is the image of the options I have for interpreter.
I had to create a new command prompt on VSCode that's using 3.8.5 ('base': conda) as my interpreter in order to successfully run streamlit!!
For months I have been using Git Bash as my default terminal. Upon start up it loads 1 terminal plus any additional terminals as defined in my "terminals.json" file using the "Terminals Manager" extension. Everything has been working fine up until today, when I opened vscode up and it launched powershell instead of Git Bash for all my terminals. I have restarted vscode, and also restarted my pc but that did not help.
As mentioned above it is my default profile:
And here are my settings:
Also btw I can still run bash on vscode and it works just fine, however it won't run on start up anymore.
Any idea what is happening?
If I'm in my terminal and open a file with the code command, vscode will launch and the terminal inside code will show my full zsh setup that I have configured in hyper terminal. But if I open up code through windows, and select wsl as my default shell, it's pretty much useless. Anything I try, like sudo, git, apt, etc will return a command not found message.
So if I want to commit any changes in the terminal inside code then I have to use the git bash shell. Is it possible to get my zsh working without first launching from my terminal emulator so I'm using wsl instead of git bash?
running wslconfig.exe /list in powershell showed me that WSL was set to docker as the default shell, so then running wslconfig.exe /setdefault "Ubuntu" in powershell fixed my problem.