Try to create a python environment with Visual Studio Code & WSL

Motivation

I've been running python code directly from WSL so far, but writing code on the window and running it on ubuntu has become annoying (and I'm a person who can't use vim, so ...) I tried to make it.

Prerequisite environment

Extensions

For the time being, let's add a python extension. image.png After installing, press the restart button as well. image.png Such a warning. image.png When I selected python in anaconda, the warning disappeared and I was able to execute it.

Try Jupyter Notebook

With the command palette, without any special settings

Python: Create Blank New Jupyter Notebook

It was easy to do. image.png

Supplement

WSL2 is already out, but I'm still waiting.

reference

What you need to do to Python with VS Code I tried running Jupyter Notebook with Visual Studio Code

Recommended Posts

Try to create a python environment with Visual Studio Code & WSL
Create a Python development environment on Windows (Visual Studio Code remote WSL).
Set up a Python development environment with Visual Studio Code
Build Python development environment with Visual Studio Code
Steps to create a Python virtual environment with VS Code on Windows
Python development environment with Windows + Anaconda3 + Visual Studio Code
Python development environment with Windows + Python + PipEnv + Visual Studio Code
Create a virtual environment with Python!
Create a Python development environment in 10 minutes (Mac OS X + Visual Studio Code)
A note I was addicted to when running Python with Visual Studio Code
Build a Python environment with WSL + Pyenv + Jupyter + VS Code
[Python] Create a virtual environment with Anaconda
Create a Python execution environment for Windows with VScode + Remote WSL
Create a C ++ and Python execution environment with WSL2 + Docker + VSCode
Create a simple Python development environment with VS Code and Docker
Try it when Visual Studio Code can't load a Python module
Create a Python environment
How to create a Python virtual environment (venv)
Try to draw a life curve with python
Create a virtual environment with conda in Python
Create a python3 build environment with Sublime Text3
Try to make a "cryptanalysis" cipher with Python
Steps to create a Twitter bot with python
Try to make a dihedral group with Python
Build a python execution environment with VS Code
[Cloudian # 3] Try to create a new object storage bucket with Python (boto3)
I was addicted to creating a Python venv environment with VS Code
Try to solve the traveling salesman problem with a genetic algorithm (Python code)
How to debug a Python program by remotely connecting to a Docker container in WSL2 environment with VS Code
Try to make a command standby tool with python
Try to dynamically create a Checkbutton with Python's Tkinter
Try debugging Python on Raspberry Pi with Visual Studio.
Create a python development environment with vagrant + ansible + fabric
When I tried to create a virtual environment with Python, it didn't work
Build an environment to execute C ++ functions from Python with Pybind11 (for Windows & Visual Studio Code people)
[Python] How to create a 2D histogram with Matplotlib
Create a directory with python
How to create a kubernetes pod from python code
[Python] How to create a local web server environment with SimpleHTTPServer and CGIHTTPServer
I tried to build an environment with WSL + Ubuntu + VS Code in a Windows environment
Try to create a waveform (audio spectrum) that moves according to the sound with python
Try running python in a Django environment created with pipenv
Enable the virtualenv Python virtual environment for Visual Studio Code
Probably the easiest way to create a pdf with Python3
Try to bring up a subwindow with PyQt5 and Python
Do something like a Python interpreter in Visual Studio Code
How to build a python2.7 series development environment with Vagrant
Create a simple Python development environment with VSCode & Docker Desktop
Create a message corresponding to localization with python translation string
[Python] Create a screen for HTTP status code 403/404/500 with Django
Java with Visual Studio Code (Part 2)
Create folders from '01' to '12' with python
Try to operate Facebook with Python
Create a Python environment on Mac (2017/4)
Building a virtual environment with Python 3
Create a python environment on centos
5 Ways to Create a Python Chatbot
Execute C ++ functions from Python with Pybind11 (for Windows & Visual Studio Code people) Environment construction
[Python] Try to create ring fit data using Amazon Textract [OCR] (Try code review with Code Guru)
I wrote a script to create a Twitter Bot development environment quickly with AWS Lambda + Python 2.7
Create a Python environment for professionals in VS Code on Windows