diff --git a/voila/exporter.py b/voila/exporter.py index 8e0d4bd4d..7612836e1 100644 --- a/voila/exporter.py +++ b/voila/exporter.py @@ -105,7 +105,7 @@ async def generate_from_notebook_node(self, nb, resources=None, extra_context={} def environment(self): # enable Jinja async template execution self.enable_async = True - env = super(type(self), self).environment + env = super().environment if 'jinja2.ext.do' not in env.extensions: env.add_extension('jinja2.ext.do') return env