Forum Discussion
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
- Anonymous2 years ago
Hi naelske_cronos,
As the document mention, current you can't use Service principal to invoke fabric API.
For python script invoke rest API, you can try to use requests package to invoke them:
Python request with authentication (access_token) - Stack Overflow
Regards,
Xiaoxin Sheng
1 Reply
- AnonymousNot applicable
Hi naelske_cronos,
As the document mention, current you can't use Service principal to invoke fabric API.
For python script invoke rest API, you can try to use requests package to invoke them:
Python request with authentication (access_token) - Stack Overflow
Regards,
Xiaoxin Sheng