How to Set Up Jupyter Notebook in Visual Studio Code | Run Python Code in VS Code Notebook

Published: 22 April 2025
on channel: ProgrammingKnowledge
27,734
106

In this step-by-step guide, you'll learn **how to set up and run Jupyter Notebooks directly inside Visual Studio Code (VS Code)**. Whether you're working on data science, machine learning, or just exploring Python interactively, Jupyter Notebooks make coding easier and more visual — and integrating them with VS Code brings extra power, efficiency, and convenience.

Jupyter Notebooks are one of the most popular tools in the Python ecosystem, especially loved by data scientists and researchers. With the **Jupyter extension in VS Code**, you can combine code, visualizations, and markdown documentation in one powerful environment — all without leaving your IDE.

---

✅ In This Tutorial, You’ll Learn:

How to install and configure Python and Jupyter
How to install Jupyter extension in VS Code
How to create, open, and run `.ipynb` files
How to manage Python kernels and environments
Common troubleshooting tips for smooth setup

---

🔧 Requirements:

Visual Studio Code
Python installed on your system
Internet connection for downloading extensions
Jupyter (automatically installed via VS Code or manually with pip)

---

▶️ Step-by-Step Setup Guide:

1. *Install Python:*
Download and install Python from [https://python.org](https://python.org)
During installation, make sure to check the box: ✅ Add Python to PATH

2. *Install VS Code:*
Download and install Visual Studio Code from [https://code.visualstudio.com](https://code.visualstudio.com)

3. *Open VS Code and Install the Jupyter Extension:*
Go to Extensions panel (or press `Ctrl+Shift+X`)
Search for *"Jupyter"* by Microsoft
Click Install

4. *Create a New Jupyter Notebook:*
Press `Ctrl+Shift+P` → Type `Jupyter: Create New Blank Notebook`
Or create a `.ipynb` file manually

5. *Select a Python Interpreter / Kernel:*
Click on the kernel name in the upper right of the notebook interface
Choose the appropriate Python interpreter

6. *Start Coding:*
Enter Python code in a cell and hit `Shift + Enter` to run

---

💡 Bonus Tip:

If you prefer working with *virtual environments**, activate your environment in the terminal or use the **Python: Select Interpreter* command to work with a clean setup.

---

👍 If this tutorial helped you, don’t forget to *Like**, **Comment**, and **Subscribe* for more tech guides!

---

🔖 Hashtags:
#JupyterNotebook #VSCODE #Python #DataScience #MachineLearning #VisualStudioCode #CodingTutorial #JupyterInVSCode #PythonTips #LearnPython #VSCodeNotebook #PythonNotebook


On this page of the site you can watch the video online How to Set Up Jupyter Notebook in Visual Studio Code | Run Python Code in VS Code Notebook with a duration of hours minute second in good quality, which was uploaded by the user ProgrammingKnowledge 22 April 2025, share the link with friends and acquaintances, this video has already been watched 27,734 times on youtube and it was liked by 106 viewers. Enjoy your viewing!