You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm.install() seems to install modules in the user directory. Is there some way in pixiedust_node to refer to modules installed in the same directory as the notebook file or control the installation location of npm.install()?
The text was updated successfully, but these errors were encountered:
It turned out to be pretty trivial to enable this in the code by doing something along the lines of
# Node home directory
if hasattr(NodeBase, 'node_local') and NodeBase.node_local == True:
self.node_home = os.getcwd()
else:
self.node_home = os.path.join(home, 'node')
if not os.path.exists(self.node_home):
os.makedirs(self.node_home)
...although I haven't tried to figure out how to pass in the value to enable the local directory use at init time. Is there any interest adding this functionality? I could make an attempt to implement something and make a pull request if there is.
npm.install() seems to install modules in the user directory. Is there some way in pixiedust_node to refer to modules installed in the same directory as the notebook file or control the installation location of npm.install()?
The text was updated successfully, but these errors were encountered: