How to use the pixiedust.utils.shellAccess.ShellAccess.node function in pixiedust

To help you get started, we’ve selected a few pixiedust examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pixiedust / pixiedust_node / pixiedust_node / __init__.py View on Github external
def __init__(self, shell, node):
        super(PixiedustNodeMagics,self).__init__(shell=shell) 
        display(HTML(
"""
            <div style="margin:10px"> 
            <a href="https://github.com/pixiedust/pixiedust_node"> 
            <img style="float:left;margin-right:10px" src="https://github.com/pixiedust/pixiedust_node/raw/master/docs/_images/pdn_icon32.png"> 
            </a> 
            <span>Pixiedust Node.js</span> 
            </div> 
"""
        ))
        self.n = node
        ShellAccess.npm = Npm()
        ShellAccess.node = self.n