jeremy98
Honored Contributor

Hi, 
Thanks for your answer, actually I wrote a piece of code like:

 

 

from databricks.connect import DatabricksSession
spark = DatabricksSession.builder.getOrCreate()

 

 

 But I still have this error:

 

ImportError: cannot import name 'AnalyzeArgument' from 'pyspark.sql.udtf' (/Users/Library/Caches/pypoetry/virtualenvs/rnc-data-pipelines-Jgi6KLI_-py3.13/lib/python3.13/site-packages/pyspark/sql/udtf.py)

 


Do u know how to fix this? And For debugging the cells I need to execute the notebook in a proper way?