Real time Pandas dataframe visualisation in Jupyter lab

Question:

I’m looking for a tool that allows to visualize in real time the pandas dataframes with an excel look (filter and sort).

Does anyone know an extension of this type? Knowing of VS code proposes this tool, I am looking for the same thing on Jupyter Lab

When I say real time it means for example, when I modify a dataframe via a Pandas method (with inplace=True), it is reflected in the viewer.

Asked By: Bertrand

||

Answers:

I don’t know of anything that works quite like your describe; however, there’s several that are close:

  • There’s Perspective that features, "A JupyterLab widget and Python client library, for interactive data analysis in a notebook, as well as scalable production Voila and Holoviz applications". See here. It’s built on ipyregulartable.

  • There’s also mitosheet. "Mito is a spreadsheet that lives inside your JupyterLab notebooks. It allows you to edit Pandas dataframes like an Excel file, and generates Python code that corresponds to each of your edits." There’s also the JupyterLab Tabular Data Editor extension.

  • HoloViz’s Panel library DataFrame widget. (I don’t believe this one is limited to JupyterLab.) See under ‘Display’ where it says:

"The DataFrame widget renders an table which allows directly editing the contents of the dataframe with any changes being synced with Python. Note that it modifies the pd.DataFrame in place."

Answered By: Wayne