Jupyter Notebooks or VS Code?
Integrating Python and Jupyter Notebook with Visual Studio Code - Stack Overflow
Setting up and integrating Jupyter Notebook development environment with VSC
I use vs code, but some suggest me to use Jupyter notebook, becasue it will be helpful for data visualization and etc.. Is it true? People who use Jupyter Nb, should I shift of Jnb?
Videos
Hi All! For someone who is a beginner and learning Python (with the goal of becoming a Data Scientist), would you recommend starting with VS Code or Jupyter Notebooks?
I've heard that Jupyter Notebooks is ideal for data science, however, I also hear that VS Code has a good debugger which will be useful for someone new to Python.
Does it matter which I use?
What do folks recommend?
VS Code has prompted you to install the suggested extension. Python and Jupyter.

Also it helps to make sure your vscode is up to date.
The play button of the interface is provided by Jupyter, but if you want to run the code (select the kernel), you must also install the Python extension.
It’s a condition box. I clicked: “Yes”.
You don't have to click Yes because there is a time delay. By the time you click Yes, the environment may not be ready.
If you are using a virtual environment, you can select the virtual environment's interpreter and then create a new terminal to activate the environment.
Complete creation steps:
Prerequisites:
- The machine has
pythoninstalled, - and vscode has Python and Jupyter extensions installed.
steps
Create a new working folder Test
Open the folder Test with vscode

new terminal

Type the command
python -m venv .venvto create a virtual environment
After the creation is complete, use the command
.venv/scripts/activateto activate the virtual environment
Or Ctrl+Shift+P --> Python:Select Interpreter, select the interpreter of the virtual environment and then create a new terminal to activate the environment

Create new jupyter file using command palette command
Create:New Jupyter Notebook
Or right click --> New File --> name ends with
.ipynb
The virtual environment you just selected will be enabled as the kernel by default.

The same problem happened with me. I fixed it by going to Jupiter extension and installing a few months old version.