浏览代码

Merge pull request #879 from ivanov/docstring-fix

Document sys_prefix in all places
Jason Grout 8 年之前
父节点
当前提交
b2f3721891
共有 1 个文件被更改,包括 8 次插入4 次删除
  1. 8 4
      jupyterlab/labextensions.py

+ 8 - 4
jupyterlab/labextensions.py

@@ -112,6 +112,8 @@ def install_labextension(path, name='', overwrite=False, symlink=False,
         Specify absolute path of labextensions directory explicitly.
     logger : Jupyter logger [optional]
         Logger instance to use
+    sys_prefix : bool [default: False]
+        Install into the sys.prefix, i.e. environment
     """
 
     # the actual path to which we eventually installed
@@ -211,11 +213,13 @@ def uninstall_labextension(name, user=False, sys_prefix=False, prefix=None,
     name: str
         The name of the labextension.
     user : bool [default: False]
-        Whether to install to the user's labextensions directory.
-        Otherwise do a system-wide install (e.g. /usr/local/share/jupyter/labextensions).
+        Whether to uninstall from the user's labextensions directory.
+        Otherwise do a system-wide uninstall (e.g. /usr/local/share/jupyter/labextensions).
+    sys_prefix : bool [default: False]
+        Uninstall from the sys.prefix, i.e. environment
     prefix : str [optional]
-        Specify install prefix, if it should differ from default (e.g. /usr/local).
-        Will install to ``<prefix>/share/jupyter/labextensions``
+        Specify prefix, if it should differ from default (e.g. /usr/local).
+        Will uninstall from ``<prefix>/share/jupyter/labextensions``
     labextensions_dir : str [optional]
         Specify absolute path of labextensions directory explicitly.
     logger : Jupyter logger [optional]