From 25b8a790e4d1a945009dd58c8aa1454d223314ca Mon Sep 17 00:00:00 2001 From: Tias Guns Date: Tue, 10 Oct 2023 13:42:15 +0200 Subject: [PATCH] sudoku example, add cell for pip install also add visualisation libraries --- examples/quickstart_sudoku.ipynb | 38 +++++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 10 deletions(-) diff --git a/examples/quickstart_sudoku.ipynb b/examples/quickstart_sudoku.ipynb index 57e09059c..077b6a7e6 100644 --- a/examples/quickstart_sudoku.ipynb +++ b/examples/quickstart_sudoku.ipynb @@ -8,9 +8,11 @@ "\n", "If you want to run this on your local machine, make sure to install CPMpy first:\n", "\n", - " pip3 install cpmpy\n", - " \n", - "## Loading the libraries\n" + "```bash\n", + " pip3 install cpmpy \n", + "\n", + "\n", + "and for visualisations, also `pandas`, `matplotlib` and `seaborn`:" ] }, { @@ -18,6 +20,22 @@ "execution_count": 1, "metadata": {}, "outputs": [], + "source": [ + "!pip install cpmpy pandas matplotlib seaborn --quiet" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Loading the libraries" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [], "source": [ "# load the libraries\n", "import numpy as np\n", @@ -37,7 +55,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 3, "metadata": {}, "outputs": [], "source": [ @@ -72,7 +90,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 4, "metadata": {}, "outputs": [], "source": [ @@ -95,7 +113,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 5, "metadata": {}, "outputs": [], "source": [ @@ -129,7 +147,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 6, "metadata": {}, "outputs": [ { @@ -165,7 +183,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 7, "metadata": {}, "outputs": [ { @@ -220,7 +238,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3 (ipykernel)", + "display_name": "Python 3", "language": "python", "name": "python3" }, @@ -234,7 +252,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.9" + "version": "3.9.2" } }, "nbformat": 4,