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!AXHH#pyhandsontable/templates/sheet.html {{ title }}
PK!H)ȉeVX$pyhandsontable-0.1.3.dist-info/WHEEL 1 0 нRn>Z(8_@ cfM6߅CUr$o­cbaP>PK!HډNJ4'pyhandsontable-0.1.3.dist-info/METADATATMoFW d,NB]$vjTnr iEɵKDYRD7oo˙cg4+89>1)b2J:1"FqrM4)e,UZЀ*z/UJE׍#'p2VcJ*X9m:U~dJ 5i3Lz5I PZʺ}}fLncsᩮIeUG_5̲m1 kx[2Df#mBpQ5x~rgTiaH7LZ Lm|(>y{`ɡ䷃3N8;8m~ܠu)lЩ= ]۩/S`y~<ؔ՛00 9\Dy2Y2Qd;e8c.Qik [{M{Dcx$*|J4^b fêYES" vx ;Z]#8q@1/bQ:[~%g0r^4;^mt~( .}i?PK!H}Z3%pyhandsontable-0.1.3.dist-info/RECORDKr0нgA4E Z6L(HD-+gZ7}x/-xKiE+2%^"ENE$&]c