Convert a text event into a JSON-compatible response.
(wall_time, step, string_ndarray, enable_markdown)
| 198 | |
| 199 | |
| 200 | def process_event(wall_time, step, string_ndarray, enable_markdown): |
| 201 | """Convert a text event into a JSON-compatible response.""" |
| 202 | html = text_array_to_html(string_ndarray, enable_markdown) |
| 203 | return { |
| 204 | "wall_time": wall_time, |
| 205 | "step": step, |
| 206 | "text": html, |
| 207 | } |
| 208 | |
| 209 | |
| 210 | class TextPlugin(base_plugin.TBPlugin): |
no test coverage detected
searching dependent graphs…