Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions conda.recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ requirements:
- ipython_genutils
- jupyter_contrib_core >=0.3
- jupyter_core
- jupyter_highlight_selected_word >=0.0.5
- jupyter_latex_envs >=1.3.4
- jupyter_nbextensions_configurator
- nbconvert
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def main():
'ipython_genutils',
'jupyter_contrib_core >=0.3',
'jupyter_core',
'jupyter_highlight_selected_word >=0.0.5',
'jupyter_latex_envs >=1.3.4',
'jupyter_nbextensions_configurator',
'nbconvert',
Expand Down
8 changes: 7 additions & 1 deletion src/jupyter_contrib_nbextensions/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import errno
import os

import jupyter_highlight_selected_word
import latex_envs
import psutil
from jupyter_contrib_core.notebook_compat import nbextensions
Expand Down Expand Up @@ -83,7 +84,12 @@ def toggle_install_files(install, user=False, sys_prefix=False, logger=None,
'Installing' if install else 'Uninstalling',
'to' if install else 'from',
'jupyter data directory'))
for mod in [jupyter_contrib_nbextensions, latex_envs]:
component_nbext_packages = [
jupyter_contrib_nbextensions,
jupyter_highlight_selected_word,
latex_envs,
]
for mod in component_nbext_packages:
if install:
nbextensions.install_nbextension_python(
mod.__name__, overwrite=overwrite, symlink=symlink, **kwargs)
Expand Down
3 changes: 2 additions & 1 deletion tests/test_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,11 @@ def _check_install(self, dirs):
'Expected no files created in {} but found:\n\t{}'.format(
tree_dir, '\n\t'.join(in_this_tree)))
installed_files.extend(in_this_tree)
# check latex_envs got installed
# check that dependency-provided nbexts got installed
if 'data' in dirs:
expected_require_paths = [
p.replace('/', os.path.sep) + '.js' for p in [
'highlight_selected_word/main',
'latex_envs/latex_envs',
]]
for req_part in expected_require_paths:
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ passenv = *
usedevelop = false
deps =
coverage>=4.2
jupyter_highlight_selected_word>=0.0.5
jupyter_latex_envs>=1.3.4
mock
nose
Expand Down