Skip to content

IPython widget for displaying pandas DataFrames (Jupyterlab)

License

Notifications You must be signed in to change notification settings

JoelStansbury/dfwidget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dfwidget

IPython widget for displaying pandas DataFrames.

Features

  • Scrolling works as you would expect.

alt text

  • Clickable rows set the trait value to the index of the row selected.
  • Clickable headers to sort the data (only ascending at-the-moment).
  • Reset button above the index column.
  • The auto-spacing function seems to be ok (no extensive testing).

alt text

  • Looks almost exactly like your typical Pandas DataFrame.

Requirements

  • ipywidgets
  • nodejs
  • ipyevents
  • pandas

Prerequisites

pip install jupyterlab
pip install ipywidgets
pip install nodejs
pip install ipyevents
jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter labextension install @jupyter-widgets/jupyterlab-manager ipyevents
pip install pandas

Installing dfwidget. From the package root...

pip install .

Alternatively, you could just copy and paste src/dfwidget/main.py wherever you want it so long as you have ipyevents working.

About

IPython widget for displaying pandas DataFrames (Jupyterlab)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages