Javascript extension for a notebookΒΆ
Links: notebook
, html .
, PDF
, python
, slides .
, presentation .
from pyquickhelper.ipythonhelper import load_extension, install_notebook_extension, get_installed_notebook_extension
We install extension in case it was not done before:
install_notebook_extension()
downloading https://github.com/ipython-contrib/IPython-notebook-extensions/archive/master.zip to C:UsersauserAppDataLocalTemptmpt0c6mp8qmaster.zip extracting C:UsersauserAppDataLocalTemptmpt0c6mp8qmaster.zip to C:ProgramDatajupyternbextensions
We check the list of installed extensions (from IPython-notebook-extensions):
get_installed_notebook_extension()
['IPython-notebook-extensions-master/config/main',
'IPython-notebook-extensions-master/publishing/nbviewer_theme/main',
'IPython-notebook-extensions-master/publishing/printview/main',
'IPython-notebook-extensions-master/slidemode/main',
'IPython-notebook-extensions-master/styling/css_selector/main',
'IPython-notebook-extensions-master/styling/zenmode/main',
'IPython-notebook-extensions-master/testing/hierarchical_collapse/main',
'IPython-notebook-extensions-master/testing/swc/main',
'IPython-notebook-extensions-master/usability/chrome-clipboard/main',
'IPython-notebook-extensions-master/usability/codefolding/main',
'IPython-notebook-extensions-master/usability/dragdrop/main',
'IPython-notebook-extensions-master/usability/exercise/main',
'IPython-notebook-extensions-master/usability/hide_input/main',
'IPython-notebook-extensions-master/usability/init_cell/main',
'IPython-notebook-extensions-master/usability/limit_output/main',
'IPython-notebook-extensions-master/usability/navigation-hotkeys/main',
'IPython-notebook-extensions-master/usability/python-markdown/main',
'IPython-notebook-extensions-master/usability/rubberband/main',
'IPython-notebook-extensions-master/usability/runtools/main',
'IPython-notebook-extensions-master/usability/search-replace/main',
'IPython-notebook-extensions-master/usability/skip-traceback/main']
And then, we load one of them:
%%javascript
IPython.utils.load_extensions('IPython-notebook-extensions-master/usability/search-replace/main')
<IPython.core.display.Javascript object>
Or if you prefer with pyquickhelper:
load_extension('IPython-notebook-extensions-master/usability/hide_input/main')
<IPython.core.display.Javascript object>