PK ! C+ + pyhandsontable/__init__.pyfrom .app import generate_html, view_table
PK ! pE pyhandsontable/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 ! 1>ĉ # pyhandsontable/templates/sheet.html
{{ title }}
PK !H)ȉeV X $ pyhandsontable-0.1.2.dist-info/WHEEL
1
0нRn>Z(8_@
cfM6߅CUr$ocbaP>PK !HƘq ! ' pyhandsontable-0.1.2.dist-info/METADATATQO@~_ai/4t<
MnwB4(0MClS芬Z07֔JT"Hx$.FۥJU/ nɂx
/tQgD85ENXzo\:җ$t=4͢U;|ADf{~_kX4צpYهk:F"e?fPK +tNN%qERHSz 4[]XФTEå'6ZvU|ne=WW#-H:T8=m2}'01h3fPc mۃ :"Yi<>:dMegXs?uxrWĕF
2VttQs_ ի̷>x#.}]cf;'ω
RdM1;fW>Zr}$Y~o++d/譼ƬE[@b Y#!"Wnp_TrJo2{|Ë?x,i5E
'|Z40\g.^\?([q'Cxm%VTBD@tʊݑ29GNMR:nRf%RxTo6Y|/smCeze˭6G,SR͓;-y^(Iğ~pPK !H3+|5 % pyhandsontable-0.1.2.dist-info/RECORDKr0 нg$.G+u6P U9}WδvyޔCEǁZVs)%E}5eJqG:)4͏LyVm8CN~Y`I+f]h
][a{q4Y .k ĄAkU]TUy[zu/hᩫK3h9 d IZvu^oӬ|Josm.ƹw)Lr?g'Ђ |&^"Kb'8Km\v0䀢n##VPK ! C+ + pyhandsontable/__init__.pyPK ! pE c pyhandsontable/app.pyPK ! 1>ĉ # pyhandsontable/templates/sheet.htmlPK !H)ȉeV X $ ~ pyhandsontable-0.1.2.dist-info/WHEELPK !HƘq ! ' pyhandsontable-0.1.2.dist-info/METADATAPK !H3+|5 % / pyhandsontable-0.1.2.dist-info/RECORDPK