Commit a7b4069
authored
Add option to hide code cell in Jupyter notebooks (#183)
* Initial commit adding option to hide code cells when rendering Jupyter notebooks
* add types-six to requirements.txt
* update types
* skip parameter type check
* add types-click to requirements.txt
* Add types-Flask to requirements.txt
* rename noinput
* add feature to hide input cells tagged with 'remove_input'
* rename no_input to hide_all_input; rename no_tag_input to hide_tagged_input
* Update changelog for hide Jupyter code cell API
* update parameters to match click
* fix hide tagged input not working for static mode
* hide_all_input will take precedence if both hide_all_input and hide_tagged_input are selected
* Revert "hide_all_input will take precedence if both hide_all_input and hide_tagged_input are selected"
This reverts commit 8e7e687.
* hide_all_input will take precedence when both hide_all_input and hide_tagged_input are selected
* update manifest creation so hide input options don't overwrite one another
* update defaults
* add jupyter manifest handling without changing default manifest format
* update defaults
* add Python 2 compatibility for hide cell feature
* Update README with Hide Jupyter Notebook Input Code Cells
* move version checking
* update readme wrt hide input cell Jupyter dependencies
* update TagRemovePreprocessor command for Python 2
* update TagRemovePreprocessor for Python 2
* update TagRemovePreprocessor to remove quotes for jupyter cli parsing1 parent 11d584b commit a7b4069
File tree
5 files changed
+128
-12
lines changed- rsconnect
5 files changed
+128
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
18 | 41 | | |
19 | 42 | | |
20 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
513 | 513 | | |
514 | 514 | | |
515 | 515 | | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
| 476 | + | |
| 477 | + | |
476 | 478 | | |
477 | 479 | | |
478 | 480 | | |
| |||
496 | 498 | | |
497 | 499 | | |
498 | 500 | | |
| 501 | + | |
| 502 | + | |
499 | 503 | | |
500 | 504 | | |
501 | 505 | | |
| |||
504 | 508 | | |
505 | 509 | | |
506 | 510 | | |
507 | | - | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
508 | 514 | | |
509 | 515 | | |
510 | 516 | | |
| |||
1097 | 1103 | | |
1098 | 1104 | | |
1099 | 1105 | | |
| 1106 | + | |
| 1107 | + | |
1100 | 1108 | | |
1101 | 1109 | | |
1102 | 1110 | | |
| |||
1107 | 1115 | | |
1108 | 1116 | | |
1109 | 1117 | | |
| 1118 | + | |
| 1119 | + | |
1110 | 1120 | | |
1111 | 1121 | | |
1112 | 1122 | | |
| |||
1119 | 1129 | | |
1120 | 1130 | | |
1121 | 1131 | | |
1122 | | - | |
| 1132 | + | |
1123 | 1133 | | |
1124 | 1134 | | |
1125 | 1135 | | |
1126 | 1136 | | |
1127 | 1137 | | |
1128 | | - | |
| 1138 | + | |
1129 | 1139 | | |
1130 | 1140 | | |
1131 | 1141 | | |
| |||
1190 | 1200 | | |
1191 | 1201 | | |
1192 | 1202 | | |
1193 | | - | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
1194 | 1210 | | |
1195 | 1211 | | |
1196 | 1212 | | |
| |||
1206 | 1222 | | |
1207 | 1223 | | |
1208 | 1224 | | |
| 1225 | + | |
| 1226 | + | |
1209 | 1227 | | |
1210 | 1228 | | |
1211 | | - | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
1212 | 1233 | | |
1213 | 1234 | | |
1214 | 1235 | | |
1215 | | - | |
| 1236 | + | |
1216 | 1237 | | |
1217 | 1238 | | |
1218 | 1239 | | |
| |||
1225 | 1246 | | |
1226 | 1247 | | |
1227 | 1248 | | |
| 1249 | + | |
| 1250 | + | |
1228 | 1251 | | |
1229 | 1252 | | |
1230 | 1253 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
141 | | - | |
| 140 | + | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
151 | 157 | | |
152 | 158 | | |
153 | 159 | | |
| |||
205 | 211 | | |
206 | 212 | | |
207 | 213 | | |
| 214 | + | |
| 215 | + | |
208 | 216 | | |
209 | 217 | | |
210 | 218 | | |
| |||
217 | 225 | | |
218 | 226 | | |
219 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
220 | 234 | | |
221 | 235 | | |
222 | 236 | | |
| |||
259 | 273 | | |
260 | 274 | | |
261 | 275 | | |
| 276 | + | |
| 277 | + | |
262 | 278 | | |
263 | 279 | | |
264 | 280 | | |
| |||
274 | 290 | | |
275 | 291 | | |
276 | 292 | | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
277 | 301 | | |
278 | 302 | | |
279 | 303 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
| 525 | + | |
| 526 | + | |
525 | 527 | | |
526 | 528 | | |
527 | 529 | | |
| |||
542 | 544 | | |
543 | 545 | | |
544 | 546 | | |
| 547 | + | |
| 548 | + | |
545 | 549 | | |
546 | 550 | | |
547 | 551 | | |
| |||
570 | 574 | | |
571 | 575 | | |
572 | 576 | | |
573 | | - | |
574 | | - | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
575 | 580 | | |
576 | 581 | | |
577 | 582 | | |
| |||
936 | 941 | | |
937 | 942 | | |
938 | 943 | | |
| 944 | + | |
| 945 | + | |
939 | 946 | | |
940 | 947 | | |
941 | 948 | | |
942 | 949 | | |
943 | 950 | | |
944 | | - | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
945 | 954 | | |
946 | 955 | | |
947 | 956 | | |
| |||
960 | 969 | | |
961 | 970 | | |
962 | 971 | | |
963 | | - | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
964 | 978 | | |
965 | 979 | | |
966 | 980 | | |
| |||
0 commit comments