Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
kjellvs
Helper I
Helper I

Run or debug a notebook on remote Spark compute

Hi all, I am trying to develop a fabric notebook in a local vscode environment. In the documentation it says the following:


"By selecting the kernel synapse-spark-kernel shipped with this extension, you can run the code cell on top of the remote Fabric Spark compute. Once you have selected this kernel, during runtime, the extension intercepts all the PySpark API calls and translates them to the corresponding http call to the remote Spark compute. For pure Python code, it's still executed in the local environment."

(from: https://learn.microsoft.com/en-us/fabric/data-engineering/author-notebook-with-vs-code#open-notebook...)

 

In my IDE however, I do not see any option to select this kernel. I also do not find any more related information on this online.

How can I install the remote spark kernel? Would be very benificial for local development, rather than from the data factory UI.

 

I am on windows 10 by the way.

 

Hope you can help.

 

Kind Regards,
Kjell

 

 

1 ACCEPTED SOLUTION
v-nikhilan-msft
Community Support
Community Support

Hi @kjellvs ,
Thanks for using Fabric Community.

You should use the synapse-spark-kernel for your notebook code to run without any error.
I have attached the screenshot for your reference.

 vnikhilanmsft_0-1697821914446.png

While adding the Synapse VS code extension into your Visual Studio, there are some prerequisites which have to be installed in your local desktop. If you install those prerequisites successfully, then extension will auto create the synapse-spark-kernel and install pyspark and other packages. You will able to find this environment after installing all the prerequisites.

Maybe you have installed conda, but forgot to set the environment variable.

vnikhilanmsft_1-1697821914257.png

 

When you activate the extension, it will show the initialization progress and output in output channel like this:

 

 vnikhilanmsft_2-1697822191520.png

 

Please refer this document for installing the prerequisites : Link1

Hope this helps. Please let us know if you have any further queries.

 

 

 

View solution in original post

3 REPLIES 3
kjellvs
Helper I
Helper I

@v-nikhilan-msft thank you for your swift reply.

I missed the prerequisites, thats likely why it doesn't work indeed. I think the link you meant is this one: link2.

 

It works now thanks!

Thank you for following up,

Kjell

Hi @kjellvs ,
Glad that your query got resolved. Please continue using Fabric Community for any help regarding your queries.

v-nikhilan-msft
Community Support
Community Support

Hi @kjellvs ,
Thanks for using Fabric Community.

You should use the synapse-spark-kernel for your notebook code to run without any error.
I have attached the screenshot for your reference.

 vnikhilanmsft_0-1697821914446.png

While adding the Synapse VS code extension into your Visual Studio, there are some prerequisites which have to be installed in your local desktop. If you install those prerequisites successfully, then extension will auto create the synapse-spark-kernel and install pyspark and other packages. You will able to find this environment after installing all the prerequisites.

Maybe you have installed conda, but forgot to set the environment variable.

vnikhilanmsft_1-1697821914257.png

 

When you activate the extension, it will show the initialization progress and output in output channel like this:

 

 vnikhilanmsft_2-1697822191520.png

 

Please refer this document for installing the prerequisites : Link1

Hope this helps. Please let us know if you have any further queries.

 

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.