We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 61a5061 + 71f1da4 commit b04d3b9Copy full SHA for b04d3b9
jupyter_server/extension/application.py
@@ -6,6 +6,7 @@
6
from jinja2 import Environment, FileSystemLoader
7
8
from traitlets import (
9
+ HasTraits,
10
Unicode,
11
List,
12
Dict,
@@ -82,7 +83,7 @@ def _preparse_for_stopping_flags(Application, argv):
82
83
app.exit(0)
84
85
-class ExtensionAppJinjaMixin:
86
+class ExtensionAppJinjaMixin(HasTraits):
87
"""Use Jinja templates for HTML templates on top of an ExtensionApp."""
88
89
jinja2_options = Dict(
@@ -93,7 +94,6 @@ class ExtensionAppJinjaMixin:
93
94
def _prepare_templates(self):
95
# Get templates defined in a subclass.
96
self.initialize_templates()
-
97
# Add templates to web app settings if extension has templates.
98
if len(self.template_paths) > 0:
99
self.settings.update({
0 commit comments