Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace vendored latex_envs with its pypi package #746

Merged
merged 4 commits into from
Nov 24, 2016
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
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.

Loading