Susumu_Asaga
New Contributor II

Use this code:

from databricks.connect import DatabricksSession

spark = DatabricksSession.builder.getOrCreate()