Python console in Power BI

I've finally found an efficient way to print debug in Python in Power BI.

As long as we cannot use the function print because we don't have a display of the standard output of Python in Power BI, we can raise exception in order to display a variable or anything else.

You can use raise Exception(TheVariableYouWantToPrint)`

For example, you can do raise Exception(dataset) if you want to check the content of the dataset global variable

You can also print a string like raise Exception("Hello World")

It's not the best way to print something but still, that's the only way I've found to do it easily and efficiently

Tags:

Python

Powerbi