đ Tutorial: Opening a Notebook in VS Code¶
Follow these simple steps to open and work with a .ipynb
(Jupyter/Ipython Notebook) file using Visual Studio Code (VS Code).
Requirements: Make sure you have VS Code installed.
1. Open VS Code¶
- Launch Visual Studio Code
- You should see the âWelcomeâ screen.
2. Install the Jupyter (ipynb) Extension¶
To work with .ipynb
notebooks, you need the Jupyter extension.
- Click on the Extensions icon on the left sidebar (or press
Ctrl+Shift+X
/Cmd+Shift+X
). - In the search bar, type "Jupyter".
- Click Install on the official extension by Microsoft.
3. Download the Notebook File¶
Youâll need to download a Notebook file.
- Click the link below to open a repository on GitHub containing various notebooks:
- Once the page opens, locate the
01-getting-started.ipynb
file. - Click on the file to open it, then look for the Download icon (usually a downward arrow).
- Save the file to a folder you can easily access (for example, your Documents or Downloads folder).
4. Open the Notebook in VS Code¶
- In VS Code, go to File â Open File...
- Navigate to the folder where you saved the
.ipynb
file. - Select the file and click Open.
VS Code will automatically open it in Notebook View, showing code cells and outputs just like in Jupyter Notebook.
5. (Optional) Set Up a Python Environment¶
If you see a message about selecting a kernel:
- Click âSelect Kernelâ at the top-right of the notebook.
- Choose an existing Python environment or create a new one.
- Wait for the environment to load â then you can start running cells!
Youâre Ready!¶
You can now:
- Edit and run code cells (Shift + Enter
)
- Write notes in Markdown cells
- Save your work normally (Ctrl+S
/ Cmd+S
)