Skip to content

Commit 97b6ba7

Browse files
authored
Merge pull request #2799 from martinRenou/add_file_upload_warning_docs
Docs: Add warning concerning the FileUpload widget
2 parents 1479bea + 6f1b379 commit 97b6ba7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/source/examples/Widget List.ipynb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,6 +1130,10 @@
11301130
"- The `.value` traitlet is now a list of dictionaries, rather than a dictionary mapping the uploaded name to the content. To retrieve the original form, use `{f[\"name\"]: f.content.tobytes() for f in uploader.value}`.\n",
11311131
"- The `.data` traitlet has been removed. To retrieve it, use `[f.content.tobytes() for f in uploader.value]`.\n",
11321132
"- The `.metadata` traitlet has been removed. To retrieve it, use `[{k: v for k, v in f.items() if k != \"content\"} for f in w.value]`.\n",
1133+
"</div>\n",
1134+
"\n",
1135+
"<div class=\"alert alert-warning\">\n",
1136+
"Warning: When using the `FileUpload` Widget, uploaded file content might be saved in the notebook if widget state is saved.\n",
11331137
"</div>"
11341138
]
11351139
},

0 commit comments

Comments
 (0)