Forum Discussion
Databricks ConnectV2 for Microsoft Fabric?
I just noticed in Fabric that there is an "Open in VS Code" button for my notebook. Not sure why I didn't notice it before. When I click that button, my notebook opens in VSCode as a *.ipynb file. I can then step through my program until I get to this line
mssparkutils.fs.ls("./Files")at which point I get the error:
"NameError: name 'mssparkutils' is not defined"
- Anonymous2 years agoNot applicable
Hi Shawn_Eary ,
Thanks for using Fabric Community. Apologies for the delay in reply from our side.
You can refer to this documentation : link
Please install Synapse VS code in Visual Studio and download the necessary software.
Hope this helps. Do let us know if you have any further queries.- Anonymous2 years agoNot applicable
Hi Shawn_Eary ,
Following up to check whether your issue has been resolved. Please let us know if you have any further queries.- Shawn_Eary2 years agoAdvocate V
The extension was and still is installed, but now I'm getting a different error and I'm not sure why. Now this line:
spark.read.format("csv").option("header", "true").load(f)spits out the error:
NameError: name 'spark' is not definedWhen I started up the debugger, I was given an option to choose between the Python Environments and Existing Jupyter Server:I chose Environments -> Python 3.11.6:
Because I didn't know of a Jupyter Server URL that MS Fabric provides.
Is there some way for me to get access to a Spark context and the files in my MS Fabric instance instead of apparently running my Python Notebook locally?
My understanding is that Databricks already has the functionality I'm looking for.