You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
560 B
16 lines
560 B
#!/usr/bin/env python
|
|
# Thanks @takluyver for your cite2c install.py.
|
|
from os.path import dirname, abspath, join as pjoin
|
|
from jupyter_notebook.nbextensions import install_nbextension
|
|
from jupyter_notebook.services.config import ConfigManager
|
|
|
|
print("Installing nbextension ...")
|
|
staticdir = pjoin(dirname(abspath(__file__)), 'static')
|
|
install_nbextension(staticdir, destination='widgets', user=False)
|
|
|
|
print("Enabling the extension ...")
|
|
cm = ConfigManager()
|
|
cm.update('notebook', {"load_extensions": {"widgets/notebook/js/extension": True}})
|
|
|
|
print("Done.")
|