Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago

Error with embeding a report into jupyter notebook

Hello everyone!

My code in jupyter notebook looks like this:

from powerbiclient import Report, models
from powerbiclient.authentication import DeviceCodeLoginAuthentication

 

auth = DeviceCodeLoginAuthentication()

 

workspace_id = '111111111'
report_id = '2222222'


# Create an instance of the Power BI Report
power_bi_report = Report(group_id=workspace_id, report_id=report_id, auth=auth)

 

power_bi_report

 

 

But the report doesn't embed. And O got an error:
[Open Browser Console for more detailed log - Double click to close this message] Failed to load model class 'ReportModel' from module 'powerbi-jupyter-client' Error: Script error for "powerbi-jupyter-client" http://requirejs.org/docs/errors.html#scripterror at makeError (https://tmp-ai-engine.notebook.eu-central-1.sagemaker.aws/static/nbclassic/components/requirejs/require.js?v=d37b48bb2137faa0ab98157e240c084dd5b1b5e74911723aa1d1f04c928c2a03dedf922d049e4815f7e5a369faa2e6b6a1000aae958b7953b5cc60411154f593:168:17) at HTMLScriptElement.onScriptError (https://tmp-ai-engine.notebook.eu-central-1.sagemaker.aws/static/nbclassic/components/requirejs/require.js?v=d37b48bb2137faa0ab98157e240c084dd5b1b5e74911723aa1d1f04c928c2a03dedf922d049e4815f7e5a369faa2e6b6a1000aae958b7953b5cc60411154f593:1735:36)

 

 

 
Please help me with it

 

4 Replies