Fix matplotlib issue pip install ipywidgets Make sure that PySpark version is the same as your Spark version pip install pyspark==3.0.1