Skip to content

Commit

Permalink
Import nbformat etc. only if IPython flag set.
Browse files Browse the repository at this point in the history
  • Loading branch information
punchagan committed Jun 1, 2016
1 parent 39fb3ef commit 84b82b4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions v6/tags/tags.py
Expand Up @@ -35,11 +35,9 @@

from nikola.plugin_categories import Command
from nikola.utils import bytes_str, LOGGER, req_missing, sys_decode, unicode_str

try:
from nikola.plugins.compile.ipynb import current_nbformat, flag as ipy_flag, ipy_modern, nbformat
except ImportError as e:
ipy_flag = None
from nikola.plugins.compile.ipynb import flag as ipy_flag
if ipy_flag:
from nikola.plugins.compile.ipynb import current_nbformat, ipy_modern, nbformat


def add_tags(site, tags, filepaths, dry_run=False):
Expand Down

0 comments on commit 84b82b4

Please sign in to comment.