You have two options here:
- Install Microsoft Python extension for Visual Studio Code and Microsoft Jupyter extension for Visual Studio Code
Search for Python in Microsoft Visual Studio Code's Extension: Marketplace and hit on install.

Search for Jupyter in Microsoft Visual Studio Code's Extension: Marketplace and hit on install.

Or you can use your terminal or command prompt to install them. Open the terminal or command prompt and write these commands there.
Install Microsoft Python extension,
code --install-extension ms-python.python
Install Microsoft Jupyter extension ,
code --install-extension ms-toolsai.jupyter
- Install Code Runner for Visual Studio Code
Search for Code Runner in Microsoft Visual Studio Code's Extension: Marketplace and hit on install.

Or you can use your terminal or command prompt to install it. Open the terminal and write the command.
Install Code Runner,
code --install-extension formulahendry.code-runner
You must go with the first option by Microsoft. If you go with both the options, you install Code Runner and Microsoft Python and Jupyter extensions then the Microsoft Python extension will only work if you disable Code Runner.
Code Runner is a good extension for C, C++, Java, Javascript, Perl, ... but for Python Microsoft Python and Jupyter extension is the best.