Loading repository data…
Loading repository data…
kiddojazz / repository
In this repo I will show you how to embed your Power BI report in Python Jupyter Notebook
In this repo I will show you how to embed your Power BI report in Python Jupyter Notebook The process of Embedding Microsoft Power BI in Python Jupyter Notebook is simple and easy to use.
Basic knowledge of Microsoft Power BI, Power BI Service(Web), how to Publish from Power BI Desktop to web.
!pip install powerbiclient
#import all necessary library
from powerbiclient import Report
NOTE: The Group ID and Report ID can be gotten from your Power BI Service workspace URL
The Image below will explain better on how to go about it.

This section is where you will need to sign in to your Azure Cross Platform authentification.
https://microsoft.com/devicelogin.code provided.# Authenticate the device to embed
from powerbiclient.authentication import DeviceCodeLoginAuthentication
# Initiate device authentication
device_auth = DeviceCodeLoginAuthentication()

This is the last step in which you generate your Power BI report.
# Generate the report
report = Report(group_id=group_id, report_id=report_id, auth=device_auth)
report