Bring the power of Handsontable to Python and Jupyter Notebook
Project description
pyhandsontable
View a 2-D array, probably from pyexcel in Jupyter Notebook, and export to *.html
.
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. Set to 200.
- css: url of the Handsontable CSS
- js: url of the Handsontable Javascript
- css_custom: your custom CSS
- js_pre: Javascript before rendering the table (but after most other things.)
- js_post: Javascript after rendering the table.
- 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
Release history Release notifications | RSS feed
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.3.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for pyhandsontable-0.1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffa7b6656295718b4a211e64cdd1747a530e8b43477e7d7e828c1e883846221f |
|
MD5 | 359fe8102684af8c7c6efbb55dd4ef59 |
|
BLAKE2b-256 | 40956429ac46ae0d9f5217358907a3648a7cec53bf5f3e66f53ff220de4c7346 |