From 6f747b8b532c1c9ffff0211d7f8615349be8ba21 Mon Sep 17 00:00:00 2001
From: Steve Schmerler <git@elcorto.com>
Date: Tue, 4 Jun 2024 22:43:57 +0200
Subject: [PATCH] jupytext misc fixes in py scripts

---
 BLcourse2.3/01_one_dim.py | 2 ++
 BLcourse2.3/02_two_dim.py | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/BLcourse2.3/01_one_dim.py b/BLcourse2.3/01_one_dim.py
index 2b766ee..e9e55f2 100644
--- a/BLcourse2.3/01_one_dim.py
+++ b/BLcourse2.3/01_one_dim.py
@@ -410,7 +410,9 @@ with torch.no_grad():
         if ii == 1:
             ax.legend()
     ax_sigmas.legend()
+# -
 
+# +
 # When running as script
 if not is_interactive():
     plt.show()
diff --git a/BLcourse2.3/02_two_dim.py b/BLcourse2.3/02_two_dim.py
index cde9cc7..b7ee227 100644
--- a/BLcourse2.3/02_two_dim.py
+++ b/BLcourse2.3/02_two_dim.py
@@ -370,6 +370,8 @@ ax.set_zlim((contour_z, zlim[1] + abs(contour_z)))
 ax.contourf(data_pred.XG, data_pred.YG, y_std, zdir="z", offset=contour_z)
 # -
 
+# +
 # When running as script
 if not is_interactive():
     plt.show()
+# -
-- 
GitLab