ports/devel/py-nbconvert/patches/patch-nbconvert_exporters_html_py

19 lines
607 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: nbconvert/exporters/html.py
--- nbconvert/exporters/html.py.orig
+++ nbconvert/exporters/html.py
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
+# coding: utf-8
"""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