adapt py-nbconvert to newer py-jinja2 (based on changes in newer py-nbconvert;
not done a full update as that needs a new port nbclient)
This commit is contained in:
parent
a78ab3fc59
commit
5b77c25d72
@ -3,7 +3,7 @@ COMMENT = converting Jupyter notebooks
|
||||
MODPY_EGG_VERSION = 5.6.1
|
||||
DISTNAME = nbconvert-${MODPY_EGG_VERSION}
|
||||
PKGNAME = py-${DISTNAME}
|
||||
REVISION = 0
|
||||
REVISION = 1
|
||||
|
||||
CATEGORIES = devel
|
||||
|
||||
|
@ -7,3 +7,12 @@ Index: nbconvert/exporters/html.py
|
||||
"""HTML Exporter class"""
|
||||
|
||||
# Copyright (c) Jupyter Development Team.
|
||||
@@ -9,7 +10,7 @@ import os
|
||||
from traitlets import default, Unicode
|
||||
from traitlets.config import Config
|
||||
from jupyter_core.paths import jupyter_path
|
||||
-from jinja2 import contextfilter
|
||||
+from jinja2 import pass_context as contextfilter
|
||||
|
||||
from nbconvert.filters.highlight import Highlight2HTML
|
||||
from nbconvert.filters.markdown_mistune import IPythonRenderer, MarkdownWithMath
|
||||
|
Loading…
Reference in New Issue
Block a user