def __init__(self, shell):
super(PixiedustNodeMagics,self).__init__(shell=shell)
display(HTML(
"""
<div style="margin:10px">
<a href="https://github.com/ibm-cds-labs/pixiedust_node" target="_new">
<img src="https://github.com/ibm-cds-labs/pixiedust_node/raw/master/docs/_images/pdn_icon32.png" style="float:left;margin-right:10px"/>
</a>
<span>Pixiedust Node.js</span>
</div>
"""
))
# create Node.js sub-process
path = os.path.join(__path__[0], 'pixiedustNodeRepl.js')
self.n = Node(path)
ShellAccess.npm = Npm()
ShellAccess.node = self.n
评论列表
文章目录