Skip to content

Commit 07e9be3

Browse files
committed
🍰 Added a widget JS deprecation warning!
This is a combination of 9 commits. Shim IPython.html.widgets Add flags to widgets install. Put shim in IPython instead Add deprecation warning to Javascript source Move tests Don't use setting to pass log arround. Simplify deprecated handler. Use requirejs to perform redirect.
1 parent 6851d5c commit 07e9be3

File tree

14 files changed

+21
-2
lines changed

14 files changed

+21
-2
lines changed

ipython_widgets/install.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,16 @@
33
from os.path import dirname, abspath, join as pjoin
44
from jupyter_notebook.nbextensions import install_nbextension
55
from jupyter_notebook.services.config import ConfigManager
6+
import argparse
7+
8+
parser = argparse.ArgumentParser(description="Installs the IPython widgets")
9+
parser.add_argument("-u", "--user", help="Install as current user", action="store_true")
10+
parser.add_argument("-s", "--symlink", help="Symlink instead of copying files", action="store_true")
11+
args = parser.parse_args()
612

713
print("Installing nbextension ...")
814
staticdir = pjoin(dirname(abspath(__file__)), 'static')
9-
install_nbextension(staticdir, destination='widgets', user=False)
15+
install_nbextension(staticdir, destination='widgets', user=args.user, symlink=args.symlink)
1016

1117
print("Enabling the extension ...")
1218
cm = ConfigManager()
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)