[PYTHON] Build jupyter notebook environment with Visual Studio Code (VS Code) Mac version

Build jupyter notebook environment with Visual Studio Code (VS Code) Mac version

Purpose

Described as a work memo for the Python development environment. The license of ANACONDA has changed and there is no problem for the time being, but I tried to move to a local development environment of Python that does not use ANACONDA. I decided to use Visual Studio Code (VS Code) and its Jupyter Extension for Visual Studio Code (Jupyter Extension) for jupyter notebook. The procedure is simple, but I decided to write it as a memo of how to use it. Pyenv and pyenv-virtualenv are used as the Python development environment. (Separate article)

Mac environment

OS : Mac OS Big Sur(11.1) Xcode: Not installed on the App Store

Install Visual Studio Code (VS Code)

Download and install from Visual Studio Code Site スクリーンショット 2021-01-11 18.52.53.png

Install Visual Studio Code Insiders

Download and install from Visual Studio Code Site Insiders!

スクリーンショット 2021-01-11 18.57.09.png

I get a warning when I start it, but "Open" スクリーンショット 2021-01-11 19.00.43.png

Install Jupyter Extension for Visual Studio Code

https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter

Download and install from Jupyter Extension for Visual Studio Code Site Insiders!

スクリーンショット 2021-01-11 19.05.52.png

A popup will pop up to open Visual Studio Code.app スクリーンショット 2021-01-11 0.07.17.png

Visual Studio Code launches and Jupyter opens in that window スクリーンショット 2021-01-11 0.07.53.png

Press install スクリーンショット 2021-01-11 19.17.45.png

How to use

Launch Visual Studio Code

Display all commands Press command key + shift key + p key

jupyter: Select Create New Blank Jupyter Notebook

スクリーンショット 2021-01-11 19.22.27.png

If there is something that needs to be installed, it will pop up, so please install it.

Jupyter Notebook launches in Visual Studio Code スクリーンショット 2021-01-11 19.26.28.png

The Python environment you are using is displayed in the upper right, and you can switch the Python environment to execute by clicking here. スクリーンショット 2021-01-11 19.29.13.png

Recommended Posts

Build jupyter notebook environment with Visual Studio Code (VS Code) Mac version
Build Python development environment with Visual Studio Code
Build a Python environment with WSL + Pyenv + Jupyter + VS Code
How to build Python and Jupyter execution environment with VS Code
Build a python execution environment with VS Code
Use Jupyter Notebook with Visual Studio Code on Windows 10 + Python + Poetry + pyenv-win
Python development environment with Windows + Anaconda3 + Visual Studio Code
Python development environment with Windows + Python + PipEnv + Visual Studio Code
Set up a Python development environment with Visual Studio Code
Prepare Python development environment with Mac + Windows + VisualStudio Code (Windows version)
Prepare Python development environment with Mac + Windows + VisualStudio Code (Mac version)
Using jupyter notobook with VS Code (mac OS) (personal memo)
Java with Visual Studio Code (Part 2)
Try running Jupyter with VS Code
Install python with mac vs code
Build a comfortable psychological experiment / analysis environment with PsychoPy + Jupyter Notebook
How to build a Python virtual execution environment using Visual Studio Code and pipenv on a Windows machine (also Jupyter notebook)
Build Python environment with Anaconda on Mac
Build a development environment using Jupyter and Flask with Python in Docker (supports both VS Code / code-server)
Build an environment to execute C ++ functions from Python with Pybind11 (for Windows & Visual Studio Code people)
Analytical environment construction with Docker (jupyter notebook + PostgreSQL)
Python (Windows 10) Virtual Environment / Package with VS Code
Try using conda virtual environment with Jupyter Notebook
Use Python in Anaconda environment with VS Code
Make your Python environment "easy" with VS Code
Create a Python development environment in 10 minutes (Mac OS X + Visual Studio Code)
Python local development environment construction template [Flask / Django / Jupyter with Docker + VS Code]
Virtual environment construction with Docker + Flask (Python) + Jupyter notebook
I tried to build an environment with WSL + Ubuntu + VS Code in a Windows environment
Environment construction for those who want to study python easily with VS Code (for Mac)
Remote debug Django environment created with docker-compose with VS Code
Execute C ++ functions from Python with Pybind11 (for Windows & Visual Studio Code people) Environment construction
Are you still using Jupyter Notebook? Enjoy a comfortable Python life with Jupyter Life (.py) with VS Code ?!
Let's run jupyter natively supported by VS Code with python3.8
Machine learning with Jupyter Notebook in OCI Always Free environment (2019/12/17)
Enable the virtualenv Python virtual environment for Visual Studio Code
Reflect the virtual environment created with Miniconda in Jupyter notebook
Install python and Visual Studio Code on windows10 (April 2020 version)
I want to use a virtual environment with jupyter notebook!
Build Python3 for Windows 10 on ARM with Visual Studio 2019 (x86) on Windows 10 on ARM
UpNext2 Development Record # 1 Build Python CI environment in VS Code
Python with VS Code (Windows 10)
Using Graphviz with Jupyter Notebook
Use pip with Jupyter Notebook
Debug Python with VS Code
Play with Jupyter Notebook (IPython Notebook)
Remote debugging with Visual Studio 2017
python3.8 venv environment jupyter notebook
Get the strongest environment with VS Code, Remote-Containers and remote docker-daemon
Bash, Python, Javascript, code command, etc. in Visual Studio Code on Mac
How to use jupyter notebook without polluting your environment with Docker
Debug settings in virtual environment when using Pipenv with VS Code
Create a simple Python development environment with VS Code and Docker
Allow external connections with jupyter notebook
Formatting with autopep8 on Jupyter notebook
Build python virtual environment with virtualenv
Visualize decision trees with jupyter notebook
Make a sound with Jupyter notebook
Anaconda environment construction on Mac (2018 version)
Build Mysql + Python environment with docker
Easy Jupyter environment construction with Cloud9