Skip to main content

JupyterLab

Jupyterlab is a fully-featured python notebook environment.

We provide it to authors when JupyterLite has insufficient compatibility.

Should you use JupyterLab?

We recommend you only use JupyterLab for your labs when necessary. If possible, we recommend you use JupyterLite instead.

For more information on why JupyterLite is preferred over JupyterLab see JupyterLite vs JupyterLab.

JupyterLab Caveats

Issue Solution
The pyspark library fails with JVM error

Use findspark:

!pip install pyspark
!pip install findspark
import findspark
findspark.init()
from pyspark import SparkContext, SparkConf
from pyspark.sql import SparkSession
# Creating a spark context class
sc = SparkContext()

# Creating a spark session
spark = SparkSession \
.builder \
.appName("Python Spark DataFrames basic example") \
.config("spark.some.config.option", "some-value") \
.getOrCreate()

Should run with no errors.