##// END OF EJS Templates
Make comm manager (mostly) independent of InteractiveShell...
Make comm manager (mostly) independent of InteractiveShell This makes it possible to use comms from wrapper kernels, without instantiating the full IPython shell machinery. The one remaining place where we need a reference to shell is to fire pre_execute and post_execute hooks (which are needed to get mpl figures right). This is a pure IPythonism, that it should be safe to ignore if shell is not set.

File last commit:

r17639:973125a7
r17964:a59dfd02
Show More
init.js
27 lines | 886 B | application/javascript | JavascriptLexer
Jonathan Frederic
Almost done!...
r17198 // Copyright (c) IPython Development Team.
// Distributed under the terms of the Modified BSD License.
Jonathan Frederic
Moved base widget model and view into widgets/base.js
r14470
Jonathan Frederic
renamed: basic_widgets.js -> init.js...
r14546 define([
Jonathan Frederic
Almost done!...
r17198 "widgets/js/manager",
Jonathan Frederic
Updated require references to point to new files
r15427 "widgets/js/widget_bool",
"widgets/js/widget_button",
Jonathan Frederic
Filenames s/container/box
r17639 "widgets/js/widget_box",
Jonathan Frederic
Updated require references to point to new files
r15427 "widgets/js/widget_float",
"widgets/js/widget_image",
"widgets/js/widget_int",
"widgets/js/widget_selection",
"widgets/js/widget_selectioncontainer",
"widgets/js/widget_string",
Jonathan Frederic
Fix all the bugs!
r17203 ], function(widgetmanager) {
Jonathan Frederic
Almost done!...
r17198
// Register all of the loaded views with the widget manager.
for (var i = 1; i < arguments.length; i++) {
for (var target_name in arguments[i]) {
if (arguments[i].hasOwnProperty(target_name)) {
Jonathan Frederic
Fix all the bugs!
r17203 widgetmanager.WidgetManager.register_widget_view(target_name, arguments[i][target_name]);
Jonathan Frederic
Almost done!...
r17198 }
}
}
Jonathan Frederic
Fix all the bugs!
r17203 return {'WidgetManager': widgetmanager.WidgetManager};
Jonathan Frederic
Almost done!...
r17198 });