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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
S-Wald
Regular Visitor

PowerBI-Jupyter widget does not render in Jupyter Lab (only Jupyter Notebook)

Greetings--

I've had success running the powerbiclient embedding in a Jupyter notebook lauched via the old-fashioned "jupyter notebook" server but cannot get this same notebook to run when launched from Jupyter Lab. I have followed to the letter the special instructions for installing powerbiclient in Jupyter Lab found on the code repository here: https://github.com/microsoft/powerbi-jupyter 

I have executed these instructions in both existing conda environments and brand new ones. Furthermore, I've tried to add a more explicit widget installation command specifying the powerbi widget: 

 

jupyter labextension install @jupyter-widgets/jupyterlab-manager powerbi-jupyter-client

 

as well as this variation, both of which successfully execute from an Anaconda command prompt (in Windows 10):

 

jupyter labextension install powerbi-jupyter-client

 

After these commands, the extension shows as installed and enabled in Jupyter Lab:

SWald_0-1624394049859.png

 But whenever I finally run the cell to render the report, it returns the error: "Error displaying widget: model not found", which is a common error in Jupyter Lab for widgets that are not installed (not just for the powerbiclient widget).

What am I doing wrong? Thanks!

S-Wald

2 REPLIES 2
gbrault
New Member

My assumption is that jupyter lab version is not in synch with the power-bi widget.

I was not able, looking to the github site to find the version power-bi widget is supporting.

v-yiruan-msft
Community Support
Community Support

Hi @S-Wald ,

Please review the content in the following links, hope they can help you resolve the problem.

Widgets dont display in jupyter lab (check the post from adhg)

Install nodeJS (yep, the docs explicitly mentioned that). So for me what worked was:
1. Install nodeJS (https://nodejs.org/en/)
2. pip install ipywidgets
3. jupyter nbextension enable --py widgetsnbextension
4. jupyter labextension install @jupyter-widgets/jupyterlab-manager
5. (may need to restart your lab)

Help on jupyter lab –no-browser where widgets, ipyturtle do not render  (check the solution from robfatland)

How to get ipywidgets working in Jupyter Lab? 

Best Regards

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

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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

Top Solution Authors
Top Kudoed Authors