Skip to main content

Bring the power of Handsontable to Python and Jupyter Notebook

Project description

pyhandsontable

Build Status PyPI version shields.io PyPI license PyPI pyversions

View a 2-D array, probably from pyexcel in Jupyter Notebook, and export to *.html.

Installation

pip install pyhandsontable

Usage

>>> from pyhandsontable import generate_html, view_table
>>> view_table(width=800, height=500, data=data_matrix, **kwargs)

Acceptable kwargs

  • title: title of the HTML file
  • maxColWidth: maximum column width. (Default: 200)
  • autodelete: whether the temporary HTML file should be autodeleted. (Default: True)
  • css: url of the Handsontable CSS
  • js: url of the Handsontable Javascript
  • config: add additional config as defined in https://docs.handsontable.com/pro/5.0.0/tutorial-introduction.html
    • This will override the default config (per key basis) which are:
{
  rowHeaders: true,
  colHeaders: true,
  dropdownMenu: true,
  filters: true,
  modifyColWidth: function(width, col){
    if(width > maxColWidth) return maxColWidth;
  }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyhandsontable-0.1.8.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

pyhandsontable-0.1.8-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page