What to do when the Power BI service upgrades the Python engine
As we did in Chapter 2, Configuring R with Power BI, let’s assume that you have already developed and published reports containing Python visuals using the new environment you created earlier. Suppose that Microsoft decides to upgrade the Python version supported by the Power BI service, and consequently to upgrade the versions of the currently supported packages as well. As you may have already guessed, it is likely that these updates can cause the code to fail (it is a rare event as very often, backward compatibility is guaranteed).
TIP
In such circumstances, it is often more convenient to create a new environment on the fly, aligned to the updated requirements from Microsoft, through the Python script you have already used previously. Next, you’ll need to test reports containing Python visuals that were already published on the service on Power BI Desktop, making sure that they reference...