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 --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
- Get Started with PySpark and Jupyter Notebook in 3 Minutes
- How to set up PySpark for your Jupyter notebook
Haven't tried yet
# 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()