PK!C++pyhandsontable/__init__.pyfrom .app import generate_html, view_table PK!-bpyhandsontable/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, filename='temp.handsontable.html', autodelete=True, **kwargs): # A TemporaryFile does not work with Jupyter Notebook try: with open(filename, 'w') as f: f.write(generate_html(data=data, width=width, height=height, **kwargs)) return IFrame(filename, width=width, height=height) finally: if autodelete: Timer(5, os.unlink, args=[filename]).start() PK!+#pyhandsontable/templates/sheet.html {{ title }}
PK!H_zTT$pyhandsontable-0.1.9.dist-info/WHEEL A н#Z;/"d&F[xzw@Zpy3Fv]n0H*J>mlcAPK!HMT'pyhandsontable-0.1.9.dist-info/METADATAUQSF~ׯN^lƒ Uc )4y`:p֭çɶ&=FRoWg:U {n􁕘 ʳ1Jv_,SxgF/тx /ԞPǩTS{0Iˡ,3Z.O9*G^gџX/81Gŵ)\hiq967kD%*~G,!o\ .nHa2Ocɜ3Ŀ:#c^ ϔ#Ks29SyE'룢$<_sw'g{ЛI9dY7@ aQkAAr8x{@'2+'VT> Is*f-@85̬.ԸPvۻ}Agj,1\m}lw;IKyrIɂ\hKrBad!Tlq4qc[j4L;(rThېTmRp_P ?>amɼ̗Qi(/ 3.az}q3Ac(XO!jDYiY \U&oD(@ P,}j4Eɞ漶7!S<" l<ye&f`8Ψ