Skip to content

Commit 606a500

Browse files
authored
Merge pull request #804 from jcb91/highlight_selected_word
add jupyter_highlight_selected_word nbextension
2 parents ea0eb67 + 26956cd commit 606a500

File tree

5 files changed

+12
-2
lines changed

5 files changed

+12
-2
lines changed

conda.recipe/meta.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ requirements:
2424
- ipython_genutils
2525
- jupyter_contrib_core >=0.3
2626
- jupyter_core
27+
- jupyter_highlight_selected_word >=0.0.5
2728
- jupyter_latex_envs >=1.3.4
2829
- jupyter_nbextensions_configurator
2930
- nbconvert

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def main():
5959
'ipython_genutils',
6060
'jupyter_contrib_core >=0.3',
6161
'jupyter_core',
62+
'jupyter_highlight_selected_word >=0.0.5',
6263
'jupyter_latex_envs >=1.3.4',
6364
'jupyter_nbextensions_configurator',
6465
'nbconvert',

src/jupyter_contrib_nbextensions/install.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import errno
99
import os
1010

11+
import jupyter_highlight_selected_word
1112
import latex_envs
1213
import psutil
1314
from jupyter_contrib_core.notebook_compat import nbextensions
@@ -83,7 +84,12 @@ def toggle_install_files(install, user=False, sys_prefix=False, logger=None,
8384
'Installing' if install else 'Uninstalling',
8485
'to' if install else 'from',
8586
'jupyter data directory'))
86-
for mod in [jupyter_contrib_nbextensions, latex_envs]:
87+
component_nbext_packages = [
88+
jupyter_contrib_nbextensions,
89+
jupyter_highlight_selected_word,
90+
latex_envs,
91+
]
92+
for mod in component_nbext_packages:
8793
if install:
8894
nbextensions.install_nbextension_python(
8995
mod.__name__, overwrite=overwrite, symlink=symlink, **kwargs)

tests/test_application.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,11 @@ def _check_install(self, dirs):
8888
'Expected no files created in {} but found:\n\t{}'.format(
8989
tree_dir, '\n\t'.join(in_this_tree)))
9090
installed_files.extend(in_this_tree)
91-
# check latex_envs got installed
91+
# check that dependency-provided nbexts got installed
9292
if 'data' in dirs:
9393
expected_require_paths = [
9494
p.replace('/', os.path.sep) + '.js' for p in [
95+
'highlight_selected_word/main',
9596
'latex_envs/latex_envs',
9697
]]
9798
for req_part in expected_require_paths:

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ passenv = *
2525
usedevelop = false
2626
deps =
2727
coverage>=4.2
28+
jupyter_highlight_selected_word>=0.0.5
2829
jupyter_latex_envs>=1.3.4
2930
mock
3031
nose

0 commit comments

Comments
 (0)