diff --git a/examples.ipynb b/examples.ipynb index cb97d7b..a84da57 100644 --- a/examples.ipynb +++ b/examples.ipynb @@ -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\u001b[1;34m()\u001b[0m\n\u001b[0;32m 2\u001b[0m \u001b[39mimport\u001b[39;00m \u001b[39mtime\u001b[39;00m\n\u001b[0;32m 4\u001b[0m N \u001b[39m=\u001b[39m \u001b[39m1000\u001b[39m\n\u001b[1;32m----> 6\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 8\u001b[0m \u001b[39mfor\u001b[39;00m i \u001b[39min\u001b[39;00m \u001b[39mrange\u001b[39m(N):\n\u001b[0;32m 9\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" ] } ], @@ -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" ] }