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

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
RichardMartin
Frequent Visitor

Can't start kernel from notebook in VS Code synapse remote extension

I have set up the Synapse extension in VS code according to the guidelines. I did install JDK8 and conda as prerequisites, making sure to set the environment variables for JDK and conda: JAVA_HOME + adding JDK and condabin to PATH.

The Synapse extension successfully installs the fabric-synapse-runtime-1-1 and fabric-synapse-runtime-1-2 environments and VS code finds them and "loads" them. I am also able to connect to my workspace and find the tables, notebooks etc.

 

However, when i try to run a cell in any notebook, the kernel fails to start. It does now matter with of the two kernels i choose. It warns me about "No interpreter with path <path> found in Python API, will convert Uri path to string as Id", and gives me a `ERR_INVALID_URL` error. Anyone have similar problems?

 

Here is the log output from jupyter:

 

 
16:15:44.212 [info] Telemetry is disabled
16:15:44.213 [info] Experiments are disabled, only manually opted experiments are active.
16:15:53.741 [info] Process Execution: ~\AppData\Local\miniconda3\envs\fabric-synapse-runtime-1-1\python.exe -m pip list
16:16:05.029 [warn] No interpreter with path C:\Users\~\AppData\Local\miniconda3\envs\fabric-synapse-runtime-1-2\python.exe found in Python API, will convert Uri path to string as Id C:\Users\~\AppData\Local\miniconda3\envs\fabric-synapse-runtime-1-2\python.exe
16:16:05.055 [info] Disposing kernel .jvsc74a57bd0f3f096fc69170fdf5af131225790e27197ebddc039bb1ab2a944c3b90a4d6a54.c:\Users\~\AppData\Local\miniconda3\envs\fabric-synapse-runtime-1-1\python.exe.c:\Users\~\AppData\Local\miniconda3\envs\fabric-synapse-runtime-1-1\python.exe.-m#ipykernel_launcher for notebook ~\OneDrive - <company name> AB\Dokument\fabric\<redacted>\SynapseNotebook\<redacted>\history_transformations\history_transformations.ipynb due to selection of another kernel or closing of the notebook
16:16:05.056 [info] Dispose Kernel '~\OneDrive - <company name> AB\Dokument\fabric\<redacted>\SynapseNotebook\<redacted>\history_transformations\history_transformations.ipynb' associated with '~\OneDrive - <company name> AB\Dokument\fabric\<redacted>\SynapseNotebook\<redacted>\history_transformations\history_transformations.ipynb'
16:16:08.100 [info] Process Execution: ~\AppData\Local\miniconda3\envs\fabric-synapse-runtime-1-2\python.exe -m pip list
16:16:16.297 [info] Starting Kernel (Python Path: ~\AppData\Local\miniconda3\envs\fabric-synapse-runtime-1-2\python.exe, Conda, 3.10.12) for '~\OneDrive - <company name> AB\Dokument\fabric\<redacted>\SynapseNotebook\<redacted>\history_transformations\history_transformations.ipynb' (disableUI=false)
16:16:16.328 [info] Process Execution: ~\AppData\Local\miniconda3\envs\fabric-synapse-runtime-1-2\python.exe -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
16:16:16.436 [info] Process Execution: ~\AppData\Local\miniconda3\envs\fabric-synapse-runtime-1-2\python.exe c:\Users\~\.vscode\extensions\ms-toolsai.jupyter-2024.8.1-win32-x64\pythonFiles\vscode_datascience_helpers\kernel_interrupt_daemon.py --ppid 17308
    > cwd: ~\.vscode\extensions\ms-toolsai.jupyter-2024.8.1-win32-x64\pythonFiles\vscode_datascience_helpers
16:16:16.735 [info] Process Execution: ~\AppData\Local\miniconda3\envs\fabric-synapse-runtime-1-2\python.exe -m ipykernel_launcher --f=c:\Users\~\AppData\Roaming\jupyter\runtime\kernel-v370e594ae7f8ef9a4e834b9962586c219ac8ef776.json
    > cwd: ~\OneDrive - <company name> AB\Dokument\fabric\<redacted>\SynapseNotebook\<redacted>\history_transformations
16:26:19.024 [error] Failed to request kernel info [Canceled: Canceled
    at i.value (c:\Users\~\.vscode\extensions\ms-toolsai.jupyter-2024.8.1-win32-x64\dist\extension.node.js:181:24587)
    at r.B (c:\Users\~\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:90:732)
    at r.fire (c:\Users\~\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:90:949)
    at A.cancel (c:\Users\~\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:90:5355)
    at T.cancel (c:\Users\~\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:90:5765)
    at Timeout._onTimeout (c:\Users\~\.vscode\extensions\ms-toolsai.jupyter-2024.8.1-win32-x64\dist\extension.node.js:304:11746)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7)]
16:26:19.035 [info] Process Execution: c:\Windows\System32\taskkill.exe /F /T /PID 19744
16:26:19.036 [warn] Failed to shutdown kernel, .jvsc74a57bd042ca2dda699156c6f0b3a70f3f780ea477e3c370851a4a6c8118eaa21c6db42e.c:\Users\~\AppData\Local\miniconda3\envs\fabric-synapse-runtime-1-2\python.exe.c:\Users\~\AppData\Local\miniconda3\envs\fabric-synapse-runtime-1-2\python.exe.-m#ipykernel_launcher [TypeError: Failed to parse URL from /api/kernels/91b951e1-a408-444c-8761-fb9462f94503?1726496779036
    at new Request (node:internal/deps/undici/undici:4855:19)
    at Object.t [as handleRequest] (c:\Users\~\.vscode\extensions\ms-toolsai.jupyter-2024.8.1-win32-x64\dist\node_modules\@jupyterlab\services\lib\kernel\nonSerializingKernel.js:11:2054)
    at Object.t [as makeRequest] (c:\Users\~\.vscode\extensions\ms-toolsai.jupyter-2024.8.1-win32-x64\dist\node_modules\@jupyterlab\services\lib\kernel\nonSerializingKernel.js:11:730)
    at Object.Vl [as shutdownKernel] (c:\Users\~\.vscode\extensions\ms-toolsai.jupyter-2024.8.1-win32-x64\dist\node_modules\@jupyterlab\services\lib\kernel\nonSerializingKernel.js:11:5781)
    at n.shutdown (c:\Users\~\.vscode\extensions\ms-toolsai.jupyter-2024.8.1-win32-x64\dist\node_modules\@jupyterlab\services\lib\kernel\nonSerializingKernel.js:11:89571)
    at L_.start (c:\Users\~\.vscode\extensions\ms-toolsai.jupyter-2024.8.1-win32-x64\dist\extension.node.js:304:12333)
    at runNextTicks (node:internal/process/task_queues:60:5)
    at process.processTimers (node:internal/timers:511:9)
    at async U_.startKernel (c:\Users\~\.vscode\extensions\ms-toolsai.jupyter-2024.8.1-win32-x64\dist\extension.node.js:304:21270)
    at async Ay.create (c:\Users\~\.vscode\extensions\ms-toolsai.jupyter-2024.8.1-win32-x64\dist\extension.node.js:304:23577)
    at async n_.createJupyterSession (c:\Users\~\.vscode\extensions\ms-toolsai.jupyter-2024.8.1-win32-x64\dist\extension.node.js:285:35993)
    at async n_.startJupyterSession (c:\Users\~\.vscode\extensions\ms-toolsai.jupyter-2024.8.1-win32-x64\dist\extension.node.js:285:34001)
    at async n.wrapKernelMethodImpl (c:\Users\~\.vscode\extensions\ms-toolsai.jupyter-2024.8.1-win32-x64\dist\extension.node.js:304:82604)] {
  [cause]: [TypeError: Invalid URL
    at new URL (node:internal/url:797:36)
    at new Request (node:internal/deps/undici/undici:4853:25)
    at Object.t [as handleRequest] (c:\Users\~\.vscode\extensions\ms-toolsai.jupyter-2024.8.1-win32-x64\dist\node_modules\@jupyterlab\services\lib\kernel\nonSerializingKernel.js:11:2054)
    at Object.t [as makeRequest] (c:\Users\~\.vscode\extensions\ms-toolsai.jupyter-2024.8.1-win32-x64\dist\node_modules\@jupyterlab\services\lib\kernel\nonSerializingKernel.js:11:730)
    at Object.Vl [as shutdownKernel] (c:\Users\~\.vscode\extensions\ms-toolsai.jupyter-2024.8.1-win32-x64\dist\node_modules\@jupyterlab\services\lib\kernel\nonSerializingKernel.js:11:5781)
    at n.shutdown (c:\Users\~\.vscode\extensions\ms-toolsai.jupyter-2024.8.1-win32-x64\dist\node_modules\@jupyterlab\services\lib\kernel\nonSerializingKernel.js:11:89571)
    at L_.start (c:\Users\~\.vscode\extensions\ms-toolsai.jupyter-2024.8.1-win32-x64\dist\extension.node.js:304:12333)
    at runNextTicks (node:internal/process/task_queues:60:5)
    at process.processTimers (node:internal/timers:511:9)
    at async U_.startKernel (c:\Users\~\.vscode\extensions\ms-toolsai.jupyter-2024.8.1-win32-x64\dist\extension.node.js:304:21270)
    at async Ay.create (c:\Users\~\.vscode\extensions\ms-toolsai.jupyter-2024.8.1-win32-x64\dist\extension.node.js:304:23577)
    at async n_.createJupyterSession (c:\Users\~\.vscode\extensions\ms-toolsai.jupyter-2024.8.1-win32-x64\dist\extension.node.js:285:35993)
    at async n_.startJupyterSession (c:\Users\~\.vscode\extensions\ms-toolsai.jupyter-2024.8.1-win32-x64\dist\extension.node.js:285:34001)
    at async n.wrapKernelMethodImpl (c:\Users\~\.vscode\extensions\ms-toolsai.jupyter-2024.8.1-win32-x64\dist\extension.node.js:304:82604)] {
    code: 'ERR_INVALID_URL',
    input: '/api/kernels/91b951e1-a408-444c-8761-fb9462f94503?1726496779036'
  }
}

 

