PK!C++pyhandsontable/__init__.pyfrom .app import generate_html, view_table PK!pEpyhandsontable/app.pyfrom jinja2 import Environment, PackageLoader from threading import Timer import os from IPython.display import IFrame env = Environment( loader=PackageLoader('pyhandsontable', 'templates') ) def generate_html(data, **kwargs): template = env.get_template('sheet.html') return template.render(data=data, **kwargs) def view_table(data, width=800, height=500, **kwargs): # A TemporaryFile does not work with Jupyter Notebook html_file = 'temp.handsontable.html' try: with open(html_file, 'w') as f: f.write(generate_html(data=data, width=width, height=height, **kwargs)) return IFrame(html_file, width=width, height=height) finally: Timer(5, os.unlink, args=[html_file]).start() PK!(~#pyhandsontable/templates/sheet.html {{ title }}
{% if js_pre is defined %} {% endif %} {% if js_post is defined %} {% endif %} PK!H)ȉeVX$pyhandsontable-0.1.5.dist-info/WHEEL 1 0 нRn>Z(8_@ cfM6߅CUr$o­cbaP>PK!H˄J4'pyhandsontable-0.1.5.dist-info/METADATATMoFW dTNB]vbTnr( iEɵKDYR(D7oo˙c4+89>1)b2J:1!Fi2f^f0\*h@p}N]*%rTj]+f%6K*L2%U$g(-e~fLnsᩮIeUG_5̲m1 kxW2Df#mBڨGÚd;2䗣3&Gg. ynWܺ|`cMɶɨuNŒ_ȭh ޟp%y MsqC*WkEo~>+k`0ÚS@at {{zfО&he\8br^$ mizQX,t;h:v .Z%p8H]'!qy_GTʝO{B\0gf''53,CU(]  R_C4,2U{!Ւ G2K7ٌ Y;yS"FybG3׆S`2e[#-VO(uh>lҩ ]۩/S`y~<ؔ00 9\Dy2Y2QI2JFC21Ψg5V}-=1Zͻ26x0)NC"hk xE}q|7PK!C++pyhandsontable/__init__.pyPK!pEcpyhandsontable/app.pyPK!(~#pyhandsontable/templates/sheet.htmlPK!H)ȉeVX$ pyhandsontable-0.1.5.dist-info/WHEELPK!H˄J4'3 pyhandsontable-0.1.5.dist-info/METADATAPK!H";46%pyhandsontable-0.1.5.dist-info/RECORDPK;