Browse Source

Merge pull request #2343 from ian-r-rose/fix_unlink

Fix file path.
Steven Silvester 8 years ago
parent
commit
d477cf9103
2 changed files with 2 additions and 2 deletions
  1. 1 1
      docs/extensions_dev.md
  2. 1 1
      jupyterlab/commands.py

+ 1 - 1
docs/extensions_dev.md

@@ -113,7 +113,7 @@ repository for an extension npm package. This operation may be subsequently
 reversed by running
 reversed by running
 
 
 ```
 ```
-npm run addsibling <extension-name>
+npm run removesibling <extension-dir-name>
 ```
 ```
 
 
 This will remove the package metadata from the source tree, but wil **not**
 This will remove the package metadata from the source tree, but wil **not**

+ 1 - 1
jupyterlab/commands.py

@@ -229,7 +229,7 @@ def uninstall_extension(name, app_dir=None):
     if app_dir == here:
     if app_dir == here:
         raise ValueError('Cannot install packages in core app')
         raise ValueError('Cannot install packages in core app')
     # Allow for uninstalled core extensions here.
     # Allow for uninstalled core extensions here.
-    with open(pjoin(here, 'package.json')) as fid:
+    with open(pjoin(here, 'package.app.json')) as fid:
         data = json.load(fid)
         data = json.load(fid)
         if name in data['jupyterlab']['extensions']:
         if name in data['jupyterlab']['extensions']:
             print('Uninstalling core extension %s' % name)
             print('Uninstalling core extension %s' % name)