From ba6eab1203d5184711fec79052a8d323fcf40825 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Sun, 3 Aug 2014 14:16:54 -0500 Subject: Add max_hist_cache cap to returned value --- octave_kernel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/octave_kernel.py b/octave_kernel.py index 6bf7181..d364be4 100644 --- a/octave_kernel.py +++ b/octave_kernel.py @@ -205,7 +205,8 @@ class OctaveKernel(Kernel): with open(self.hist_file, 'rb') as fid: history = fid.readlines() - self.hist_cache = history[:self.max_hist_cache] + history = history[:self.max_hist_cache] + self.hist_cache = history self.log.debug('**HISTORY:') self.log.debug(history) history = [(None, None, h) for h in history] -- cgit