Run Python Jupyter notebook in VSCode on remote host
Steps
Install “Remote Development” plugin for VSC
Install “Python” plugin for VSC
Install jupyter kernel on the remote host
1
pip3 install ipykernel
Open the remote directory with VSC,
Create New Jupyter Notebook command from the Command Palette (Ctrl+Shift+P) or by creating a new .ipynb file in your workspace.
Jupyter notebooks in Visual Studio Code does not use the active virtual environment
Option 1
VSCode:
Windows: F1
Mac: _
Python:Select Interpreter
Option 2
1 | (venv) $ ipython kernel install --user --name=venv_name |