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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.