1 ACCEPTED SOLUTION
RichardMartin
Frequent Visitor

Thank you @Anonymous for the advice!

 

Although deleting and reinstalling the conad environments did not solve the problem, as the synapse extension encountered other errors when i removed them, and did not want to reinstall them.

 

What eventually seemed to solve my problem was to reinstall the JDK library inside the AppData-folder of my user, instead of C:\Program Files, as it was originally. After this of course i had to reboot the computer and reinstall the VS Code Synapse extension.

View solution in original post

3 REPLIES 3
RichardMartin
Frequent Visitor

Thank you @Anonymous for the advice!

 

Although deleting and reinstalling the conad environments did not solve the problem, as the synapse extension encountered other errors when i removed them, and did not want to reinstall them.

 

What eventually seemed to solve my problem was to reinstall the JDK library inside the AppData-folder of my user, instead of C:\Program Files, as it was originally. After this of course i had to reboot the computer and reinstall the VS Code Synapse extension.

Anonymous
Not applicable

Hi @RichardMartin ,

 

It's great to hear that you resolved your issue and shared the solution, which will be of great help to users in the community who are experiencing similar issues.

 

Thanks again for your cooperation!

 

Best Regards,
Yang
Community Support Team

Anonymous
Not applicable

Hi @RichardMartin ,

 

Here are a few steps you can try to resolve this issue:

 

Make sure you have the latest version of VS Code and the Synapse extension. Sometimes, bugs are fixed in newer releases.

 

Try deleting and reinstalling the fabric-synapse-runtime-1-1 and fabric-synapse-runtime-1-2 environments. This can sometimes resolve issues with corrupted environments.

 

Please refer to the specific steps:

Reinstall vscode synapse Kernel - Microsoft Fabric Community

 

Ensure that the Jupyter extension in VS Code is up to date.

 

Some people have also encountered errors when running VS Code, all the steps are documented in this link, see if it helps you:

spark not defined using VSCode Synapse Extension - Microsoft Fabric Community

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.