Skip to content

Commit

Permalink
sudoku example, add cell for pip install also add visualisation libra…
Browse files Browse the repository at this point in the history
…ries
  • Loading branch information
tias committed Oct 10, 2023
1 parent 0512c44 commit 25b8a79
Showing 1 changed file with 28 additions and 10 deletions.
38 changes: 28 additions & 10 deletions examples/quickstart_sudoku.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,34 @@
"\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`:"
]
},
{
"cell_type": "code",
"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",
Expand All @@ -37,7 +55,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -72,7 +90,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -95,7 +113,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -129,7 +147,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 6,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -165,7 +183,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 7,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -220,7 +238,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand All @@ -234,7 +252,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.9"
"version": "3.9.2"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 25b8a79

Please sign in to comment.