Introduction To Jupyter Notebooks

nb_intro

INTRODUCTION TO JUPYTER NOTEBOOKS

How to install spell checker

In [ ]:
!pip install jupyter_contrib_nbextensions
In [ ]:
!jupyter contrib nbextension install --user
In [ ]:
!jupyter nbextension enable spellchecker/main

After running the above commands, make sure to go to the Jupyter dashboard (the main window), and then the nbextensions tab, and enable spell checker.

You will have to restart the project server for the spell checker to take effect.

How to check for Python version

In [ ]:
from platform import python_version
In [ ]:
python_version()
In [ ]:
import numpy as np
In [ ]:
np.__version__

How to read CSV files

In [ ]:
import pandas as pd

Assuming that your file is under a directory called data:

In [ ]:
df = pd.read_csv('./data/breast_cancer_wisconsin.csv')
df.head()
In [ ]:
df.shape

Package Management

In [ ]:
!pip list 
In [ ]:
!pip install --upgrade pip
In [ ]:
!pip install vega vega_datasets