def __init__(self):
from pip._vendor.packaging import version
super().__init__()
self.version = ipy.HTML('<div class="nbv-loader"></div>')
self.textarea = ipy.Textarea(layout=ipy.Layout(width='700px', height='300px'))
threading.Thread(target=self.version_check).start()
p1 = os.path.join(mdt.PACKAGEPATH, "HISTORY.rst")
p2 = os.path.join(mdt.PACKAGEPATH, "..", "HISTORY.rst")
if os.path.exists(p1):
path = p1
elif os.path.exists(p2):
path = p2
else:
path = None
if path is not None:
with open(path, 'r') as infile:
self.textarea.value = infile.read()
else:
self.textarea.value = 'HISTORY.rst not found'
self.textarea.disabled = True
self.children = (self.version, self.textarea)
compute.py 文件源码
python
阅读 29
收藏 0
点赞 0
评论 0
评论列表
文章目录