Skip to content

Latest commit

 

History

History
70 lines (47 loc) · 2.09 KB

SetupJupyter.md

File metadata and controls

70 lines (47 loc) · 2.09 KB

Setup Jupyter with PySpark and Parallel IPython

Install Jupyter Notebook at once!

fab install-jupyter

Only jupyter

# This will install in /usr/local/bin (share with all user)
sudo pip3 install jupyter
# This will install in ~/.local/bin
pip3 install --user jupyter

Jupyter Notebook Server

jupyter notebook --generate-config

# Setup password
jupyter notebook password

Start the server

jupyter notebook --ip <your_LAN_ip> --port 8888

Either use password or token or ... to login

PySpark with Jupyter Notebook

Interactive Parallel Computing with IPython

Haven't tried yet

Online Jupyter Notebook Server

Google Colaboratory

# Put at the start of the notebook
!apt-get -y install openjdk-8-jre-headless
!pip install pyspark
from pyspark.sql import SparkSession
from pyspark import SparkContext
spark = SparkSession.builder.master("local").getOrCreate()
sc = SparkContext.getOrCreate()

AWS SageMaker