Forum Discussion
tmjones2
2 years agoHelper I
VS Code Integration with Fabric Notebooks Not Working
I'm running the code below and getting this error: AttributeError: 'NoneType' object has no attribute 'sql' df = spark.sql("SELECT * FROM MyLH.ClaimFacts LIMIT 1000")
display(df)
df.printSchema() ...
Anonymous
2 years agoNot applicable
Hi tmjones2
Thanks for using Fabric Community.
Please follow these steps:
1) Right click the ipython notebook
Reveal in File Explorer
2) Open the python log file: ../../../logs/${NOTEBOOK_ARTIFACT_ID}/PySparkLighter.log and check the session failure reason
Please attach the screenshot of the error here to understand what is happening.
You can also try stopping the spark session in the Notebook and try running in VS code.
Thanks
- Anonymous2 years agoNot applicable
Hi tmjones2
We haven’t heard from you on the last response and was just checking back to see if you could provide the details asked above.
Thanks- Anonymous2 years agoNot applicable
Hi @tmjones2
We haven’t heard from you on the last response and was just checking back to see if you could provide the details asked above.
Thanks