##// END OF EJS Templates
Pager shrotcut replaced by new ville's pager hook
laurent.dufrechou -
Show More
@@ -100,11 +100,7 b' class IterableIPShell(Thread):'
100 100 if loc:
101 101 self._IP.stdin_encoding = loc
102 102 #we replace the ipython default pager by our pager
103 #FIXME: add a pager callback to IPython
104 IPython.OInspect.page = self._pager
105 IPython.genutils.page = self._pager
106 IPython.iplib.page = self._pager
107 IPython.Magic.page = self._pager
103 self._IP.set_hook('show_in_pager',self._pager)
108 104
109 105 #we replace the ipython default shell command caller by our shell handler
110 106 self._IP.set_hook('shell_hook',self._shell)
@@ -346,7 +342,7 b' class IterableIPShell(Thread):'
346 342 rv = self._IP.input_hist_raw[self._history_level].strip('\n')
347 343 return rv
348 344
349 def _pager(self,text,start=0,screen_lines=0,pager_cmd = None):
345 def _pager(self,IP,text):
350 346 '''
351 347 This function is used as a callback replacment to IPython pager function
352 348
General Comments 0
You need to be logged in to leave comments. Login now