From 76d27c287641baf200f88d054449e7733aa1fb0f Mon Sep 17 00:00:00 2001 From: Jake Vanderplas Date: Sun, 5 May 2013 07:36:27 -0700 Subject: [PATCH] fix cell indexing issue --- liquid_tags/notebook.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/liquid_tags/notebook.py b/liquid_tags/notebook.py index 05a83a0..1f9eca8 100644 --- a/liquid_tags/notebook.py +++ b/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:]