Skip to content

Commit

Permalink
Merge pull request #746 from jcb91/latex_envs
Browse files Browse the repository at this point in the history
replace vendored `latex_envs` with its pypi package
  • Loading branch information
jcb91 committed Nov 24, 2016
2 parents 957ac71 + 22af2db commit f6b8d82
Show file tree
Hide file tree
Showing 32 changed files with 23 additions and 19,281 deletions.
5 changes: 2 additions & 3 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_latex_envs >=1.3.4',
'jupyter_nbextensions_configurator',
'nbconvert',
'notebook >=4.0',
Expand Down Expand Up @@ -89,11 +90,9 @@ def main():
'nbextension = jupyter_contrib_nbextensions.application:jupyter_contrib_core_app_subcommands', # noqa
],
'nbconvert.exporters': [
'html_lenvs = jupyter_contrib_nbextensions.nbconvert_support.latex_envs:LenvsHTMLExporter', # noqa
'latex_lenvs = jupyter_contrib_nbextensions.nbconvert_support.latex_envs:LenvsLatexExporter', # noqa
'html_toc = jupyter_contrib_nbextensions.nbconvert_support.toc2:TocExporter', # noqa
'html_embed = jupyter_contrib_nbextensions.nbconvert_support.embedhtml:EmbedHTMLExporter', # noqa
],
],
},
scripts=[os.path.join('scripts', p) for p in [
'jupyter-contrib-nbextension',
Expand Down
14 changes: 7 additions & 7 deletions 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 latex_envs
import psutil
from jupyter_contrib_core.notebook_compat import nbextensions
from jupyter_nbextensions_configurator.application import (
Expand Down Expand Up @@ -82,13 +83,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'))
if install:
nbextensions.install_nbextension_python(
jupyter_contrib_nbextensions.__name__,
overwrite=overwrite, symlink=symlink, **kwargs)
else:
nbextensions.uninstall_nbextension_python(
jupyter_contrib_nbextensions.__name__, **kwargs)
for mod in [jupyter_contrib_nbextensions, latex_envs]:
if install:
nbextensions.install_nbextension_python(
mod.__name__, overwrite=overwrite, symlink=symlink, **kwargs)
else:
nbextensions.uninstall_nbextension_python(mod.__name__, **kwargs)


def toggle_install_config(install, user=False, sys_prefix=False, logger=None):
Expand Down
197 changes: 0 additions & 197 deletions src/jupyter_contrib_nbextensions/nbextensions/latex_envs/.gitignore

This file was deleted.

0 comments on commit f6b8d82

Please sign in to comment.