I use databricks connect to connect PyCharm with databricks cluster remotely but when I try to get dbutils.widget throw an error.
cluster conf:
spark.databricks.service.server.enabled true
spark.databricks.hive.metastore.glueCatalog.enabled true
spark.databricks.service.client.enabled true
spark.hadoop.fs.s3a.acl.default BucketOwnerFullControl
error: AttributeError: 'DBUtils' object has no attribute 'widgets'
code:
from pyspark.sql import SparkSession<br>from pyspark.dbutils import DBUtils<br><br>spark = SparkSession.builder.getOrCreate()<br><br>dbutils = DBUtils(spark)<br>