Forum Discussion
Can we use Fabric Data Agent in a Python application?
- 1 year ago
Hi NarendraReddy ,
we tried something similar – using Fabric Data Agent outside of notebooks didn’t work for us either. The fabric_data_agent_sdk is currently scoped to run only inside Fabric runtime, so it won’t work in a standalone Python app (yet).
Here’s what we did instead:
1. Use REST API directly
If your agent is connected to a data source, you can expose it via a custom REST endpoint or use Power BI REST APIs to trigger actions indirectly.2. Use GraphQL (like you mentioned)
That’s still the best workaround if you want to integrate with external apps. You can wrap the agent logic in a Fabric notebook and expose it via a GraphQL or REST layer.3. Wait for SDK support
We heard SDK support for external apps is on the roadmap, but no public ETA yet.Let me know if you want a sample setup using notebook + REST wrapper.
If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.
- 1 year ago
Hi NarendraReddy ,
Just checking in – did the steps I shared help resolve the issue?
✅ If it’s working now, feel free to mark the response as the Accepted Solution. This helps others who face the same issue find the fix faster.
✨ And of course, a little Kudos would be much appreciated!If you're still running into trouble, let me know what you've tried so far and I’ll help you dig deeper. We’ll get it sorted!
Hi NarendraReddy ,
we tried something similar – using Fabric Data Agent outside of notebooks didn’t work for us either. The fabric_data_agent_sdk is currently scoped to run only inside Fabric runtime, so it won’t work in a standalone Python app (yet).
Here’s what we did instead:
1. Use REST API directly
If your agent is connected to a data source, you can expose it via a custom REST endpoint or use Power BI REST APIs to trigger actions indirectly.
2. Use GraphQL (like you mentioned)
That’s still the best workaround if you want to integrate with external apps. You can wrap the agent logic in a Fabric notebook and expose it via a GraphQL or REST layer.
3. Wait for SDK support
We heard SDK support for external apps is on the roadmap, but no public ETA yet.
Let me know if you want a sample setup using notebook + REST wrapper.
If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.
- satishkumar1 year agoNew Member
Hi burakkaragoz could you please provide sample setup using notebook + REST wrapper.
- satishkumar1 year agoNew Member
Hi burakkaragoz could you please share sample setup using notebook + REST wrapper.