How to fix qgrid in Jupyter Lab — Error displaying widget: model not found

Tobias Krabel
1 min readDec 5, 2019

--

Many qgrid fans may have encountered the following error when upgrading JupyerLab to 1.0 or higher:

Error displaying widget: model not found
A “Error displaying widget: model not found” message appears when running qgrid on JupyterLab 1.0 or higher.

No widget … that’s annoying.

Now, there is already a PR on the official qgrid github repo that fixes the issue, but it hasn’t been accepted yet. In order to support those of you who want to have any easy way of installing the Jupyter Lab extension for qgrid, we published a working JS version for qgrid 1.1.1 and Jupyter Lab 1.0+ on npm.

Installing the extension takes one line of code

Firs, make sure that you have qgrid 1.1.1 installed

pip install --upgrade qgrid==1.1.1

Then, all you have to do is type the following:

jupyter labextension install @8080labs/qgrid

If you want to directly try out the fix yourself without installing it on your system first, you can check out the binder demo we have created.

We hope that you can now continue to explore your data with qgrid or build great apps on top of it. If you want to see what we built on top of qgrid, you can have a look at bamboolib.

Happy data exploring!

--

--

Tobias Krabel

Co-creator of bamboolib.com. I am always looking for ways to create better tools for Python Data Scientists.