Skip to content

Commit 7d9141a

Browse files
committed
Add the Password widget to the widget list
1 parent f872da2 commit 7d9141a

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

docs/source/examples/Widget List.ipynb

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,32 @@
756756
")"
757757
]
758758
},
759+
{
760+
"cell_type": "markdown",
761+
"metadata": {},
762+
"source": [
763+
"### Password\n",
764+
"\n",
765+
"The `Password` widget hides user input on the screen. **This widget is not a secure way to collect sensitive information because:**\n",
766+
"\n",
767+
"+ The contents of the `Password` widget are transmitted unencrypted.\n",
768+
"+ If the widget state is saved in the notebook the contents of the `Password` widget is stored as plain text."
769+
]
770+
},
771+
{
772+
"cell_type": "code",
773+
"execution_count": null,
774+
"metadata": {},
775+
"outputs": [],
776+
"source": [
777+
"widgets.Password(\n",
778+
" value='password',\n",
779+
" placeholder='Enter password',\n",
780+
" description='Password:',\n",
781+
" disabled=False\n",
782+
")"
783+
]
784+
},
759785
{
760786
"cell_type": "markdown",
761787
"metadata": {

0 commit comments

Comments
 (0)