require(["notebook/js/widget"], function(){ var SelectionWidgetModel = IPython.WidgetModel.extend({}); IPython.notebook.widget_manager.register_widget_model('SelectionWidgetModel', SelectionWidgetModel); var DropdownView = IPython.WidgetView.extend({ // Called when view is rendered. render : function(){ this.$el .html('') .addClass('widget_item') .addClass(this.model.comm.comm_id); this.$buttongroup = $('
') .addClass('widget_item') .addClass('btn-group') .appendTo(this.$el); this.$droplabel = $('