PK!C++pyhandsontable/__init__.pyfrom .app import generate_html, view_table PK!Gpyhandsontable/app.pyfrom jinja2 import Environment, PackageLoader from threading import Timer from tempfile import NamedTemporaryFile 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): html_file = NamedTemporaryFile(mode='w', delete=False) try: html_file.write(generate_html(data=data, width=width, height=height, **kwargs)) html_file.close() return IFrame(html_file, width=width, height=height) finally: Timer(5, os.unlink, args=[html_file.name]).start() PK!1>ĉ#pyhandsontable/templates/sheet.html {{ title }}
PK!H)ȉeVX$pyhandsontable-0.1.1.dist-info/WHEEL 1 0 нRn>Z(8_@ cfM6߅CUr$o­cbaP>PK!HL!'pyhandsontable-0.1.1.dist-info/METADATATO@ ~_ai/5i(<VDM&w !(?4mgak2V(0.t[̬'%O8`̨*4m_9@ )/SpٺBI`+ֺuP&J͂cUQ1焅s&A.\QOTU jU6WtDJҲUFreAyM]آř[ BP\SϹx a֊ H IF'pQoxҨ`U&k.=hgEUǕ=V^c'NkaȆGº!Xqw3`cFĘ;PmEm:">@7{ӟo=he_zTGܽ z޾`K(j 'I}g]%׈{p{[_!{BgCg ܮysNiJAN?ᯑ3 NBmjykS>/p8-`wA=vdpT `raTHjnt2hsݠlEq\XB::A B*F9r"Ky3jaV5h J8sdTsL45ٖ-3JPIVyˎ8vPK!Hbo 2%pyhandsontable-0.1.1.dist-info/RECORD̻v0oC(ڊTX8@g _.Ӻx~[_41isXed"buߏEPt,gDn8AAYL!n?;!6񅢝O %R"?f<-yf,OS>yI``>bqjAL`PdaV`$K-Χү0.*gheۛ{nG0i=Ḃ(#VF9By邮?]ۇ}K涻.Z1*Q6 k1l4;ARٿMoo PK!C++pyhandsontable/__init__.pyPK!Gcpyhandsontable/app.pyPK!1>ĉ#|pyhandsontable/templates/sheet.htmlPK!H)ȉeVX$xpyhandsontable-0.1.1.dist-info/WHEELPK!HL!' pyhandsontable-0.1.1.dist-info/METADATAPK!Hbo 2%( pyhandsontable-0.1.1.dist-info/RECORDPK