Commit db23c1c
Append insert execute code cell (#175)
* feat: add Plotly output parsing and rename health endpoint
- Update `extract_output` in `utils.py` to detect and serialize Plotly data structures into formatted JSON strings.
- Filter out non-standard `transient` fields from execution outputs to improve `nbformat` schema compliance.
- Change health check route from `/api/healthz` to `/api/health` in `server.py`.
- Add debug logging for output data keys to assist with visualization detection.
* Modify insert_execute_code_cell index validation
Updated cell_index parameter to allow -1 as a valid index.
* Enhance tests for inserting code cells
Added test for appending code cell to notebook.
* removed plotly parsing, healthz rename
---------
Co-authored-by: Nico McGill <[email protected]>1 parent 38c9b9d commit db23c1c
3 files changed
+15
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
413 | | - | |
| 413 | + | |
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
| |||
743 | 743 | | |
744 | 744 | | |
745 | 745 | | |
746 | | - | |
| 746 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
86 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
| |||
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
| 99 | + | |
| 100 | + | |
96 | 101 | | |
97 | 102 | | |
98 | 103 | | |
| |||
943 | 948 | | |
944 | 949 | | |
945 | 950 | | |
946 | | - | |
| 951 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
111 | 116 | | |
112 | 117 | | |
113 | 118 | | |
| |||
267 | 272 | | |
268 | 273 | | |
269 | 274 | | |
270 | | - | |
| 275 | + | |
0 commit comments