Forum Discussion

naelske_cronos's avatar
naelske_cronos
Advocate II
2 years ago
Solved

Fabric Notebooks in VSC Desktop

Hello,

 

I'm trying to run a notebook in Visual Studio Code on my desktop using Jupyter.

I managed to install 'Runtime 1.2' for Fabric into Visual Studio Code.

 

The thing is that I would like to run semantic-link or Fabric API's with and first I need to authenticate with fabric.FabricRestClient. When running this in Fabric in a notebook token are fetched automatically but as I'm using this on my desktop I need to authenticate with a token_provider.

My user is admin and I can make use of a service principal which also has access.

 

I was wondering if anyone already used the token_provider and how do you use this in Python?

 

Thanks!

Kind regards