Explorar o código

fix cell indexing issue

Jake Vanderplas %!s(int64=12) %!d(string=hai) anos
pai
achega
76d27c2876
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      liquid_tags/notebook.py

+ 2 - 0
liquid_tags/notebook.py

@@ -140,6 +140,8 @@ def strip_divs(body, start=None, end=None):
     if div_start != len(body_lines):
         raise ValueError("parsing error: didn't find the end of the div")
 
+    L = L[1:]
+
     body_lines = sum(L[start:end], [])
 
     return body[:1] + body_lines + body[-1:]