how can i connect my jupyter notebook to Spark
import findspark findspark.init(“/Users/user1/Downloads/spark2/”)import pyspark from pyspark.sql import DataFrameNaFunctions from pyspark.sql.functions import lit from pyspark.ml.feature import StringIndexer #label encoding from pyspark.ml import Pipeline sc = pyspark.SparkContext(appName=”helloworld”)