explicitly check for IPython version
This commit is contained in:
@@ -48,11 +48,12 @@ import re
|
|||||||
import os
|
import os
|
||||||
from .mdx_liquid_tags import LiquidTags
|
from .mdx_liquid_tags import LiquidTags
|
||||||
|
|
||||||
try:
|
import IPython
|
||||||
from IPython import nbconvert
|
if IPython.__version__.split('.')[0] != 1:
|
||||||
except ImportError:
|
|
||||||
raise ValueError("IPython version 1.0+ required for notebook tag")
|
raise ValueError("IPython version 1.0+ required for notebook tag")
|
||||||
|
|
||||||
|
from IPython import nbconvert
|
||||||
|
|
||||||
from IPython.nbconvert.filters.highlight import _pygment_highlight
|
from IPython.nbconvert.filters.highlight import _pygment_highlight
|
||||||
from pygments.formatters import HtmlFormatter
|
from pygments.formatters import HtmlFormatter
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user