@@ -63,8 +63,6 @@ class Styler(object):
63
63
a unique identifier to avoid CSS collisons; generated automatically
64
64
caption: str, default None
65
65
caption to attach to the table
66
- disabled_mathjax: bool, default False
67
- prevent MathJax from processing table contents
68
66
69
67
Attributes
70
68
----------
@@ -113,7 +111,7 @@ class Styler(object):
113
111
template = env .get_template ("html.tpl" )
114
112
115
113
def __init__ (self , data , precision = None , table_styles = None , uuid = None ,
116
- caption = None , disabled_mathjax = False , table_attributes = None ):
114
+ caption = None , table_attributes = None ):
117
115
self .ctx = defaultdict (list )
118
116
self ._todo = []
119
117
@@ -131,7 +129,6 @@ def __init__(self, data, precision=None, table_styles=None, uuid=None,
131
129
self .uuid = uuid
132
130
self .table_styles = table_styles
133
131
self .caption = caption
134
- self .disabled_mathjax = disabled_mathjax
135
132
if precision is None :
136
133
precision = get_option ('display.precision' )
137
134
self .precision = precision
@@ -184,7 +181,6 @@ def _translate(self):
184
181
"""
185
182
table_styles = self .table_styles or []
186
183
caption = self .caption
187
- disabled_mathjax = self .disabled_mathjax
188
184
ctx = self .ctx
189
185
precision = self .precision
190
186
hidden_index = self .hidden_index
@@ -331,8 +327,7 @@ def format_attr(pair):
331
327
332
328
return dict (head = head , cellstyle = cellstyle , body = body , uuid = uuid ,
333
329
precision = precision , table_styles = table_styles ,
334
- caption = caption , disabled_mathjax = disabled_mathjax ,
335
- table_attributes = self .table_attributes )
330
+ caption = caption , table_attributes = self .table_attributes )
336
331
337
332
def format (self , formatter , subset = None ):
338
333
"""
@@ -436,7 +431,6 @@ def render(self, **kwargs):
436
431
* precision
437
432
* table_styles
438
433
* caption
439
- * disabled_mathjax
440
434
* table_attributes
441
435
"""
442
436
self ._compute ()
@@ -471,7 +465,6 @@ def _update_ctx(self, attrs):
471
465
def _copy (self , deepcopy = False ):
472
466
styler = Styler (self .data , precision = self .precision ,
473
467
caption = self .caption , uuid = self .uuid ,
474
- disabled_mathjax = self .disabled_mathjax ,
475
468
table_styles = self .table_styles )
476
469
if deepcopy :
477
470
styler .ctx = copy .deepcopy (self .ctx )
@@ -801,17 +794,6 @@ def set_table_styles(self, table_styles):
801
794
self .table_styles = table_styles
802
795
return self
803
796
804
- def disable_mathjax (self ):
805
- """
806
- Prevent MathJax from processing table contents.
807
-
808
- Returns
809
- -------
810
- self : Styler
811
- """
812
- self .disabled_mathjax = True
813
- return self
814
-
815
797
def hide_index (self ):
816
798
"""
817
799
Hide any indices from rendering.
0 commit comments