diff --git a/README.md b/README.md index 7b5551d..f4fae4f 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ var request = require('request-promise'); You may also do : -- `npm.remove('packagename')` - to remove an npm module +- `npm.uninstall('packagename')` - to remove an npm module (or `npm.remove('packagename')`) - `npm.list()` - to list the installed modules ## Node.js helper functions diff --git a/pixiedust_node/npm.py b/pixiedust_node/npm.py index 376ffc6..cb32f05 100644 --- a/pixiedust_node/npm.py +++ b/pixiedust_node/npm.py @@ -36,7 +36,10 @@ def install(self, module): self.cmd('install', module) def remove(self, module): - self.cmd('remove', module) + self.cmd('uninstall', module) + + def uninstall(self, module): + self.cmd('uninstall', module) def list(self): self.cmd('list', None) diff --git a/pixiedust_node/package.json b/pixiedust_node/package.json index d2cdb0f..ec4716a 100644 --- a/pixiedust_node/package.json +++ b/pixiedust_node/package.json @@ -1,6 +1,6 @@ { "name": "pixiedust_node", - "version": "0.1.4", + "version": "0.1.5", "description": "Run Node.js cells in Jupyter notebooks with Pixiedust", "main": "pixiedustNodeRepl.js", "scripts": { diff --git a/pixiedust_node/pixiedustNodeRepl.js b/pixiedust_node/pixiedustNodeRepl.js index db7e212..31b550d 100644 --- a/pixiedust_node/pixiedustNodeRepl.js +++ b/pixiedust_node/pixiedustNodeRepl.js @@ -65,7 +65,7 @@ const startRepl = function(instream, outstream) { console.log(); console.log("Python helpers:"); console.log("* npm.install(x) - install npm package x"); - console.log("* npm.remove(x) - remove npm package x"); + console.log("* npm.uninstall(x) - remove npm package x"); console.log("* npm.list() - list installed npm packages"); console.log("* node.cancel() - cancel Node.js execution"); console.log("* node.clear() - clear and reset the Node.js engine"); diff --git a/setup.py b/setup.py index bf1634b..9a0467f 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages setup(name='pixiedust_node', - version='0.1.4', + version='0.1.5', description='Pixiedust extension for Node.js', url='https://github.com/ibm-watson-data-lab/pixiedust_node', install_requires=['pixiedust'],