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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
rjacks31
New Member

Running Python Script in Power BI

I have a python script to run a gradio web app. I need to embed the web app on power bi using the HTML Viewer visual. One option that I tried for this was to create a python visual and run my script here, and embed the web app on a different visual.

My requirement is that the script runs on opening Power BI and automatically terminates when I close Power BI. However, the script keeps running in the background even after closing Power BI. Is there any setting to terminate running scripts on closing Power BI or any other option on Power BI for this requirement?

2 REPLIES 2
rjacks31
New Member

Hi @Anonymous ,

 

Thanks for your response. Do you recommend any other option on Power BI that can be used for the requirement that I have described?

Anonymous
Not applicable

Hi @rjacks31 

 

As far as I know, currently, Power BI does not support the ability to automatically terminate Python scripts when Power BI shuts down.

 

Best Regards,
Yulia Xu

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.