diff --git a/uniweb/templatetags/uniweb_filters.py b/uniweb/templatetags/uniweb_filters.py index 4dd5f4027dd0317353c094ff36f3d92e58890f7d..bf858a057486ae5d43b27aacde809fc7985c6010 100644 --- a/uniweb/templatetags/uniweb_filters.py +++ b/uniweb/templatetags/uniweb_filters.py @@ -25,6 +25,9 @@ def jupyterize(value): c.TagRemovePreprocessor.enabled = True # Nutne c.TagRemovePreprocessor.remove_cell_tags = ["exclude"] c.TagRemovePreprocessor.remove_input_tags = ["output"] + c.TemplateExporter.exclude_output_prompt = ( + True # potlaci prazdne vystupy typu "Out[8]" + ) c.preprocessors = ["TagRemovePreprocessor"] nb_body, _ = nbconvert.TemplateExporter(