Sign inGet started
← Back to all guides

Optimizing qgrid functionality in Deepnote

By Filip Žitný

Updated on March 6, 2024

We will provide a solution for import error when using "qgrid" as a DataFrame widget in your Deepnote notebook. This error is usually due to an incompatibility issue with updated versions of ipywidgets. However, We've got a solution for you that involves downgrading ipywidgets to a version that works well with qgrid.

If you have been using "qgrid" as a DataFrame widget in your Deepnote notebook and encountered the error:

register() missing 1 required positional argument: 'widget'

Downgrade ipywidgets

This error usually occurs when ipywidgets gets updated to a version that's not compatible with qgrid. To fix this, you can downgrade ipywidgets to version 7.0.1, which is known to work well with qgrid.

pip install ipywidgets===7.0.1

Example

DataFramedf = pd.DataFrame({'A': [1, 2, 3], 'B': [4, 5, 6]})
qgrid_widget = qgrid.show_grid(df, show_toolbar=True)
qgrid_widget

Alternatives to qgrid

If you are looking for alternatives to qgrid due to its lack of updates or other reasons, consider the following:

  1. Ipysheet

    Ipysheet is another interactive widget for DataFrames, though it has limited support in some platforms like Deepnote.

  2. Native dataframe tools in Deepnote

    Deepnote offers its own native DataFrame tools, although they currently lack some editing features found in qgrid. If you primarily use Deepnote, keep an eye on updates to their native tools as they may introduce more features in the future.

  3. Pandas GUI libraries

    There are several other GUI libraries that can be used with Pandas DataFrames, such as pandasgui and datapane. These may offer additional functionality and better compatibility.

If you encounter further issues, don't hesitate to get in touch with our support. Happy visualizing in Deepnote!

Filip Žitný

Data Scientist

Follow Filip on Twitter, LinkedIn and GitHub

That’s it, time to try Deepnote

Get started – it’s free
Book a demo

Footer

Solutions

  • Notebook
  • Data apps
  • Machine learning
  • Data teams

Product

Company

Comparisons

Resources

  • Privacy
  • Terms

© Deepnote