Forum Discussion
BiJoe
2 years agoHelper II
VS Code notebook Spark failure
In my workspace I have two notebooks, where one is actively edited in VS Code Synapse extension, and mostly works. The only hickup is that all Spark methods are called out with "spark is not defined"...
- 2 years ago
I completely uninstalled VS Code, and reinstalled extensions. Now the notebook works as it should
Anonymous
2 years agoNot applicable
Hi BiJoe , I am also facing the same issue as yours, when i try to run my fabric code through VS.
My kernel is -> fabric-synapse-runtime-1-2
And when i run any spark related commands, im getting the same error -> AttributeError: 'NoneType' object has no attribute 'sql'
I am able to run any basic print statements, but not anything related to 'spark'.
As per your solution, I tried to uninstall VS Code and reinstall the extensions but unfortunately it didnt work and I am stuck at the same place.
Any kind of help/solution would be really appreciated.
Thanks.