summaryrefslogtreecommitdiff
path: root/octave_kernel.py
diff options
context:
space:
mode:
authorSteven Silvester2014-08-03 14:16:02 -0500
committerSteven Silvester2014-08-03 14:16:02 -0500
commit9412b2d538e3a5f992bb893c8692ab03a853b064 (patch)
treeebf76c624ed43bd521c51586db825b31b6006795 /octave_kernel.py
parent645b7efd8c0511f8d4da55e5486dcb99e4664eb7 (diff)
downloadscilab_kernel-9412b2d538e3a5f992bb893c8692ab03a853b064.tar.gz
scilab_kernel-9412b2d538e3a5f992bb893c8692ab03a853b064.tar.bz2
scilab_kernel-9412b2d538e3a5f992bb893c8692ab03a853b064.zip
Only read in the hist cache up to max_hist_cache
Diffstat (limited to 'octave_kernel.py')
-rw-r--r--octave_kernel.py2
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]