##// END OF EJS Templates
Merge pull request #3409 from pankajp/qt-console-freeze-on-output-clip...
Merge pull request #3409 from pankajp/qt-console-freeze-on-output-clip Prevent qtconsole frontend freeze on lots of output. The output from the kernel is now clipped to last buffer_size before displaying and a timer is used to flush the pending output text instead of attempting to display text on every stream output from kernel. The timer interval is adjusted based on actual time taken to append a screenful of text to widget. This throttles the widget repaints and avoids choking the Qt event loop leaving time to handle other Qt events.

File last commit:

r11033:fa36e98f
r11532:0397c02f merge
Show More
namespace.js
30 lines | 833 B | application/javascript | JavascriptLexer
Brian E. Granger
More review changes....
r4609 //----------------------------------------------------------------------------
// Copyright (C) 2008-2011 The IPython Development Team
//
// Distributed under the terms of the BSD License. The full license is in
// the file COPYING, distributed as part of this software.
//----------------------------------------------------------------------------
Brian E. Granger
Implemented module and namespace pattern in js notebook.
r4352 var IPython = IPython || {};
IPython.namespace = function (ns_string) {
var parts = ns_string.split('.'),
parent = IPython,
i;
// String redundant leading global
if (parts[0] === "IPython") {
parts = parts.slice(1);
}
for (i=0; i<parts.length; i+=1) {
// Create property if it doesn't exist
if (typeof parent[parts[i]] === "undefined") {
Stefan van der Walt
Clean up javascript based on js2-mode feedback.
r5479 parent[parts[i]] = {};
Brian E. Granger
Implemented module and namespace pattern in js notebook.
r4352 }
}
return parent;
};
Brian E. Granger
Splitting notebook.js into muliple files for development ease.
r4349