diff options
-rw-r--r-- | octave_kernel.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/octave_kernel.py b/octave_kernel.py index e6ded3c..6bf7181 100644 --- a/octave_kernel.py +++ b/octave_kernel.py @@ -205,7 +205,7 @@ class OctaveKernel(Kernel): with open(self.hist_file, 'rb') as fid: history = fid.readlines() - self.hist_cache = history + self.hist_cache = history[:self.max_hist_cache] self.log.debug('**HISTORY:') self.log.debug(history) history = [(None, None, h) for h in history] |