def make_header(self):
img = io.open(os.path.join(mdt.PACKAGEPATH, '_static_data/img/banner.png'), 'r+b').read()
encoded = base64.b64encode(img).decode('ascii')
img = '<img style="max-width:100%" src=data:image/png;base64,'+('%s>'%encoded)
links = [self._makelink(*args) for args in
(("http://moldesign.bionano.autodesk.com/", 'About'),
("https://github.com/autodesk/molecular-design-toolkit/issues", 'Issues'),
("http://bionano.autodesk.com/MolecularDesignToolkit/explore.html",
"Tutorials"),
('http://autodesk.github.io/molecular-design-toolkit/', 'Documentation'),
('https://lifesciences.autodesk.com/', 'Adsk LifeSci')
)]
linkbar = ' '.join(links)
return ipy.HTML(("<span style='float:left;font-size:0.8em;font-weight:bold'>Version: "
"{version}</span>"
"<span style='float:right'>{linkbar}</span>"
"<p>{img}</p>").format(img=img, linkbar=linkbar, version=mdt.__version__))
compute.py 文件源码
python
阅读 24
收藏 0
点赞 0
评论 0
评论列表
文章目录