Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hi,
I have 4 visuals of Python script on the same page whenever i switch to different page and come back to the same page. The Visuals shoes unexpexted error. And then i have to rerun teh script again to get the visulaization. SO can some one help me
Hi @Anonymous
Which version of Power BI and Python you use?
Do you set up correct "detected python home directions" and "detected python IDEs" in "Option and settings" for Power BI?
You could check if you do all the right configuration following this article:
https://carldesouza.com/installing-setting-up-python-for-power-bi/
If the error still occurs, please share some example of your python scripts.
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Here is teh Python script used,
Hi @Anonymous
As tested, it works on my side. please check your setting.
"swtich to other page" on my side means to click on "Page3", then click on "Page2" to see the python visual still working.
In addition, Please use the lastest version of power bi.
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 26 | |
| 23 | |
| 19 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 46 | |
| 46 | |
| 43 | |
| 36 | |
| 31 |