Join dynamic discussions on Databricks certifications within the Community. Exchange insights, tips, and experiences to help prepare for certification exams and validate your expertise in data engineering, analytics, and machine learning.
To execute pytest within Databricks complete the following:
sys.dont_write_bytecode = True - By default, Python generates .pyc bytecode files in a pycache directory. Setting it to True prevents this, which is useful in read-only environments.
Code in cell directly underneath:
sys.dont_write_bytecode =False
Thanks. I hereby claim my $1000000 bug bounty. You're welcome.