Skip to content

Commit

Permalink
Merge pull request #11 from ibm-watson-data-lab/issue9
Browse files Browse the repository at this point in the history
Issue9
  • Loading branch information
glynnbird authored Oct 23, 2017
2 parents 14b515f + 5847a83 commit 9525044
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion pixiedust_node/npm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pixiedust_node/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion pixiedust_node/pixiedustNodeRepl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -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'],
Expand Down

0 comments on commit 9525044

Please sign in to comment.