How to start using Jupyter Notebooks

Download Anaconda and Visual Studio Code

Setup

Python Installation

If Python is not installed on your computer, the Anaconda Distribution is available for installation here.

image.png

Visual Studio Code Installation

Visual Studio Code is available for installation here.

image.png

Python VS Code Extension

Open the extensions tab and search for

 ms-python.python

image.png

Getting Started

File

Create a file with the .ipynb extension using the New File button.

image.png

Kernel

Select the desired python installation using the Select Kernel button.

image.png

Keyboard shortcuts

Edit Mode

Edit Mode allows for typing text into the current cell.

  • If in Command Mode -> Enter

    Command Mode

    Command Mode allows for the creation, movement, and transformation of cells.
  • If in edit mode -> Esc
SyntaxUsage
aAdd cell above
bAdd cell below
,kMove up one cell
,jMove up one cell
yConvert cell to code
mConvert cell to markdown

Running Code

  • If Markdown cell -> Renders
  • If Code cell -> Executes
SyntaxUsage
Ctrl+EnterRun current cell
Shift+EnterRun current cell and move to next cell

Markdown

# This is a Header
This is **bold** and *italic* text.

Will get rendered as


This is a Header

This is bold and italic text.


Python

x = 5
y = 6
x*y

Will be rendered as


30