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!X#pyhandsontable/templates/sheet.html {{ title }}
{% if js_pre is defined %} {% endif %} {% if js_post is defined %} {% endif %} PK!H_zTT$pyhandsontable-0.1.7.dist-info/WHEEL A н#Z;/"d&F[xzw@Zpy3Fv]n0H*J>mlcAPK!H'pyhandsontable-0.1.7.dist-info/METADATAUnF}WLW ;u;SrV\{^$E,ʗ5]8{̙ݳ+hF0c A K*3E[Đ AMGedՊP9S0]$`>y];D}V-Ε`,6 J  ժZ ȹ).YR&ȱ9X$0iW5^{6 +x["DOslvd|HӊZsΐ]F-YQ򣔩QB*wVQ'8%pd?afs: C983fSõCŧxLx쎭xwOt*ۿ ]r(SÈ]. i9Ԣޛ9zAŴ^=`KΪ:2. őB5;\Z!qƠ+^|b#+zӰ}hգ/(>j 7q5F 5[wgM.~3Z+d҉jNЁBZGF|>GZ ,\#cxUD6YqMbj4LZF@$3Ա۠Ke ފg<d((nu4e.EQ *~Ws,SU} U 3lh8$ZT[nOg3ܽD-mS"ZyÖVޥ00Lfl2k̓.\G% kſ@td΋h^& BrK`L<_!wpZ\:2Ƙ@ %;|+3HBWF`Uk$ v6 :g[sqƳ>2tWL.Fq`Be<;^6m^( 6]pÝ7r7 G[/ PK!Hxu7%pyhandsontable-0.1.7.dist-info/RECORD;r@>gA+R|D 4 vS9"x# u;NgY,xh(}eqq{F}jFCG)U~k|#AD+ه*kbt}y)4M tQۇdbl FsZ%+'MI$ ŸZ