Changeset 838
- Timestamp:
- 09/13/05 14:44:38 (3 years ago)
- Files:
-
- nbshell/trunk/ChangeLog (modified) (1 diff)
- nbshell/trunk/nbshell/IPythonLog.py (modified) (6 diffs)
- nbshell/trunk/nbshell/PythonPlugin.py (modified) (2 diffs)
- nbshell/trunk/nbshell/PythonWidget.py (modified) (1 diff)
- nbshell/trunk/nbshell/editwindow.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nbshell/trunk/ChangeLog
r836 r838 1 1 2005-09-13 Tzanko Matev <tsanko@gmail.com> 2 3 * editwindow.py (EditWindow.__config): Turned Python lexer off. It 4 caused lagging, and was the reason for the performance issues 5 described in ticket #11. This should solve the problem 2 6 3 7 * IPythonLog.py (IPythonLog.filename_iter): Changed generation of nbshell/trunk/nbshell/IPythonLog.py
r836 r838 32 32 from lxml import etree 33 33 34 from nbshell.utils import findnew34 from nbshell.utils import * 35 35 36 36 #TODO: Fix the plotting API … … 233 233 """ This methods runs the input lines. """ 234 234 #print 'running code...' #dbg 235 235 #delta_time('__run: start') 236 236 print 'In[%d]: '%cell.number,cell.input #dbg 237 237 self.output = '' #used by displayhook to store output … … 245 245 displayhook = self.displayhook,\ 246 246 stdout = cout, stderr = cerr) 247 247 #delta_time('__run: code run') #dbg 248 248 #Retrieve stdout 249 249 text = '\n' + cout.getvalue() … … 255 255 for x in text.splitlines(False)]) #wrap stdout 256 256 cout.close() 257 257 #delta_time('__run: handled stdout') #dbg 258 258 #Retrieve stderr 259 259 text = '\n' + cerr.getvalue() … … 265 265 for x in text.splitlines(False)]) #wrap stderr 266 266 cerr.close() 267 #delta_time('__run: handled stderr') #dbg 267 268 268 269 if self.output != '': … … 270 271 for x in self.output.splitlines(False)]) #wrap the output 271 272 #print 'wrapped output ->', self.output.text #dbg 273 #delta_time('__run: handled output') #dbg 272 274 273 275 print 'Out[%d]: '%cell.number, cell.output #dbg nbshell/trunk/nbshell/PythonPlugin.py
r836 r838 366 366 #self.promptlen[i] holds the length of the prompt of cell i 367 367 self.promptlens = [] 368 #delta_time('Update start') #dbg 368 369 for i, cell in enumerate(cells): 369 370 number = cell.number … … 424 425 #self.line2log.append(None) #append ane 425 426 #empty line at the end outtext.write('\n') 427 #delta_time('Update cycle end') #dbg 426 428 self.window.SetText(outtext.getvalue()) 429 #delta_time('Text drawn on screen') #dbg 427 430 self.window.GotoPos(self.window.GetTextLength()) 431 #delta_time('Update end') #dbg 428 432 #print "line2log->", self.window.line2log #dbg 429 433 nbshell/trunk/nbshell/PythonWidget.py
r836 r838 214 214 # Prevent modification of previously submitted 215 215 # commands/responses. 216 if not self.view.CanEdit():217 return216 #if not self.view.CanEdit(): #TODO: why is this here? We already checked in OnKeyDown 217 # return 218 218 key = event.KeyCode() 219 219 currpos = self.GetCurrentPos() nbshell/trunk/nbshell/editwindow.py
r823 r838 107 107 #self.SetMarginWidth(1, 40) 108 108 109 self.SetLexer(stc.STC_LEX_PYTHON)109 #self.SetLexer(stc.STC_LEX_PYTHON) 110 110 self.SetKeyWords(0, ' '.join(keyword.kwlist)) 111 111
