(cmds, **kargs)
| 236 | |
| 237 | |
| 238 | def autorun_get_html_interactive_session(cmds, **kargs): |
| 239 | # type: (str, **Any) -> Tuple[str, Any] |
| 240 | ct = conf.color_theme |
| 241 | |
| 242 | def to_html(s): |
| 243 | # type: (str) -> str |
| 244 | return s.replace("<", "<").replace(">", ">").replace("#[#", "<").replace("#]#", ">") # noqa: E501 |
| 245 | try: |
| 246 | try: |
| 247 | conf.color_theme = HTMLTheme2() |
| 248 | s, res = autorun_get_interactive_session(cmds, **kargs) |
| 249 | except StopAutorun as e: |
| 250 | e.code_run = to_html(e.code_run) |
| 251 | raise |
| 252 | finally: |
| 253 | conf.color_theme = ct |
| 254 | |
| 255 | return to_html(s), res |
| 256 | |
| 257 | |
| 258 | def autorun_get_latex_interactive_session(cmds, **kargs): |
nothing calls this directly
no test coverage detected
searching dependent graphs…