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 nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
I'm getting a visual error when trying to run a simple python code. The code ran perfectly 2-3 years ago but I've revisisted my power bi file and the visual is getting a "Can't display this visual" message. My only line of code right now is importing some packages
Solved! Go to Solution.
It's been resolved. Just had to redirect where my python was saved on my computer. For future people, these were my steps.
1. Find where your python is saved (Source used here.)
2. Using that path, go to power bi file, go to settings, go to options, go to Python scripting, make sure Python home directory is the same path as to where your python is saved.
HI @RainAndSnow,
I'm glad to hear you find the solution and sharing operations steps here, they will help other users who faced a similar issues.
Regards,
Xiaoxin Sheng
It's been resolved. Just had to redirect where my python was saved on my computer. For future people, these were my steps.
1. Find where your python is saved (Source used here.)
2. Using that path, go to power bi file, go to settings, go to options, go to Python scripting, make sure Python home directory is the same path as to where your python is saved.
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |