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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
louloudigr
Frequent Visitor

Python script visual

Hello,

 

I've created a python visual on Powerbi desktop, using Anaconda and matplotlib.

As soon as publish my report on Powerbi Service I cannot view the graph,

I checked and the version of python in my environment is 3.10.11

Does anyone know where the issue is and how I could possibly fix it?

 

thank you

1 ACCEPTED SOLUTION
louloudigr
Frequent Visitor

I had to change the python version to 3.7.7 and use the versions of the libraries mentioned in this article:
https://learn.microsoft.com/en-us/power-bi/connect-data/service-python-packages-support#python-packa...

 

I can display my visual in powerbi service, however some of the features i had added in my visual do not show up the same way as before.

 

I'll need to find a workaround 

View solution in original post

3 REPLIES 3
louloudigr
Frequent Visitor

I had to change the python version to 3.7.7 and use the versions of the libraries mentioned in this article:
https://learn.microsoft.com/en-us/power-bi/connect-data/service-python-packages-support#python-packa...

 

I can display my visual in powerbi service, however some of the features i had added in my visual do not show up the same way as before.

 

I'll need to find a workaround 

mohdasaad94
Helper I
Helper I

One possible reason why your Python visual is not displaying in Power BI Service could be due to a version incompatibility between the Python environment used to create the visual and the Python environment used in Power BI Service.

Power BI Service currently supports Python version 3.5, 3.6, 3.7, and 3.8. If you created your Python visual using Python version 3.10.11, it is possible that the visual may not work in Power BI Service due to this version incompatibility.

To fix this issue, you can try downgrading the Python version in your environment to a supported version such as Python 3.8 or earlier. You can then recreate the visual using this supported version and publish the report again to Power BI Service. This should ensure that the Python visual works correctly in Power BI Service.

Alternatively, you can also try using a Python environment management tool such as Conda to create a separate environment with a supported Python version and install the required packages and dependencies for your visual. This will allow you to isolate the environment used for the visual and ensure that it works correctly in Power BI Service.

Once you have made the necessary changes, you can republish your report to Power BI Service and check if the Python visual is displaying correctly.

Thank you for your reply.

I checked in my anaconda and I can create a new environment choosing the python version.

Which one do you think I should choose in order my graph to visible in PowerBi service?

python versionspython versions

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors