Skip to content

Commit 051554a

Browse files
committed
update: fix password entry
1 parent 0adecc3 commit 051554a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

examples/system/get_authentication_params.ipynb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@
5656
"# avoid storing password in plaintext\n",
5757
"from getpass import getpass\n",
5858
"\n",
59-
"PASSWORD = getpass(\"Please enter password: \")\n",
60-
"\n",
6159
"import os\n",
6260
"import sys\n",
6361
"\n",
@@ -80,7 +78,10 @@
8078
" await micropip.install(\"mat3ra-api-examples\", deps=False)\n",
8179
" from utils.jupyterlite import install_packages\n",
8280
"\n",
83-
" await install_packages(\"api_examples\")"
81+
" await install_packages(\"api_examples\")\n",
82+
" PASSWORD = await getpass(\"Please enter password: \")\n",
83+
"else:\n",
84+
" PASSWORD = getpass(\"Please enter password: \")"
8485
]
8586
},
8687
{

0 commit comments

Comments
 (0)