backtotop

Enable Jupyter in VSCode

Modify date: 2020-02-22

Usage

Start Jupyter in VSCode

jupyter-1

Add #%% to the first line of py file. The Run Cell, Run Below, and Debug Cell function will be added to VSCode.

Example

# %%
import osmnx
import pandas
import matplotlib.pyplot
import geopandas

Python Interactive

Use Shift + Enter or command Run Cell to start Python Interactive.

jupyter-2


Problem in Setting

Python Interactive shows error of Jupyter Server: Unconnected.

Solution

Install module of notebook

sudo pip3 install notebook