From bf14fd6d770548f1f48491c6350e43a23beb31db Mon Sep 17 00:00:00 2001 From: "Vincent (Leirof)" Date: Thu, 18 Aug 2022 16:30:17 +0200 Subject: [PATCH] Renamed tests.ipynb in example.ipynb --- tests.ipynb => examples.ipynb | 23 ++++++++++++----------- logs/2022-08-18_16.28.16.946707.log | 9 +++++++++ 2 files changed, 21 insertions(+), 11 deletions(-) rename tests.ipynb => examples.ipynb (51%) create mode 100644 logs/2022-08-18_16.28.16.946707.log diff --git a/tests.ipynb b/examples.ipynb similarity index 51% rename from tests.ipynb rename to examples.ipynb index 598f7a0..cb97d7b 100644 --- a/tests.ipynb +++ b/examples.ipynb @@ -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\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'" ] } ], @@ -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