diff --git a/IPython/html/static/widgets/js/widget_bool.js b/IPython/html/static/widgets/js/widget_bool.js index 2f4669c..5bf8626 100644 --- a/IPython/html/static/widgets/js/widget_bool.js +++ b/IPython/html/static/widgets/js/widget_bool.js @@ -60,6 +60,7 @@ define(["widgets/js/widget"], function(WidgetManager){ this.$label.hide(); } else { this.$label.text(description); + MathJax.Hub.Queue(["Typeset",MathJax.Hub,this.$label.get(0)]); this.$label.show(); } } diff --git a/IPython/html/static/widgets/js/widget_container.js b/IPython/html/static/widgets/js/widget_container.js index c55f359..692d199 100644 --- a/IPython/html/static/widgets/js/widget_container.js +++ b/IPython/html/static/widgets/js/widget_container.js @@ -273,6 +273,7 @@ define(["widgets/js/widget"], function(WidgetManager) { this.$title.html(" "); // Preserve title height } else { this.$title.text(description); + MathJax.Hub.Queue(["Typeset",MathJax.Hub,this.$title.get(0)]); } var button_text = this.model.get('button_text'); diff --git a/IPython/html/static/widgets/js/widget_int.js b/IPython/html/static/widgets/js/widget_int.js index c70477b..f6761ab 100644 --- a/IPython/html/static/widgets/js/widget_int.js +++ b/IPython/html/static/widgets/js/widget_int.js @@ -32,7 +32,7 @@ define(["widgets/js/widget"], function(WidgetManager){ // Put the slider in a container this.$slider_container = $('
') .addClass('widget-hslider') - .append(this.$slider) + .append(this.$slider); this.$el_to_style = this.$slider_container; // Set default element to style this.$el.append(this.$slider_container); @@ -113,6 +113,7 @@ define(["widgets/js/widget"], function(WidgetManager){ this.$label.hide(); } else { this.$label.text(description); + MathJax.Hub.Queue(["Typeset",MathJax.Hub,this.$label.get(0)]); this.$label.show(); } @@ -192,6 +193,7 @@ define(["widgets/js/widget"], function(WidgetManager){ this.$label.hide(); } else { this.$label.text(description); + MathJax.Hub.Queue(["Typeset",MathJax.Hub,this.$label.get(0)]); this.$label.show(); } } @@ -294,6 +296,7 @@ define(["widgets/js/widget"], function(WidgetManager){ this.$label.hide(); } else { this.$label.text(description); + MathJax.Hub.Queue(["Typeset",MathJax.Hub,this.$label.get(0)]); this.$label.show(); } return ProgressView.__super__.update.apply(this); diff --git a/IPython/html/static/widgets/js/widget_selection.js b/IPython/html/static/widgets/js/widget_selection.js index d6d4f04..f95622e 100644 --- a/IPython/html/static/widgets/js/widget_selection.js +++ b/IPython/html/static/widgets/js/widget_selection.js @@ -96,6 +96,7 @@ define(["widgets/js/widget"], function(WidgetManager){ this.$label.hide(); } else { this.$label.text(description); + MathJax.Hub.Queue(["Typeset",MathJax.Hub,this.$label.get(0)]); this.$label.show(); } } @@ -187,6 +188,7 @@ define(["widgets/js/widget"], function(WidgetManager){ this.$label.hide(); } else { this.$label.text(description); + MathJax.Hub.Queue(["Typeset",MathJax.Hub,this.$label.get(0)]); this.$label.show(); } } @@ -279,6 +281,7 @@ define(["widgets/js/widget"], function(WidgetManager){ this.$label.hide(); } else { this.$label.text(description); + MathJax.Hub.Queue(["Typeset",MathJax.Hub,this.$label.get(0)]); this.$label.show(); } } @@ -362,6 +365,7 @@ define(["widgets/js/widget"], function(WidgetManager){ this.$label.hide(); } else { this.$label.text(description); + MathJax.Hub.Queue(["Typeset",MathJax.Hub,this.$label.get(0)]); this.$label.show(); } } diff --git a/IPython/html/static/widgets/js/widget_string.js b/IPython/html/static/widgets/js/widget_string.js index 4fe80d4..9a97942 100644 --- a/IPython/html/static/widgets/js/widget_string.js +++ b/IPython/html/static/widgets/js/widget_string.js @@ -113,6 +113,7 @@ define(["widgets/js/widget"], function(WidgetManager){ this.$label.hide(); } else { this.$label.text(description); + MathJax.Hub.Queue(["Typeset",MathJax.Hub,this.$label.get(0)]); this.$label.show(); } } @@ -185,6 +186,7 @@ define(["widgets/js/widget"], function(WidgetManager){ this.$label.hide(); } else { this.$label.text(description); + MathJax.Hub.Queue(["Typeset",MathJax.Hub,this.$label.get(0)]); this.$label.show(); } }