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!dȑ#pyhandsontable/templates/sheet.html {{ title }}
PK!H)ȉeVX$pyhandsontable-0.1.4.dist-info/WHEEL 1 0 нRn>Z(8_@ cfM6߅CUr$o­cbaP>PK!HԧJ4'pyhandsontable-0.1.4.dist-info/METADATATMo8W ЋXn҅1Mi7iu=MK#Q~J4AlI7o y̱3˕LaGtS1[%[m8#z!iRpYZU^8GBetƚTrNt8,"ɔjfVjku.2%}̹&[U |!n0˖KA(mwe EͬG"4OpQo$֨0!,=P|ׇi8987ѿs6֥p=CorF ޾NFgtfFn@'i] ׎\_P9k7$/sQ׳}19eAk F \gXdn.A{pq͏ʉzWE|>d~*h JhYugosW9 B^V$+,spt\1S~j:2]n)bpanp\\Cx /T%TM^@j/$Zb;hPBfޒw{17uq2o)4>43mH.X(`P渽;;`EBEK eN/uN,xބYȱ.'rϣrdߌ$d4t)Ys}H[cE1Uksl%Q!kXIX0mV*:InSȨ2j?FpnP]y\Sxٶyw,/L}֧;o~/~t^ PK!H]A7%pyhandsontable-0.1.4.dist-info/RECORD͖BP}ς~Dʰqn(r]fϪsfżwY iIµO/(gE8[BXu}- X57΀٤ aE} {ǃ$9kNK oHn_ !:QѼn1y?<\AkcuQ"fm˓\