Skip to content

Commit

Permalink
fixed examples
Browse files Browse the repository at this point in the history
  • Loading branch information
VForiel committed Aug 18, 2022
1 parent bf14fd6 commit 4865de8
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@
"metadata": {},
"outputs": [
{
"ename": "AttributeError",
"evalue": "module 'LRFutils.progress' has no attribute 'bar'",
"output_type": "error",
"traceback": [
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[1;31mAttributeError\u001b[0m Traceback (most recent call last)",
"\u001b[1;32mc:\\Users\\vince\\Documents\\Dev\\Perso\\LRFutils\\examples.ipynb Cell 1\u001b[0m in \u001b[0;36m<cell line: 6>\u001b[1;34m()\u001b[0m\n\u001b[0;32m <a href='vscode-notebook-cell:/c%3A/Users/vince/Documents/Dev/Perso/LRFutils/examples.ipynb#W0sZmlsZQ%3D%3D?line=1'>2</a>\u001b[0m \u001b[39mimport\u001b[39;00m \u001b[39mtime\u001b[39;00m\n\u001b[0;32m <a href='vscode-notebook-cell:/c%3A/Users/vince/Documents/Dev/Perso/LRFutils/examples.ipynb#W0sZmlsZQ%3D%3D?line=3'>4</a>\u001b[0m N \u001b[39m=\u001b[39m \u001b[39m1000\u001b[39m\n\u001b[1;32m----> <a href='vscode-notebook-cell:/c%3A/Users/vince/Documents/Dev/Perso/LRFutils/examples.ipynb#W0sZmlsZQ%3D%3D?line=5'>6</a>\u001b[0m a \u001b[39m=\u001b[39m progress\u001b[39m.\u001b[39;49mbar(\u001b[39mmax\u001b[39m \u001b[39m=\u001b[39m N)\n\u001b[0;32m <a href='vscode-notebook-cell:/c%3A/Users/vince/Documents/Dev/Perso/LRFutils/examples.ipynb#W0sZmlsZQ%3D%3D?line=7'>8</a>\u001b[0m \u001b[39mfor\u001b[39;00m i \u001b[39min\u001b[39;00m \u001b[39mrange\u001b[39m(N):\n\u001b[0;32m <a href='vscode-notebook-cell:/c%3A/Users/vince/Documents/Dev/Perso/LRFutils/examples.ipynb#W0sZmlsZQ%3D%3D?line=8'>9</a>\u001b[0m a(i\u001b[39m+\u001b[39m\u001b[39m1\u001b[39m)\n",
"\u001b[1;31mAttributeError\u001b[0m: module 'LRFutils.progress' has no attribute 'bar'"
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[32;1m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ \u001b[32;1m100% \u001b[31;1m1000/1000 \u001b[35m0:00:15\u001b[0m[0meta \u001b[34m0:00:00\u001b[0m\n",
"\u001b[0mThe best bar \u001b[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[33m╸\u001b[37;1m━━━━━━━━━━━━━━━━ \u001b[33m64% \u001b[31;1m648/1000 \u001b[35m0:00:10\u001b[0m[34m0:00:05\u001b[0m\n",
"\u001b[0mWaw, another incredible bar \u001b[32;1m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ \u001b[32;1m100% \u001b[31;1m1000/1000 \u001b[35m0:00:15\u001b[0m[0meta \u001b[34m0:00:00\u001b[0m\n"
]
}
],
Expand Down Expand Up @@ -47,17 +45,17 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[34m18/08/2022\u001b[0m at \u001b[35m16:16:27\u001b[0m | \u001b[32m[INFO] \u001b[0mHello world!\n",
"\u001b[34m18/08/2022\u001b[0m at \u001b[35m16:16:27\u001b[0m | \u001b[33m[WARNING] Hello world!\u001b[0m\n",
"\u001b[34m18/08/2022\u001b[0m at \u001b[35m16:16:27\u001b[0m | \u001b[41m[ERROR] Hello world!\u001b[0m\n",
" -> Look at \u001b[32mlogs/2022-08-18_16.16.27.447227.log\u001b[0m for more information.\n",
"\u001b[34m18/08/2022\u001b[0m at \u001b[35m16:28:59\u001b[0m | \u001b[32m[INFO] \u001b[0mHello world!\n",
"\u001b[34m18/08/2022\u001b[0m at \u001b[35m16:28:59\u001b[0m | \u001b[33m[WARNING] Hello world!\u001b[0m\n",
"\u001b[34m18/08/2022\u001b[0m at \u001b[35m16:28:59\u001b[0m | \u001b[41m[ERROR] Hello world!\u001b[0m\n",
" -> Look at \u001b[32mlogs/2022-08-18_16.28.16.946707.log\u001b[0m for more information.\n",
"\n"
]
}
Expand Down

0 comments on commit 4865de8

Please sign in to comment.