Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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?
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?
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 66 | |
| 44 | |
| 43 | |
| 36 | |
| 23 |
| User | Count |
|---|---|
| 196 | |
| 125 | |
| 105 | |
| 77 | |
| 56 |