using qgrid with jsdf¶

Links: notebook, html, PDF, python, slides, slides(2), GitHub

This follows module qgrid. You can find some options at SlickGrid/Grid-Options.

import pyensae
%load_ext pyensae
import pandas
df = pandas.DataFrame([{"x":2, "y":3},{"x":4, "y":5}])
df
x y
0 2 3
1 4 5
%jsdf
''
%jsdf -h
usage: jsdf [-h] [--defaultColumnWidth DEFAULTCOLUMNWIDTH]
            [--enableColumnReorder ENABLECOLUMNREORDER]
            [--multiColumnSort MULTICOLUMNSORT] [--rowHeight ROWHEIGHT]
            [--showHeaderRow SHOWHEADERROW]
            [--forceFitColumns FORCEFITCOLUMNS] [--autoHeight AUTOHEIGHT]
            [--enableCellNavigation ENABLECELLNAVIGATION]
            [--remote_slick REMOTE_SLICK] [--precision PRECISION]
            [--editable EDITABLE]
            df
display a pandas DataFrame based on module qgrid
positional arguments:
  df                    dataframe to display
optional arguments:
  -h, --help            show this help message and exit
  --defaultColumnWidth DEFAULTCOLUMNWIDTH
                        see https://github.com/mleibman/SlickGrid/wiki/Grid-
                        Options
  --enableColumnReorder ENABLECOLUMNREORDER
                        see https://github.com/mleibman/SlickGrid/wiki/Grid-
                        Options
  --multiColumnSort MULTICOLUMNSORT
                        see https://github.com/mleibman/SlickGrid/wiki/Grid-
                        Options
  --rowHeight ROWHEIGHT
                        see https://github.com/mleibman/SlickGrid/wiki/Grid-
                        Options
  --showHeaderRow SHOWHEADERROW
                        see https://github.com/mleibman/SlickGrid/wiki/Grid-
                        Options
  --forceFitColumns FORCEFITCOLUMNS
                        see https://github.com/mleibman/SlickGrid/wiki/Grid-
                        Options
  --autoHeight AUTOHEIGHT
                        see https://github.com/mleibman/SlickGrid/wiki/Grid-
                        Options
  --enableCellNavigation ENABLECELLNAVIGATION
                        see https://github.com/mleibman/SlickGrid/wiki/Grid-
                        Options
  --remote_slick REMOTE_SLICK
                        use remote link for the javascript library or local
  --precision PRECISION
                        see function qgrid.set_defaults
  --editable EDITABLE   make the output editable
usage: jsdf [-h] [--defaultColumnWidth DEFAULTCOLUMNWIDTH]
            [--enableColumnReorder ENABLECOLUMNREORDER]
            [--multiColumnSort MULTICOLUMNSORT] [--rowHeight ROWHEIGHT]
            [--showHeaderRow SHOWHEADERROW]
            [--forceFitColumns FORCEFITCOLUMNS] [--autoHeight AUTOHEIGHT]
            [--enableCellNavigation ENABLECELLNAVIGATION]
            [--remote_slick REMOTE_SLICK] [--precision PRECISION]
            [--editable EDITABLE]
            df