i am trying to use jupyter notebooks from vs code and installed jupyter notebook extension and i am using (base)conda environment for execution. while this happened
Erro
I had exactly the same problem when I installed Visual Studio Code and tried to run some Python code from a jupyter notebook on my fresh Ubuntu 18.04.
How I solved it:
1) Press Command+Shift+P
to open a new command pallete
2) Type >Python: Select Intepreter to start jupyter notebook server
3) Open the notebook again
And it worked fine. Hope it works for you.
Making sure that in VS Code settings.json
"python.condaPath": "C:\\Program Files\\miniconda3\\Scripts\\conda.exe"
is pointing to the correct directory. It solved it for me.
just fix this by add
"python.terminal.activateEnvironment": false,
to settings.json
hopes this help.
In my case, I had the server working in 3.7.6, but i wanted to use >3.8.0 versions too. After multiple attempts, which failed, I decided to:
I hope this helps too! Cheers!