From eb3f6bb55fb31c02fe8604644fbea6f04eaf3513 Mon Sep 17 00:00:00 2001
From: Jarmil <jarmil.halamicek@seznam.cz>
Date: Sat, 10 Oct 2020 07:48:01 +0200
Subject: [PATCH] Zamezeni exportu prazdnych promptu z notebooku s Julia
 kernelem

---
 uniweb/templatetags/uniweb_filters.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/uniweb/templatetags/uniweb_filters.py b/uniweb/templatetags/uniweb_filters.py
index 4dd5f402..bf858a05 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(
-- 
GitLab