Commit 5c3d0f1
feat: Support Deepnote input blocks (#42)
* feat: Set up a custom renderer for data frames.
* wip
* feat: Implement deepnote big number chart support and renderer
* refactor: Clean up debug logs and improve big number block conversion handling
* feat: Pass block metadata to cell outputs for renderer to access
* feat: Set up a custom renderer for data frames.
* wip
* add the table state.
* page size handling
* add page navigation
* Generate Python code before executing the cell.
* clean up
* pr feedback.
* Update build/esbuild/build.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* feat: Support Deepnote input blocks
* feat: Move DEEPNOTE_VSCODE_RAW_CONTENT_KEY into constants file
* feedback
* feat: Add Deepnote input blocks converters
* refactor: Remove debug logs and refine metadata parsing in Deepnote converters
* feat: Add chart big number converter tests
* Reformat test code
* Refactor ChartBigNumberBlockConverter tests to use deepStrictEqual for assertions
* Remove debug console.log
* docs and metadata changes.
* fix: Spread operator object fallback
* Merge remote-tracking branch 'origin/chris/display-data-frames' into tomaskislan/grn-4762-support-big-number-blocks
* use the latest blocks package.
* add the packages permission
* simplify execution flow.
* remove copyright header
* clean up the code
* revert controller changes
* pr feedback
* pr feedback
* fix the tests
* guard metadata spread against undefined.
* fix: Merge cleanup
* More merge cleanup
* Fix test
* feat: Add big number chart json config execution support
* fix: Enhance error handling for big number metadata parsing and improve chart big number renderer logic
* refactor: Simplify chart big number renderer by directly rendering to the element and improve cleanup logic for unmounting components
* Fix import
* fix: Change deepnote_big_number_comparison_type to string type for better flexibility
* fix: Remove constants, accidentaly added to wrong branch
* Fix imports
* fix: Fix imports
* fix: Remove unused code
* feat(big-number): Integrate react-error-boundary for error handling and enhance big number output rendering
* Update test snapshots
* feat: Update input create default values to match those in deepnote app
Signed-off-by: Tomas Kislan <tomas@kislan.sk>
* feat: Display input block type in notebook cell status bar
Signed-off-by: Tomas Kislan <tomas@kislan.sk>
* fix: Fix spell check in test
Signed-off-by: Tomas Kislan <tomas@kislan.sk>
---------
Signed-off-by: Tomas Kislan <tomas@kislan.sk>
Co-authored-by: Christoffer Artmann <artgaard@gmail.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: James Hobbs <15235276+jamesbhobbs@users.noreply.github.com>1 parent 30e3d16 commit 5c3d0f1
File tree
8 files changed
+1839
-0
lines changed- src/notebooks
- deepnote
- converters
8 files changed
+1839
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
0 commit comments