Skip to content

Commit

Permalink
Add manual import of SLOTH to new example .ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
niklaswr committed Aug 31, 2023
1 parent 67bdf84 commit 8655ce6
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions examples/ex_intersection_calculations.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,22 @@
"metadata": {},
"source": [
"Before starting it is important to import the needed libraries. <br>\n",
"Make sure to make geopandas and SLOTH available to import in python"
"Make sure to make geopandas and SLOTH available to import in python. If you already have added SLOTH to your PYHTONPATH, below step is not needed."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "07f5f644-cf9b-4596-a272-75f3a4531917",
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"import sys\n",
"\n",
"cwd = os.getcwd()\n",
"sloth_path = f\"{cwd}/../\"\n",
"sys.path.append(sloth_path)"
]
},
{
Expand Down Expand Up @@ -1462,7 +1477,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "python3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -1476,7 +1491,14 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.4"
"version": "3.9.6"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
"state": {},
"version_major": 2,
"version_minor": 0
}
}
},
"nbformat": 4,
Expand Down

0 comments on commit 8655ce6

Please sign in to comment.