Skip to content

Commit

Permalink
Renamed tests.ipynb in example.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
VForiel committed Aug 18, 2022
1 parent abd3d06 commit bf14fd6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
23 changes: 12 additions & 11 deletions tests.ipynb → examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[32;1m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ \u001b[32;1m100% \u001b[31;1m1000/1000 \u001b[35m0:00:10\u001b[0m[0meta \u001b[34m0:00:00\u001b[0m\n",
"test\n",
"\u001b[0mThe best bar \u001b[33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[33m╸\u001b[37;1m━━━━━━━━━━━━━━━ \u001b[33m67% \u001b[31;1m671/1000 \u001b[35m0:00:07\u001b[0m[34m0:00:03\u001b[0m\n",
"\u001b[0mWaw, another incredible bar \u001b[32;1m━━━━━━━━━━━\u001b[37;1m╺\u001b[37;1m━━━━━━━ \u001b[32;1m58% \u001b[31;1m583/1000 \u001b[35m0:00:06 \u001b[0meta \u001b[34m0:00:04\u001b[0m\r"
"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'"
]
}
],
Expand All @@ -22,13 +23,13 @@
"\n",
"N = 1000\n",
"\n",
"a = progress.bar(max = N)\n",
"a = progress.Bar(max = N)\n",
"\n",
"for i in range(N):\n",
" a(i+1)\n",
" time.sleep(0.01)\n",
"\n",
"a = progress.bar(prefix = \"The best bar\", max = N)\n",
"a = progress.Bar(prefix = \"The best bar\", max = N)\n",
"\n",
"for i in range(N):\n",
" a(i+1, prefix=i if i<N/2 else None)\n",
Expand All @@ -37,7 +38,7 @@
" break\n",
" time.sleep(0.01)\n",
"\n",
"a = progress.bar(prefix = \"Waw, another incredible bar\", max = N)\n",
"a = progress.Bar(prefix = \"Waw, another incredible bar\", max = N)\n",
"\n",
"for i in range(N):\n",
" a(i+1)\n",
Expand All @@ -46,7 +47,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand Down
9 changes: 9 additions & 0 deletions logs/2022-08-18_16.28.16.946707.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
ENVIRONMENT: uname_result(system='Windows', node='Vince_MateBook', release='10', version='10.0.22622', machine='AMD64')

18/08/2022 at 16:28:59 | [INFO] Hello world!
18/08/2022 at 16:28:59 | [WARNING] Hello world!
18/08/2022 at 16:28:59 | [ERROR] Hello world!
18/08/2022 at 16:28:59 | Full traceback below.

NoneType: None

0 comments on commit bf14fd6

Please sign in to comment.