Notebook with VS Code
It is simple to get Jupyter or Colab notebooks running inside Visual Studio Code.
Install the necessary Jupyter notebook extensions in VS Code
Install the Jupyter module in Conda Python Environment
Open or Make a *.ipynb file
Run the code
1. Install VSC Extensions to Enable Jupyter Notebooks
Once you have VSC installed you’ll just need to install a few extensions for VSC to support Jupyter notebooks. You’ll need to install six extensions.
Python (author: Microsoft)
Pylance (author: Microsoft)
Jupyter (author: Microsoft)
Jupyter Keymap (author: Microsoft)
Jupter Notebook Renderers (author: Microsoft)
2. Install the Jupyter Module in Conda Python Environment
Need an environment to install the jupyter module
If Conda Environment exists, you can skip this
conda create -n py37 python=3.7
conda activate py37Install the
jupytermodule.
conda install jupyter
conda install -c anaconda ipykernel3. Open or Make a .ipynb file and Run
Lets use a test code (*.ipynb) created in Colab.
Download the file as *.ipynb.

Open the downloaded file in VSCODE and Run
Select Python Interpreter as
py37or where you have installed Jupyter

Last updated
Was this helpful?