diff --git a/main.tex b/main.tex
index 27f2364b7d21a007cae0c71e4ff3877c6fa33a1f..a4362e65a09c53e0bd8e87a3199f05b580d2ed24 100644
--- a/main.tex
+++ b/main.tex
@@ -38,9 +38,12 @@ sorting=ynt
 	\chapter{Appendix: Jupyter Notebooks}
 		\bgroup
 		{\scriptsize
-		\input{notebook-commands.tex}
-		\import{max-destabilizer-rank/}{characteristic_curves}
-		%\import{max-destabilizer-rank/}{rank_zero_case}
+		\ifdefined\notebookappendix
+			\input{notebook-commands.tex}
+			\import{max-destabilizer-rank/}{characteristic_curves}
+			%\import{max-destabilizer-rank/}{rank_zero_case}
+		\else
+		\fi
 		}
 		\egroup