Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Error displaying widget: model not found" in notebook launched in Jupyter Lab #19

Closed
SteveWald opened this issue Jun 24, 2021 · 5 comments

Comments

@SteveWald
Copy link

SteveWald commented Jun 24, 2021

Greetings--

I have had success running the demo code in a jupyter notebook launched via jupyter notebook. However, the very same demo code (in the exact same notebook that worked before!) fails when attempting to render the report when launched within Jupyter Lab. In place of rendering the embedded report, the cell instead outputs this generic Jupyter widget-fail message: "Error displaying widget: model not found"

I have followed the special installation instructions provided in the README for Jupyter Lab both in existing and brand new conda environments. In the Jupyter Lab UI, the extension shows as being installed and activated. The txt file attached documents a "fresh" conda environment with the package and lab extensions installed and jupyter lab successfully built, but where I'm still seeing the error. I'm working in a relatively new and updated Windows 10 environment.

Love this package! . . . and hope you can help me get it to run in Jupyter Lab. Thank you!

Steve
pbi_env.txt

@SteveWald SteveWald changed the title "Error displaying widged: model not found" in notebook launched in Jupyter Lab "Error displaying widget: model not found" in notebook launched in Jupyter Lab Jun 24, 2021
@gbrault
Copy link

gbrault commented Jul 15, 2021

I have the same issue

@YC-1412
Copy link

YC-1412 commented Jul 23, 2021

Same issue here. Hope it could be solved soon. The package would be really helpful. Thank you!

@ghost
Copy link

ghost commented Sep 22, 2021

+1

1 similar comment
@vitorkol
Copy link

+1

@bapat-atharva
Copy link
Contributor

bapat-atharva commented Apr 19, 2023

Hi everyone,

After some investigation, we found that this issue is not related to our package, rather the package manager conda.

Here are couple of solutions to resolve it-

  1. Create a new virtual environment with conda
  • conda create --name envname
  • Install the required libraries (powerbiclient, jupyterlab, ipywidgets, ...)
  • Run the jupyterlab
  1. Update conda dependencies (for base environment)
  • conda uninstall jupyterlab
  • conda install -c conda-forge jupyterlab jupyterlab_widgets ipywidgets
  • Run the jupyterlab

For either of them, ensure you have these extensions enabled-
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants