Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPEP 23: Backbone.js Widgets #4374

Merged
merged 474 commits into from
Jan 28, 2014
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
474 commits
Select commit Hold shift + click to select a range
428a8bf
- ModalView can now be docked and undocked
jdfreder Dec 6, 2013
2cf5ad7
- Fixed CSS so it also applies to widgets within modals
jdfreder Dec 6, 2013
108ab2b
Fab CSS
jdfreder Dec 6, 2013
8160877
s/LabelView/HTMLView
jdfreder Dec 6, 2013
09112f4
Added LatexView
jdfreder Dec 6, 2013
73f786b
Remove uneccessary lines in String.js
jdfreder Dec 7, 2013
36f8d83
Add ImageWidget
jdfreder Dec 7, 2013
c633979
Added float range widget tests
jdfreder Dec 9, 2013
8995edf
Fixed flushed messages not getting sent with new 'method' message tag
jdfreder Dec 9, 2013
cc21fe3
Added float widget tests
jdfreder Dec 9, 2013
7ea0c5b
Added ImageWidget tests
jdfreder Dec 10, 2013
b8242a9
Added int range and int widget tests.
jdfreder Dec 10, 2013
6f24736
Fixed backbone event handling for accordion view
jdfreder Dec 11, 2013
60d945e
Added multicontainer widget tests
jdfreder Dec 11, 2013
0678a52
jshint widget.js
jdfreder Dec 11, 2013
400ef7d
Partially implemented selection widget tests
jdfreder Dec 11, 2013
6ba0bab
Removed js test utils commit and rebased with master.
jdfreder Dec 11, 2013
ab1a8d2
Added selection widget tests
jdfreder Dec 11, 2013
4e15ad1
Added list modification test to selection widget.
jdfreder Dec 11, 2013
69edada
Added StringWidget tests
jdfreder Dec 12, 2013
8861e54
Added throttling test
jdfreder Dec 12, 2013
e86db29
Organized tests.
jdfreder Dec 12, 2013
8af19c3
Removed button.close() test because it caused the test framework to hang
jdfreder Dec 12, 2013
c25f02e
jslint /widgets
jdfreder Dec 12, 2013
57bb760
Fixed context of onclick callbacks selection widget views
jdfreder Dec 12, 2013
20fe605
Fixed some spacing in widget.js
jdfreder Dec 13, 2013
8245b9b
Removed comm dependency of widget model and view
jdfreder Dec 18, 2013
5d84782
Moved base widget model and view into widgets/base.js
jdfreder Dec 18, 2013
a09d70a
renamed: widget.js -> widgetmanager.js
jdfreder Dec 18, 2013
e785146
Fix, require.js needs return of widget manager for other widgets
jdfreder Dec 18, 2013
90f97b8
Made display_view a public method.
jdfreder Dec 18, 2013
3f5f27b
Made widget model state update function public
jdfreder Dec 18, 2013
577ee63
Fixed nonregistered model bug in wiget manager
jdfreder Dec 18, 2013
ab24918
Removed unused that from widget manager
jdfreder Dec 19, 2013
45a7ef8
Added parent parameter to on_display callback
jdfreder Dec 20, 2013
6135b20
Added event for widget construction
jdfreder Dec 20, 2013
8ec7166
Decoupled Python Widget from Comm
jdfreder Dec 21, 2013
318baad
Remove redundent _handle_close method
jdfreder Dec 21, 2013
47fda15
s/display/created for display_view stuff
jdfreder Dec 30, 2013
c102908
Moved touch logic out of model into view.
jdfreder Dec 30, 2013
6e353ea
Added require.js shims for underscore and backbone
jdfreder Dec 30, 2013
81257c2
Display handler now supports full kwargs
jdfreder Dec 30, 2013
9811ba7
Separate the display from the models on the python side, creating a B…
Dec 29, 2013
66c8209
Intermediate changes to javascript side of backbone widgets
Dec 31, 2013
a1d2451
Remove the automatic _children_attr and _children_lists_attr.
Dec 31, 2013
793dcac
Remove unused code and debugging statements
Dec 31, 2013
9a1f2d3
Change accordion to use a children attribute
Dec 31, 2013
af63861
Delete unnecessary check for comm object
Dec 31, 2013
e3803e4
Move all references to cells to the view objects.
Dec 31, 2013
4441be8
Make updates more granular for widgets
Dec 31, 2013
010861f
Store views in the models and store child views in the views
Dec 31, 2013
3925c2a
Delete the snapshot message handler
Dec 31, 2013
a20d81a
Note todos for widgets
Dec 31, 2013
8dc15ec
fix a handle_status handler
Dec 31, 2013
4a084cc
Fix visible attribute for the very first render
Dec 31, 2013
2a81271
Make sure containers transmit the children; take care of case where c…
Dec 31, 2013
c691a7b
log the error stack for a kernel javascript error message
Dec 31, 2013
49d1da2
Move some Widget class references to BaseWidget
Jan 1, 2014
46d68b6
General cleanup of base.js, including indentation fixes and adding vi…
Jan 1, 2014
0137755
Get the add/remove css classes working
Jan 1, 2014
e234b21
Live updates for children automatically change container views.
Jan 1, 2014
a5d454b
Fix the python side of the add/remove class functions to send custom …
Jan 2, 2014
0aa8d33
Example notebooks updated.
Jan 2, 2014
48132d8
Converted tabs to spaces
jdfreder Jan 2, 2014
ebf151f
Added `update_children` pattern to remaining parent widgets
jdfreder Jan 2, 2014
a1aa8a3
Revert 2853eb41 's changes to traitlets
jdfreder Jan 2, 2014
14b278e
Fixed JS tests to reflect Jason's changes
jdfreder Jan 2, 2014
313cb90
renamed: wigets_container.js -> widgets_container.js
jdfreder Jan 2, 2014
250e4f8
Added ViewWidget
jdfreder Jan 2, 2014
49568c8
Re-decoupled comm_id from widget models
jdfreder Jan 2, 2014
72af074
Removed console.log, unused
jdfreder Jan 2, 2014
48deda6
Further indentation cleanup
jdfreder Jan 2, 2014
60a426d
Fixed indent of line 450
jdfreder Jan 2, 2014
7eeebf9
Moved view widget into widget.py
jdfreder Jan 2, 2014
43c7823
Fixed indentation in widgetmanager.js
jdfreder Jan 2, 2014
3fb7c52
Added line to dump page html casperjs
jdfreder Jan 3, 2014
adcd464
Enabled IPython Server output for Travis debugging
jdfreder Jan 3, 2014
c9888ee
Fixed static_url call which is no longer optionally 1 param
jdfreder Jan 3, 2014
14459cf
Revert "Added line to dump page html casperjs"
jdfreder Jan 3, 2014
5f99aad
Revert "Enabled IPython Server output for Travis debugging"
jdfreder Jan 3, 2014
239f408
deleted: wigets_container.js
jdfreder Jan 3, 2014
10a25b0
Print cell output
jdfreder Jan 3, 2014
b8e7ee9
Output one more for debugging
jdfreder Jan 3, 2014
61db77c
Remove debug print statements in container tests
jdfreder Jan 3, 2014
4d3ff81
Fixed typo in model_id property
jdfreder Jan 3, 2014
84c0d03
Add widget view options in creating child views
Jan 4, 2014
f32e48c
Make the widget keys property traverse the superclasses and accumulat…
Jan 4, 2014
2451833
Get rid of keys magic; make the keys very explicit
Jan 5, 2014
075fab9
Make widget keys have more explicit inheritance
Jan 6, 2014
5e611bf
s/comm_id/model_id (left over from before)
jdfreder Jan 6, 2014
52963fb
Updated comm id comments in view to model id
jdfreder Jan 6, 2014
b60a6f9
Completely remove cell from model and view.
jdfreder Jan 6, 2014
2105d1a
Missing view argument when recursively calling widgetmanager.callback…
jdfreder Jan 6, 2014
a1286a4
Renamed widget js files
jdfreder Jan 7, 2014
c1bdf44
Updated require.js references
jdfreder Jan 7, 2014
032f65b
Removed ViewWidget
jdfreder Jan 7, 2014
b4e4da3
add/remove_class now can accept a list of classes
jdfreder Jan 7, 2014
6aabc0c
s/Widget/DOMWidget s/BaseWidget/Widget
jdfreder Jan 7, 2014
1d180d4
s/default_view_name/view_name
jdfreder Jan 7, 2014
888af91
s/_handle_widget_constructed/_call_widget_constructed
jdfreder Jan 7, 2014
e141746
Removed sync_method parameter from backbone msg spec
jdfreder Jan 7, 2014
9c567f4
Added callbacks method to view
jdfreder Jan 7, 2014
5334cab
s/widget.js/init.js
jdfreder Jan 7, 2014
a165819
renamed: basic_widgets.js -> init.js
jdfreder Jan 7, 2014
6dd1ffd
Remove first three lines of repr widgets
jdfreder Jan 7, 2014
e73528c
Fixed _send so it can open a comm if needed.
jdfreder Jan 7, 2014
311bda4
Remove view_name from display
jdfreder Jan 7, 2014
b67870c
remove 3rd callback type from on_displayed
jdfreder Jan 7, 2014
dfb0eb9
Fixed comments for optional kwargs so they are redundant.
jdfreder Jan 7, 2014
f3f38c8
send_state only once for dict signature of set_css
jdfreder Jan 7, 2014
cf2d9c4
_model_types, _view_types, _models - and document what keys and value…
jdfreder Jan 7, 2014
ed3d721
move backbone sync outside the widget manager class
jdfreder Jan 7, 2014
310f261
remove msg.content.data.view_name and corrosponding create_view param
jdfreder Jan 8, 2014
9877ef3
remove on_create_widget and handle_create_widget callback
jdfreder Jan 8, 2014
33de470
Added note in widget manager why Backbone.sync is there rather
jdfreder Jan 8, 2014
17ae963
re-order handle custom msg and handle recieve state
jdfreder Jan 8, 2014
6d7f1c7
handle_msg a display_model method.
jdfreder Jan 8, 2014
742e09b
Added missing comma
jdfreder Jan 8, 2014
d43ea71
Add constructor comment for widget model.
jdfreder Jan 8, 2014
4369d73
Update option-passing for creating child views.
Jan 8, 2014
d0e1f9e
this.updating should be a key specific lock
jdfreder Jan 8, 2014
6fe7aad
s/BaseWidgetView/WidgetView and s/WidgetView/DOMWidgetView
jdfreder Jan 8, 2014
37f98c1
un-nest options.options
jdfreder Jan 8, 2014
592da7d
Removed get_kernel method.
jdfreder Jan 8, 2014
25f40ff
remove length test add_class and remove_class
jdfreder Jan 8, 2014
515cf55
make JS update comment more descriptive (english)
jdfreder Jan 8, 2014
500d8a3
comment model.set, so we know that it triggers update on other views
jdfreder Jan 8, 2014
4e85339
add locks to update everywhere by using options to pass this
jdfreder Jan 8, 2014
af3cb8e
toggle button, set $el to button (removing extra div)
jdfreder Jan 8, 2014
bdf9a53
add comment views are in *_range
jdfreder Jan 8, 2014
9139587
document _keys function and rename to jquery_slider_keys
jdfreder Jan 8, 2014
8d175cf
s/image_format/format
jdfreder Jan 8, 2014
4139a38
s/flaot/float
jdfreder Jan 8, 2014
a8db290
remove .html('');
jdfreder Jan 8, 2014
404faa0
renamed: ../static/notebook/js/widgets/widget_multicontainer.js ->…
jdfreder Jan 8, 2014
10a84ac
Finished renaming Multicontainer to SelectionContainer
jdfreder Jan 8, 2014
f0c9c00
Implement a context manager as a property locking mechanism in Widget.
jdfreder Jan 8, 2014
92f4bb5
Add a helper method that acts on the changes made to a list.
jdfreder Jan 8, 2014
304e2e4
Add a comment that explains the notion of the default element
jdfreder Jan 8, 2014
1e8bd2e
Use .apply for calling base with not proto-type.
jdfreder Jan 8, 2014
ecbe638
Many checks off the todo list, test fixes
jdfreder Jan 13, 2014
27be0fb
remove unused imports
ivanov Jan 14, 2014
daa3b6a
fix typos
ivanov Jan 14, 2014
e5dbb96
Dev meeting widget review day 1
jdfreder Jan 14, 2014
d8f5efb
Dev meeting Jan 2014, widget review day 2
jdfreder Jan 14, 2014
f1c3742
sync=True isntead of a keys list
jdfreder Jan 14, 2014
1da6d0e
Added sync= attr to DOMWidget
jdfreder Jan 14, 2014
bff850b
Added sync=True to all view name attrs
jdfreder Jan 14, 2014
a76124e
Everyone uses one model
jdfreder Jan 14, 2014
a8368df
1-to-1 widget / view mapping
jdfreder Jan 14, 2014
f795cc3
Renamed *range test files to match other widget files
jdfreder Jan 14, 2014
b6908b1
A lot of bug fixes...
jdfreder Jan 14, 2014
597c46c
More fixes
jdfreder Jan 14, 2014
5cd3303
Fixed *almost* all of the test-detected bugs
jdfreder Jan 15, 2014
e1fdcc9
Fix test for selection widgets
jdfreder Jan 15, 2014
ed52e82
Got containers and mutlicontainers working! Yay
jdfreder Jan 16, 2014
f8345e1
Fab CSS
jdfreder Jan 16, 2014
071fae6
Fix rebase issues
jdfreder Jan 16, 2014
a57e02d
Make widget views work with new keyboard manager.
jdfreder Jan 16, 2014
be029cd
Update component submodule to point to master
jdfreder Jan 16, 2014
0311a8c
s/Int/CInt s/Float/CFloat
jdfreder Jan 16, 2014
c04aab1
Remove O(N) cell by msg-id lookup
jdfreder Jan 16, 2014
0acd418
Added value validation on Python side.
jdfreder Jan 16, 2014
0e56b40
Change orientation to Enum
jdfreder Jan 16, 2014
32716dc
More PEP8 changes
jdfreder Jan 16, 2014
bb79d34
containers and selectioncontainers now only allow one of any single c…
jdfreder Jan 16, 2014
af37dd3
Added PEP8 style comments to all of the JS code.
jdfreder Jan 16, 2014
b25d6b3
Halign dict colons
jdfreder Jan 16, 2014
603e41a
Fix bug in all children containing views
jdfreder Jan 16, 2014
2b9fe45
Make dropdown view DOM swap elements on update.
jdfreder Jan 17, 2014
6d0b62e
Fix the cell reference in views
Jan 10, 2014
df4f733
make the saving to python a method of the model, called with callbacks
Jan 10, 2014
eea2b79
update example notebooks
Jan 11, 2014
bd1ba86
Pass the whole message into the widget manager display_view call
Jan 12, 2014
c3a0818
Delete unnecessary save
Jan 9, 2014
43cee97
Cherry pick of @jasongrout 's 2bc2f96.
jdfreder Jan 17, 2014
94a5aed
Added support for multiple kernels.
jdfreder Jan 17, 2014
676624e
Fixed widget_manager instance test.
jdfreder Jan 17, 2014
f9ac12e
Widget require.js fix
jdfreder Jan 17, 2014
3527bb2
Repr style out for widgets
jdfreder Jan 17, 2014
c92edbc
Better implementation of widget _repr_ style display logic.
jdfreder Jan 17, 2014
92e9682
Added a line that was accidently deleted during merge of 4e813c5
jdfreder Jan 21, 2014
262451e
Use is to compare NotImplemented
jdfreder Jan 21, 2014
4e813c5
Rewrite widget syncing
Jan 11, 2014
e15e352
Change the callback logic so the order makes more sense:
jdfreder Jan 21, 2014
a6ff4f4
Remove residual tabs
jdfreder Jan 21, 2014
ff01af6
Reorganized attrs in widget.py
jdfreder Jan 21, 2014
63d2f7a
Added doc strings to properties in widget.py
jdfreder Jan 21, 2014
fc964e6
s/custom_content/content
jdfreder Jan 21, 2014
07dc2a7
ict comprehension and list comprehension in pack/unpack widgets
jdfreder Jan 21, 2014
585885a
Document in widget packing that vaues must be JSON-able.
jdfreder Jan 21, 2014
70a076d
Added new CallbackDispatcher class
jdfreder Jan 21, 2014
11ca541
Fixed name conflict with _property_lock
jdfreder Jan 21, 2014
b15593f
Remove todo in apply update
jdfreder Jan 21, 2014
5f40d5d
'create' should be handled in sync
jdfreder Jan 21, 2014
c6b69b2
Prefer JQuery to Underscore
jdfreder Jan 21, 2014
77e364d
Replace .html with .text everywhere possible
jdfreder Jan 21, 2014
9d49e0e
Removed for () loops where necessary. Replaced with _.each
jdfreder Jan 22, 2014
201886e
Explicitly return null if there aren't any results
jdfreder Jan 22, 2014
07e2df5
- remove second line in create_child_view
jdfreder Jan 22, 2014
1e0859f
Added some small comments to widget code
jdfreder Jan 22, 2014
a811539
Use CUnicode for width and height in ImageWidget
jdfreder Jan 22, 2014
3644592
Create base widget classes
jdfreder Jan 22, 2014
1b8ed2a
deleted: widget_float_range.py
jdfreder Jan 22, 2014
2798de1
Move js *RangeWidget code into *Widget
jdfreder Jan 22, 2014
19e4b58
deleted: widget_float_range.js
jdfreder Jan 22, 2014
1d5afc3
Made tests reflect changes to widget naming scheme.
jdfreder Jan 22, 2014
71765e9
deleted: widgets_float_range.js
jdfreder Jan 22, 2014
25a9d02
s/ModalView/PopupView
jdfreder Jan 22, 2014
094e02a
Fixed typo - else -> elif
jdfreder Jan 22, 2014
442154d
Fixed some typos related to _.each loops
jdfreder Jan 22, 2014
ddb2afa
Fixed context errors and a couple of typos to get the tests working a…
jdfreder Jan 22, 2014
6ceec8d
Fixed a couple more context typos
jdfreder Jan 22, 2014
a341ba2
Updated subcomponents
jdfreder Jan 22, 2014
29cac5a
Fixed bug where views child to other views would not have cell inform…
jdfreder Jan 22, 2014
287a0a7
Removed float widget bound tests,
jdfreder Jan 22, 2014
e952756
Adjusted throttling
jdfreder Jan 22, 2014
2af96a6
Float widget views now inherit from int counterparts
jdfreder Jan 22, 2014
f3b6c24
Support multiple types in selection widget.
jdfreder Jan 22, 2014
48fcdd1
Replace O(N^2) algorithm with a faster one.
jdfreder Jan 23, 2014
53b368b
s/view_name/_view_name
jdfreder Jan 23, 2014
719d9ac
Added code that removes the views when a model/widget is closed.
jdfreder Jan 23, 2014
615ab9a
Updated widget tutorials 1-2
jdfreder Jan 23, 2014
eab8dac
Changed selection widget API to use labels list
jdfreder Jan 23, 2014
6413603
Fixed type in container
jdfreder Jan 23, 2014
4817003
Updated examples 3-6
jdfreder Jan 23, 2014
91c7760
Callback dispatcher return callback value.
jdfreder Jan 23, 2014
e4f69ed
Fixed bug in selection widget tests.
jdfreder Jan 23, 2014
796c0ed
Cleanup examples
jdfreder Jan 23, 2014
86eac83
Removed Dialogs example, since PopupWidgets are available.
jdfreder Jan 23, 2014
4c316a8
Moved keyboard_manager logic into a sep. function.
jdfreder Jan 24, 2014
3c96e03
Fixed bug in throttling code.
jdfreder Jan 24, 2014
c70540b
Fixed some more example files (see list below)...
jdfreder Jan 24, 2014
65caa63
Updated cell numbering in console example.
jdfreder Jan 24, 2014
fac8110
Prevent TextBox from blurring unless explicity by user.
jdfreder Jan 24, 2014
9ab757f
Simplified variable inspector example
jdfreder Jan 25, 2014
c8996c4
Fixed bug that prevented popup widget from displaying
jdfreder Jan 25, 2014
217ad48
Removed D3 and Widget Tester examples for now, until they are fixed..
jdfreder Jan 25, 2014
4ebd115
review pass on widgetmanager.js
minrk Jan 26, 2014
de90ea1
quick review pass on javascript
minrk Jan 26, 2014
9cf2bba
review pass on Python-side of widgets
minrk Jan 26, 2014
6721e7f
catch NotImplementedError, not NotImplemented
minrk Jan 26, 2014
ce69b63
Document _ipython_display_ in custom display logic
minrk Jan 27, 2014
85a0de3
first review pass on widget tests
minrk Jan 27, 2014
ae6ac19
review pass on widget examples
minrk Jan 27, 2014
4c141af
Merge pull request #11 from minrk/widgets
jdfreder Jan 28, 2014
27b06ff
Removed blame comment
jdfreder Jan 28, 2014
42d6b44
Simplify get_msg_cell function of notebook.js
jdfreder Jan 28, 2014
5ed9376
Renamed widgets...
jdfreder Jan 28, 2014
d661486
Fixed Accordion test broken by last commit
jdfreder Jan 28, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Widget require.js fix
The WidgetManager namespace is passed around instead of a
widget_manager instance...
  • Loading branch information
