[PYTHON] Using jupyter notobook with VS Code (mac OS) (personal memo)

The ultimate goal is coding on VS Code

It seems that juypter can be operated using VS Code, so I will try it

What i did

・ Installation of VS Code -Installing Python extensions ・ Installation of anaconda -Create a new .ipynb file ・ I tried it for the time being -Correction after error output

VS Code installation

https://code.visualstudio.com/

Download here and then install

Extension installation

Click on the icon in the lower left that has four squares and the upper right is a polo ↓ Type "Python" in the search bar above ↓ It will be reflected when you install and restart VS Code

スクリーンショット 2020-03-13 17.41.47.png

Installation of Anaconda

I used to put in anaconda and miniconda, so I cleaned it once.

Referrer URL https://weblabo.oscasierra.net/python-anaconda-uninstall-macos/

Then install

Referrer URL https://tako1192.hatenablog.com/entry/2019/10/12/OSX_Catalina_%E3%81%A7Anaconda%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB

Let's actually make .ipynb

Create a notebook, write it in VS Code, and try to execute it.

Referrer URL https://dev.classmethod.jp/server-side/python/visual-studio-code-jupyter-notebook/

However, Error barrage

However, I was asked by the VS Code extension whether to install any packages, so I hit "I got it!" Without hesitation. Then all the libraries were available.

スクリーンショット 2020-03-15 23.37.55.png

This is when it moves firmly You can also use the library

URL referenced at the time of Error https://teratail.com/questions/192633

A good site I found while writing an article

https://qiita.com/komiya_____/items/547ae8b5a9b031f18b59

Recommended Posts

Using jupyter notobook with VS Code (mac OS) (personal memo)
Try running Jupyter with VS Code
Install python with mac vs code
Build jupyter notebook environment with Visual Studio Code (VS Code) Mac version
[Personal memo] julia --Using Python library with julia using PyCall
Debug with VS Code using boost python numpy
Python with VS Code (Windows 10)
Using Graphviz with Jupyter Notebook
Let's run jupyter natively supported by VS Code with python3.8
Debug Python with VS Code
Memo on Mac OS X
Build a Python environment with WSL + Pyenv + Jupyter + VS Code
Are you still using Jupyter Notebook? Enjoy a comfortable Python life with Jupyter Life (.py) with VS Code ?!
Using OpenCV with Python @Mac
Debug settings in virtual environment when using Pipenv with VS Code
How to build Python and Jupyter execution environment with VS Code
[VS Code] ~ Tips when using python ~
Build a development environment using Jupyter and Flask with Python in Docker (supports both VS Code / code-server)
I made a tool to convert Jupyter py to ipynb with VS Code
Pass PYTHONPATH in 1 minute with VS Code
Display Japanese graphs with VS Code + matplotlib
Using Java's Jupyter Kernel with Google Colaboratory
Mac OS X development environment construction memo
VS Code Pylint is annoying with import! !! !! !!
[Jupyter Notebook memo] Display kanji with matplotlib
Automatic PowerPoint generation with python-pptx (personal memo)