[PYTHON] Personal notes about the integration of vscode and anaconda

Cooperation memo of vscode and anaconda

A memo for myself using python in the environment created by anaconda with VScode.

Anaconda and vscode are already installed, and python3.6 environment has been built with anaconda.

Make it debuggable with vscode

in setting.json

"python.pythonPath": "(python in anaconda environment.Absolute path of exe)",

Is added.

Use anaconda python in integrated terminal

Create a bat file to enter the anaconda environment. Perform until activate with the bat file.

%windir%\system32\cmd.exe "/K" C:\Users\(username)\Anaconda3\Scripts\activate.bat C:\Users\(username)\Anaconda3\envs\(Environment name)

Next, add the following contents to setting.json.

"terminal.integrated.shell.windows": "(Absolute path of bat file)"

When you start vscode, it will be started in the activated state in the integrated terminal.

Recommended Posts

Personal notes about the integration of vscode and anaconda
Personal notes and links about machine learning ① (Machine learning)
About the behavior of copy, deepcopy and numpy.copy
About the * (asterisk) argument of python (and itertools.starmap)
About import error of numpy and scipy in anaconda
Think about the next generation of Rack and WSGI
About the ease of Python
About the components of Luigi
About the features of Python
The story of Python and the story of NaN
About Boxplot and Violinplot that visualize the variability of independent data
About the return value of pthread_mutex_init ()
About the return value of the histogram.
About the basic type of Go
About the upper limit of threads-max
About the bug that anaconda fails to import numpy and scipy
About the behavior of yield_per of SqlAlchemy
(Personal notes) Python metaclasses and metaprogramming
About import error of PyQt5.QtWidgets (Anaconda)
About the size of matplotlib points
About the basics list of Python basics
Supplement to the explanation of vscode
About the main tasks of image processing (computer vision) and the architecture used
This and that of the inclusion notation.
Learning notes from the beginning of Python 1
About the behavior of enable_backprop of Chainer v2
About the virtual environment of python version 3.7
Miscellaneous notes about the Django REST framework
About sensor_mode and angle of view of picamera
Review the concept and terminology of regression
The result of installing python in Anaconda
About the arguments of the setup function of PyCaret
About the relationship between Git and GitHub
The story of trying deep3d and losing
About the Normal Equation of Linear Regression
Learning notes from the beginning of Python 2
Talking about the features that pandas and I were in charge of in the project
About _ and __
Check the operation of OpenCV3 installed by Anaconda
About left justification and right justification of Kivy Label
About the accuracy of Archimedean circle calculation method
About the X-axis notation of Matplotlib bar graphs
The answer of "1/2" is different between python2 and 3
About the processing speed of SVM (SVC) of scikit-learn
Organize the meaning of methods, classes and objects
Specifying the range of ruby and python arrays
Change the color of Fabric errors and warnings
About the difference between "==" and "is" in python
A note about the python version of python virtualenv
Compare the speed of Python append and map
About the development contents of machine learning (Example)
About the behavior of Model.get_or_create () of peewee in Python
Coexistence of Anaconda 2 and Anaconda 3 in Jupyter + Bonus (Julia)
General description of the CPUFreq core and CPUFreq notifiers
Organize the super-basic usage of Autotools and pkg-config
I read and implemented the Variants of UKR
About the behavior of Queue during parallel processing
About cumulative assignment of lists and numpy arrays
A discussion of the strengths and weaknesses of Python
About shallow and deep copies of Python / Ruby
The nice and regrettable parts of Cloud Datalab