File tree Expand file tree Collapse file tree 1 file changed +0
-27
lines changed Expand file tree Collapse file tree 1 file changed +0
-27
lines changed Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
15
15
import functools
16
- import re
17
16
import warnings
18
17
19
18
from typing import Dict , List , Tuple , Union
25
24
26
25
from cachetools import LRUCache , cachedmethod
27
26
28
- LATEX_ESCAPE_RE = re .compile (r"(%|_|\$|#|&)" , re .MULTILINE )
29
-
30
27
UNSET = object ()
31
28
32
29
@@ -118,30 +115,6 @@ def tree_contains(self, item):
118
115
return dict .__contains__ (self , item )
119
116
120
117
121
- def escape_latex (strng ):
122
- r"""Consistently escape LaTeX special characters for _repr_latex_ in IPython
123
-
124
- Implementation taken from the IPython magic `format_latex`
125
-
126
- Examples
127
- --------
128
- escape_latex('disease_rate') # 'disease\_rate'
129
-
130
- Parameters
131
- ----------
132
- strng: str
133
- string to escape LaTeX characters
134
-
135
- Returns
136
- -------
137
- str
138
- A string with LaTeX escaped
139
- """
140
- if strng is None :
141
- return "None"
142
- return LATEX_ESCAPE_RE .sub (r"\\\1" , strng )
143
-
144
-
145
118
def get_transformed_name (name , transform ):
146
119
r"""
147
120
Consistent way of transforming names
You can’t perform that action at this time.
0 commit comments