Python with VS Code (Windows 10)

My specs Originally Python was used occasionally in Anaconda. The mainstream is R and R Studio. Under such circumstances, the need for Python increased (Deep), and I thought I should try using VScode, which can be used like RStudio. Markdown is also beautiful.

Easy to download and install. From the following. Visual Studio Code Download Site

In my case, Anaconda was already installed, so I wanted to do Python in a different environment, so I newly installed Python. (VScode uses this Python. It's best because it's used for different purposes.) Python download site If you are not confident, check the place that says "Add to PATH" when installing. Because it doesn't go through the PATH, it often doesn't work.

In Anaconda, package management is basically based on conda. This depends on the pace of Anaconda, so some packages cannot be used. Then you have no choice but to use pip. .. (Although pip can be used in Anaconda) Anaconda (jupyter Notebook) is very convenient from a sharing point of view, so I use .ipynb (jupyter Notebook) there.

Probably, building a Python environment is very difficult for people who are programming or analyzing data for the first time, and I want them to be able to understand the feelings of computers to some extent. The computer isn't bad at all w That's why Anaconda (jupyter Notebook) is a good entry for Python, but people are dissatisfied with it and have to move on. I'm waiting for Anaconda's response, so I can't move on. Well, is VScode okay? I don't know what it is

For the time being, it's easy to run Python with VScode. Create an appropriate folder and create a new appropriate Python file (filename.py). The code is appropriate

python


a = "Hello zumilab."
print(a)

Try hitting it and executing it. Select the new Python you have installed with the interpreter (Ctrl + Shift + P), then press F5 (Fn + F5) and then ʻEnterto run it. If you can select Python, you should be able to execute it by moving the cursor to the line you want to execute and pressingShift + Enter`. If this is not possible, there will be no merit for R users.

Next is Building a virtual environment and installing packages.

Recommended Posts

Python with VS Code (Windows 10)
Debug Python with VS Code
Python (Windows 10) Virtual Environment / Package with VS Code
Install python with mac vs code
Python starting with Windows 7
The story that Python stopped working with VS Code (Windows 10)
Debug with VS Code using boost python numpy
Use Python in Anaconda environment with VS Code
Make your Python environment "easy" with VS Code
Build a python execution environment with VS Code
Get country code with python
Run python with PyCharm (Windows)
Time synchronization (Windows) with Python
Document Python code with Doxygen
Steps to create a Python virtual environment with VS Code on Windows
Try touching the micro: bit with VS Code + Python
Allow real-time code checking in Python development with VS Code
VS Code settings for developing in Python with completion
Revive symbol search in Python workspace with VS Code
Python development environment with Windows + Anaconda3 + Visual Studio Code
Python development environment with Windows + Python + PipEnv + Visual Studio Code
Easy Python data analysis environment construction with Windows10 Pro x VS Code x Docker
Face detection with YOLO Face (Windows10, Python3.6)
Build mlpy with python3.3 (64bit) (windows 64bit)
Try running Jupyter with VS Code
Use Windows 10 speech synthesis with Python
Getting started with Python 3.8 on Windows
[Python] Creating multiple windows with Tkinter
[VS Code] ~ Tips when using python ~
[Python Windows] pip install with Python version
Settings when developing App Engine / Python apps with VS Code
Let's run jupyter natively supported by VS Code with python3.8
Prepare Python development environment with Mac + Windows + VisualStudio Code (Windows version)
Prepare Python development environment with Mac + Windows + VisualStudio Code (Mac version)
Comfortable LaTeX with Windows Subsystem for Linux and VS Code
Build a Python environment with WSL + Pyenv + Jupyter + VS Code
Create a Python environment for professionals in VS Code on Windows
FizzBuzz with Python3
Scraping with Python
Run servo with Python on ESP32 (Windows)
Statistics with python
Python on Windows
Scraping with Python
Python with Go
python windows environment
Twilio with Python
VS Code settings
Building a Python 3.6 environment with Windows + PowerShell
Integrate with Python
Python installation (Windows)
Play with 2016-Python
python character code
AES256 with python
Tested with Python
Pass PYTHONPATH in 1 minute with VS Code
Develop Windows apps with Python 3 + Tkinter (Preparation)
Display Japanese graphs with VS Code + matplotlib
python starts with ()
with syntax (Python)
[Python] Algorithm-aware code
Bingo with python