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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
naeljb
Helper I
Helper I

can't display this visual message using python

I used Python to do some visuals.  I was was working/showing perfectly. Then a couple days later, I wanted to revisit these visuals.  But, I got the following message: 

 

"Can't display this visual.   The python process ended unexpectedly, so the visual can't be displayed. Please try running it again."     

 

Now it seems that I got this message for every  python visual that I want to do, like python was not working anymore.   Have experimented that, what causes this? Any advice to fix this?

 

Many thanks in advance 

5 REPLIES 5
v-lid-msft
Community Support
Community Support

Hi @naeljb ,


Does this issue have been resolved?Could you please provide more details about it If it still not be resolved? Please don't contain any Confidential Information or Real data in your reply.

 


Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi,

Actuallly when I publish it in Power Bi service, it works and I can see the vizual. However, when I return to Desktop, I still get the error message. 

 

 

 

Greg_Deckler
Super User
Super User

Can you run the code in your Python IDE?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Yes actually, I did it using Pycharm and I was wondering why it doesn't work with Powerbi

Hi @naeljb ,

 

Does it also run into error in Power BI Desktop, or only occur in Power BI Service? If it only happen in Power BI Service, please try to restart and re-install the personal gateway, then check the python environment of machine running gateway.

 

If this error also happen in Power BI Desktop, please consider the limitation of python visual in this document: https://docs.microsoft.com/en-us/power-bi/desktop-python-visuals#known-limitations

 

  • Data size limitations. Data used by the Python visual for plotting is limited to 150,000 rows. Additionally, the input data has a limit of 250 MB.
  • Calculation time limitation. If a Python visual calculation exceeds five minutes the execution times out which results in an error.
  • Relationships. As with other Power BI Desktop visuals, if data fields from different tables with no defined relationship between them are selected, an error occurs.
  • Only plots that are plotted to the Python default display device are displayed correctly on the canvas. Avoid explicitly using a different Python display device.
  • Python visuals do not support renaming input columns. Columns will be referred to by their original name during script execution.

 

Please also check the python environment in the machine running Power BI Destkop, using other IDE to check if the script can work with same environment.


Best regards,

 

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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