From 76d0eeb8ffdd47e38c60e5f0c6c9222ea2c135ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Ferenc=20Gyarmati?= Date: Sun, 17 Nov 2024 14:47:59 +0100 Subject: [PATCH] chore: revert nb output changes to minimize diffs --- docs/applications/debug_draco.ipynb | 238 +++++++++++++---------- docs/applications/draco1_vs_draco2.ipynb | 163 ++++++++-------- 2 files changed, 218 insertions(+), 183 deletions(-) diff --git a/docs/applications/debug_draco.ipynb b/docs/applications/debug_draco.ipynb index 65914c21..716cd3c5 100644 --- a/docs/applications/debug_draco.ipynb +++ b/docs/applications/debug_draco.ipynb @@ -7,6 +7,35 @@ "# Draco Debugging" ] }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "ExecuteTime": { + "end_time": "2023-07-25T15:03:35.145025Z", + "start_time": "2023-07-25T15:03:32.637995Z" + }, + "collapsed": false, + "jupyter": { + "outputs_hidden": false + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip is available: \u001b[0m\u001b[31;49m23.3.2\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m24.0\u001b[0m\n", + "\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpip install --upgrade pip\u001b[0m\n", + "Note: you may need to restart the kernel to use updated packages.\n" + ] + } + ], + "source": [ + "%pip install -q toml ipywidgets" + ] + }, { "cell_type": "code", "execution_count": 2, @@ -207,28 +236,28 @@ "text/html": [ "\n", "\n", - "
\n", + "
\n", "" ], "text/plain": [ @@ -312,7 +341,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "39c862fb91174de9ac3012a5cf6aa17b", + "model_id": "75792a8bef074f7286e76eea34d86a95", "version_major": 2, "version_minor": 0 }, @@ -537,28 +566,28 @@ "text/html": [ "\n", "\n", - "
\n", + "
\n", "" ], "text/plain": [ @@ -669,28 +698,28 @@ "text/html": [ "\n", "\n", - "
\n", + "
\n", "" ], "text/plain": [ @@ -799,28 +828,28 @@ "text/html": [ "\n", "\n", - "
\n", + "
\n", "" ], "text/plain": [ @@ -931,28 +960,28 @@ "text/html": [ "\n", "\n", - "
\n", + "
\n", "" ], "text/plain": [ @@ -1063,28 +1092,28 @@ "text/html": [ "\n", "\n", - "
\n", + "
\n", "" ], "text/plain": [ @@ -1147,28 +1176,28 @@ "text/html": [ "\n", "\n", - "
\n", + "
\n", "" ], "text/plain": [ @@ -1369,28 +1398,28 @@ "text/html": [ "\n", "\n", - "
\n", + "
\n", "" ], "text/plain": [ @@ -1474,28 +1503,28 @@ "text/html": [ "\n", "\n", - "
\n", + "
\n", "" ], "text/plain": [ @@ -1579,28 +1608,28 @@ "text/html": [ "\n", "\n", - "
\n", + "
\n", "" ], "text/plain": [ @@ -1663,28 +1692,28 @@ "text/html": [ "\n", "\n", - "
\n", + "
\n", "" ], "text/plain": [ @@ -1954,7 +1983,7 @@ ], "metadata": { "kernelspec": { - "display_name": ".venv", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -1968,7 +1997,12 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.4" + "version": "3.10.0" + }, + "vscode": { + "interpreter": { + "hash": "ad2bdc8ecc057115af97d19610ffacc2b4e99fae6737bb82f5d7fb13d2f2c186" + } } }, "nbformat": 4, diff --git a/docs/applications/draco1_vs_draco2.ipynb b/docs/applications/draco1_vs_draco2.ipynb index 7b5993e4..e2aba562 100644 --- a/docs/applications/draco1_vs_draco2.ipynb +++ b/docs/applications/draco1_vs_draco2.ipynb @@ -68,8 +68,9 @@ }, "outputs": [], "source": [ - "# Installing `clyngor` and `pandas` prior to `draco1`, as they are needed for the build\n", - "!uv pip install -q 'git+https://github.com/peter-gy/draco.git@named-to-draco1#draco1'" + "# Installing `clyngor` prior to `draco1`, as it is a build requirement\n", + "!pip -qq install --upgrade pip && pip -qq install clyngor\n", + "!pip install -qq 'git+https://github.com/peter-gy/draco.git@named-to-draco1#draco1'" ] }, { @@ -86,7 +87,7 @@ { "data": { "text/markdown": [ - "Comparing _Draco 1: v0.0.9_ with _Draco 2: v2.0.1_" + "Comparing _Draco 1: v0.0.9_ with _Draco 2: v2.0.0b5_" ], "text/plain": [ "" @@ -591,28 +592,28 @@ "text/html": [ "\n", "\n", - "
\n", + "
\n", "" ], "text/plain": [ @@ -1009,28 +1010,28 @@ "text/html": [ "\n", "\n", - "
\n", + "
\n", "" ], "text/plain": [ @@ -1526,52 +1527,52 @@ " \n", " \n", " 0\n", - " 1.0\n", - " 1.0\n", - " 29.0\n", - " 34.0\n", - " 20.0\n", - " 27.0\n", + " 1\n", + " 1\n", + " 29\n", + " 34\n", + " 20\n", + " 27\n", " 0\n", " \n", " \n", " 1\n", - " 0.0\n", - " 0.0\n", - " 20.0\n", - " 27.0\n", - " 29.0\n", - " 36.0\n", + " 0\n", + " 0\n", + " 20\n", + " 27\n", + " 29\n", + " 36\n", " 0\n", " \n", " \n", " 2\n", - " 1.0\n", - " 0.0\n", - " 30.0\n", - " 33.0\n", - " 30.0\n", - " 36.0\n", + " 1\n", + " 0\n", + " 30\n", + " 33\n", + " 30\n", + " 36\n", " 1\n", " \n", " \n", " 3\n", - " 0.0\n", - " 0.0\n", - " 20.0\n", - " 27.0\n", - " 29.0\n", - " 36.0\n", + " 0\n", + " 0\n", + " 20\n", + " 27\n", + " 29\n", + " 36\n", " 0\n", " \n", " \n", " 4\n", - " 0.0\n", - " 0.0\n", - " 20.0\n", - " 25.0\n", - " 29.0\n", - " 36.0\n", + " 0\n", + " 0\n", + " 20\n", + " 25\n", + " 29\n", + " 36\n", " 0\n", " \n", " \n", @@ -1581,19 +1582,19 @@ "text/plain": [ " better_ranked_drc1 better_ranked_drc2 cost_a_drc1 cost_a_drc2 \\\n", "pair_idx \n", - "0 1.0 1.0 29.0 34.0 \n", - "1 0.0 0.0 20.0 27.0 \n", - "2 1.0 0.0 30.0 33.0 \n", - "3 0.0 0.0 20.0 27.0 \n", - "4 0.0 0.0 20.0 25.0 \n", + "0 1 1 29 34 \n", + "1 0 0 20 27 \n", + "2 1 0 30 33 \n", + "3 0 0 20 27 \n", + "4 0 0 20 25 \n", "\n", " cost_b_drc1 cost_b_drc2 ranking_is_different \n", "pair_idx \n", - "0 20.0 27.0 0 \n", - "1 29.0 36.0 0 \n", - "2 30.0 36.0 1 \n", - "3 29.0 36.0 0 \n", - "4 29.0 36.0 0 " + "0 20 27 0 \n", + "1 29 36 0 \n", + "2 30 36 1 \n", + "3 29 36 0 \n", + "4 29 36 0 " ] }, "execution_count": 22, @@ -1625,28 +1626,28 @@ "text/html": [ "\n", "\n", - "
\n", + "
\n", "" ], "text/plain": [ @@ -1788,28 +1789,28 @@ "text/html": [ "\n", "\n", - "
\n", + "
\n", "" ], "text/plain": [ @@ -1926,7 +1927,7 @@ ], "metadata": { "kernelspec": { - "display_name": ".venv", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -1940,7 +1941,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.7" + "version": "3.10.11" } }, "nbformat": 4,