jdfreder committed Jan 17, 2014
commit f9ac12eb4402d5bcd9863df1cc49d6243b8ed60f
2 changes: 1 addition & 1 deletion IPython/html/static/notebook/js/widgetmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
// elsewhere.
define(["underscore",
"backbone",
], function (underscore, backbone) {
], function (Underscore, Backbone) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be function(_, Backbone), since we are actually using underscore via _ below. This might also be a problem in other files.


Backbone.sync = function (method, model, options) {
// Sync widget models to back-end.
Expand Down
8 changes: 4 additions & 4 deletions IPython/html/static/notebook/js/widgets/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
define(["notebook/js/widgetmanager",
"underscore",
"backbone"],
function(widget_manager, underscore, backbone){
function(WidgetManager, Underscore, Backbone){

var WidgetModel = Backbone.Model.extend({
constructor: function (widget_manager, model_id, comm) {
Expand Down Expand Up @@ -211,7 +211,7 @@ function(widget_manager, underscore, backbone){
},

});
widget_manager.register_widget_model('WidgetModel', WidgetModel);
WidgetManager.register_widget_model('WidgetModel', WidgetModel);


var WidgetView = Backbone.View.extend({
Expand Down Expand Up @@ -387,6 +387,6 @@ function(widget_manager, underscore, backbone){
IPython.WidgetView = WidgetView;
IPython.DOMWidgetView = DOMWidgetView;

// Pass through widget_manager instance (probably not a good practice).
return widget_manager;
// Pass through WidgetManager namespace.
return WidgetManager;
});
6 changes: 3 additions & 3 deletions IPython/html/static/notebook/js/widgets/widget_bool.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @namespace IPython
**/

define(["notebook/js/widgets/widget"], function(widget_manager){
define(["notebook/js/widgets/widget"], function(WidgetManager){

var CheckBoxView = IPython.DOMWidgetView.extend({
render : function(){
Expand Down Expand Up @@ -67,7 +67,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
},

});
widget_manager.register_widget_view('CheckBoxView', CheckBoxView);
WidgetManager.register_widget_view('CheckBoxView', CheckBoxView);


var ToggleButtonView = IPython.DOMWidgetView.extend({
Expand Down Expand Up @@ -121,5 +121,5 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
this.touch();
},
});
widget_manager.register_widget_view('ToggleButtonView', ToggleButtonView);
WidgetManager.register_widget_view('ToggleButtonView', ToggleButtonView);
});
4 changes: 2 additions & 2 deletions IPython/html/static/notebook/js/widgets/widget_button.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @namespace IPython
**/

define(["notebook/js/widgets/widget"], function(widget_manager){
define(["notebook/js/widgets/widget"], function(WidgetManager){

var ButtonView = IPython.DOMWidgetView.extend({
render : function(){
Expand Down Expand Up @@ -58,5 +58,5 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
this.send({event: 'click'});
},
});
widget_manager.register_widget_view('ButtonView', ButtonView);
WidgetManager.register_widget_view('ButtonView', ButtonView);
});
6 changes: 3 additions & 3 deletions IPython/html/static/notebook/js/widgets/widget_container.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @namespace IPython
**/

define(["notebook/js/widgets/widget"], function(widget_manager) {
define(["notebook/js/widgets/widget"], function(WidgetManager) {

var ContainerView = IPython.DOMWidgetView.extend({
render: function(){
Expand Down Expand Up @@ -57,7 +57,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager) {
return ContainerView.__super__.update.apply(this);
},
});
widget_manager.register_widget_view('ContainerView', ContainerView);
WidgetManager.register_widget_view('ContainerView', ContainerView);


var ModalView = IPython.DOMWidgetView.extend({
Expand Down Expand Up @@ -273,5 +273,5 @@ define(["notebook/js/widgets/widget"], function(widget_manager) {
}
},
});
widget_manager.register_widget_view('ModalView', ModalView);
WidgetManager.register_widget_view('ModalView', ModalView);
});
16 changes: 3 additions & 13 deletions IPython/html/static/notebook/js/widgets/widget_float.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@
// the file COPYING, distributed as part of this software.
//----------------------------------------------------------------------------

//============================================================================
// FloatWidget
//============================================================================

/**
* @module IPython
* @namespace IPython
**/

define(["notebook/js/widgets/widget"], function(widget_manager){
// The Views for this model are shared with the bounded float, and can be
// found in widget_float_range.js.
});
// This file is a place holder to maintain a one to one mapping of widget_*.py
// files and widget_*.js widget and test files. The Views for this model are
// shared with the bounded float, and can be found in widget_float_range.js.
8 changes: 4 additions & 4 deletions IPython/html/static/notebook/js/widgets/widget_float_range.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @namespace IPython
**/

define(["notebook/js/widgets/widget"], function(widget_manager){
define(["notebook/js/widgets/widget"], function(WidgetManager){

var FloatSliderView = IPython.DOMWidgetView.extend({
render : function(){
Expand Down Expand Up @@ -121,7 +121,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
this.touch();
},
});
widget_manager.register_widget_view('FloatSliderView', FloatSliderView);
WidgetManager.register_widget_view('FloatSliderView', FloatSliderView);


var FloatTextView = IPython.DOMWidgetView.extend({
Expand Down Expand Up @@ -218,7 +218,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
}
}
});
widget_manager.register_widget_view('FloatTextView', FloatTextView);
WidgetManager.register_widget_view('FloatTextView', FloatTextView);


var ProgressView = IPython.DOMWidgetView.extend({
Expand Down Expand Up @@ -263,5 +263,5 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
return ProgressView.__super__.update.apply(this);
},
});
widget_manager.register_widget_view('ProgressView', ProgressView);
WidgetManager.register_widget_view('ProgressView', ProgressView);
});
4 changes: 2 additions & 2 deletions IPython/html/static/notebook/js/widgets/widget_image.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @namespace IPython
**/

define(["notebook/js/widgets/widget"], function(widget_manager){
define(["notebook/js/widgets/widget"], function(WidgetManager){

var ImageView = IPython.DOMWidgetView.extend({
render : function(){
Expand Down Expand Up @@ -47,5 +47,5 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
return ImageView.__super__.update.apply(this);
},
});
widget_manager.register_widget_view('ImageView', ImageView);
WidgetManager.register_widget_view('ImageView', ImageView);
});
16 changes: 3 additions & 13 deletions IPython/html/static/notebook/js/widgets/widget_int.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@
// the file COPYING, distributed as part of this software.
//----------------------------------------------------------------------------

//============================================================================
// IntWidget
//============================================================================

/**
* @module IPython
* @namespace IPython
**/

define(["notebook/js/widgets/widget"], function(widget_manager){
// The Views for this model are shared with the bounded int, and can be
// found in widget_int_range.js.
});
// This file is a place holder to maintain a one to one mapping of widget_*.py
// files and widget_*.js widget and test files. The Views for this model are
// shared with the bounded int, and can be found in widget_int_range.js.
6 changes: 3 additions & 3 deletions IPython/html/static/notebook/js/widgets/widget_int_range.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @namespace IPython
**/

define(["notebook/js/widgets/widget"], function(widget_manager){
define(["notebook/js/widgets/widget"], function(WidgetManager){

var IntSliderView = IPython.DOMWidgetView.extend({
render : function(){
Expand Down Expand Up @@ -120,7 +120,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
this.touch();
},
});
widget_manager.register_widget_view('IntSliderView', IntSliderView);
WidgetManager.register_widget_view('IntSliderView', IntSliderView);


var IntTextView = IPython.DOMWidgetView.extend({
Expand Down Expand Up @@ -216,5 +216,5 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
}
}
});
widget_manager.register_widget_view('IntTextView', IntTextView);
WidgetManager.register_widget_view('IntTextView', IntTextView);
});
10 changes: 5 additions & 5 deletions IPython/html/static/notebook/js/widgets/widget_selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @namespace IPython
**/

define(["notebook/js/widgets/widget"], function(widget_manager){
define(["notebook/js/widgets/widget"], function(WidgetManager){

var DropdownView = IPython.DOMWidgetView.extend({
render : function(){
Expand Down Expand Up @@ -114,7 +114,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
},

});
widget_manager.register_widget_view('DropdownView', DropdownView);
WidgetManager.register_widget_view('DropdownView', DropdownView);


var RadioButtonsView = IPython.DOMWidgetView.extend({
Expand Down Expand Up @@ -204,7 +204,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
this.touch();
},
});
widget_manager.register_widget_view('RadioButtonsView', RadioButtonsView);
WidgetManager.register_widget_view('RadioButtonsView', RadioButtonsView);


var ToggleButtonsView = IPython.DOMWidgetView.extend({
Expand Down Expand Up @@ -289,7 +289,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
this.touch();
},
});
widget_manager.register_widget_view('ToggleButtonsView', ToggleButtonsView);
WidgetManager.register_widget_view('ToggleButtonsView', ToggleButtonsView);


var ListBoxView = IPython.DOMWidgetView.extend({
Expand Down Expand Up @@ -371,5 +371,5 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
this.touch();
},
});
widget_manager.register_widget_view('ListBoxView', ListBoxView);
WidgetManager.register_widget_view('ListBoxView', ListBoxView);
});
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @namespace IPython
**/

define(["notebook/js/widgets/widget"], function(widget_manager){
define(["notebook/js/widgets/widget"], function(WidgetManager){

var AccordionView = IPython.DOMWidgetView.extend({
render: function(){
Expand Down Expand Up @@ -129,7 +129,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
setTimeout(function(){ that.update(); }, 500);
},
});
widget_manager.register_widget_view('AccordionView', AccordionView);
WidgetManager.register_widget_view('AccordionView', AccordionView);


var TabView = IPython.DOMWidgetView.extend({
Expand Down Expand Up @@ -240,5 +240,5 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
this.containers[index].tab('show');
},
});
widget_manager.register_widget_view('TabView', TabView);
WidgetManager.register_widget_view('TabView', TabView);
});
10 changes: 5 additions & 5 deletions IPython/html/static/notebook/js/widgets/widget_string.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @namespace IPython
**/

define(["notebook/js/widgets/widget"], function(widget_manager){
define(["notebook/js/widgets/widget"], function(WidgetManager){

var HTMLView = IPython.DOMWidgetView.extend({
render : function(){
Expand All @@ -31,7 +31,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
return HTMLView.__super__.update.apply(this);
},
});
widget_manager.register_widget_view('HTMLView', HTMLView);
WidgetManager.register_widget_view('HTMLView', HTMLView);


var LatexView = IPython.DOMWidgetView.extend({
Expand All @@ -51,7 +51,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
return LatexView.__super__.update.apply(this);
},
});
widget_manager.register_widget_view('LatexView', LatexView);
WidgetManager.register_widget_view('LatexView', LatexView);


var TextAreaView = IPython.DOMWidgetView.extend({
Expand Down Expand Up @@ -124,7 +124,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
this.touch();
},
});
widget_manager.register_widget_view('TextAreaView', TextAreaView);
WidgetManager.register_widget_view('TextAreaView', TextAreaView);


var TextBoxView = IPython.DOMWidgetView.extend({
Expand Down Expand Up @@ -193,5 +193,5 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
}
},
});
widget_manager.register_widget_view('TextBoxView', TextBoxView);
WidgetManager.register_widget_view('TextBoxView', TextBoxView);
});