{ "cells": [ { "cell_type": "code", "execution_count": 13, "metadata": { "collapsed": false }, "outputs": [ { "data": { "application/javascript": [ "\n", " require([\"widgets/js/widget\", \"widgets/js/manager\"],\n", " function(widget, manager) {\n", " if (typeof widget.DOMWidgetView == 'undefined') {\n", " widget = IPython;\n", " }\n", " if (typeof manager.WidgetManager == 'undefined') {\n", " manager = IPython;\n", " }\n", "\n", " var NengoProgressBar = widget.DOMWidgetView.extend({\n", " render: function() {\n", " // Work-around for messed up CSS in IPython 4\n", " $('.widget-subarea').css({flex: '2 1 0%'});\n", " // $el is the DOM of the widget\n", " this.$el.css({width: '100%', marginBottom: '0.5em'});\n", " this.$el.html([\n", " '