Skip to content

Commit ac7f8f3

Browse files
committed
Added optional section to install & run tutorial in online notebook service. Removed unusable start_tutorial.ipynb
1 parent e093f41 commit ac7f8f3

2 files changed

Lines changed: 17 additions & 100 deletions

File tree

‎docs/tutorials/basics.ipynb‎

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@
2222
"- [Querying data](#Querying-data)"
2323
]
2424
},
25+
{
26+
"metadata": {},
27+
"cell_type": "markdown",
28+
"source": [
29+
"## Optional: Install & run in online notebook\n",
30+
"In case you want to run this tutorial in a throw-away environment, you can use an online notebook service, e.g., \n",
31+
"Google Colab. "
32+
],
33+
"id": "3f70a55ea4a901c5"
34+
},
2535
{
2636
"cell_type": "markdown",
2737
"id": "64e0121de7a40c80",
@@ -209,7 +219,7 @@
209219
"\n",
210220
"## Installation\n",
211221
"\n",
212-
"In case you just want to try the package in a throw-away environment, refer to the [Tutorial: Start tutorial](./start_tutorial.ipynb) Jupyter notebook.\n",
222+
"In case you just want to try the package in a throw-away environment, refer to the section [Optional: Run in online notebook](#Optional-Run-in-online-notebook) Jupyter notebook.\n",
213223
"\n",
214224
"### Downloading the library (optional)\n",
215225
"The osw-python library is available as GitHub repository and can be downloaded as a ZIP file or via git:\n",
@@ -601,9 +611,8 @@
601611
]
602612
},
603613
{
604-
"cell_type": "code",
605-
"id": "64e0678b77f00772",
606614
"metadata": {},
615+
"cell_type": "code",
607616
"source": [
608617
"# Let's document all storing processes in a list\n",
609618
"stored = []\n",
@@ -620,13 +629,13 @@
620629
") # All default values included\n",
621630
"# osw_obj.store_entity(params)"
622631
],
632+
"id": "78ecbe8be2788f1d",
623633
"outputs": [],
624634
"execution_count": null
625635
},
626636
{
627-
"cell_type": "markdown",
628-
"id": "78f959815e0fe8f",
629637
"metadata": {},
638+
"cell_type": "markdown",
630639
"source": [
631640
"Like most methods and functions in the osw-python library, the `store_entity` takes only a single argument. Usually \n",
632641
"either a specific object type or a dedicated params object is accepted. If an object of type other than the params \n",
@@ -635,7 +644,8 @@
635644
"\n",
636645
"This ensures that the method signature is as simple as possible and at the same time allows full typing and validation \n",
637646
"of input parameters that the method is easy to use. "
638-
]
647+
],
648+
"id": "2e30dd888a08ca78"
639649
},
640650
{
641651
"cell_type": "markdown",
@@ -1280,7 +1290,7 @@
12801290
"# Test if john is in the list of persons\n",
12811291
"john.get_iri() in persons"
12821292
],
1283-
"id": "ea4ac48cd87af92a",
1293+
"id": "c47281593ceed2bf",
12841294
"outputs": [],
12851295
"execution_count": null
12861296
},

‎docs/tutorials/start_tutorial.ipynb‎

Lines changed: 0 additions & 93 deletions
This file was deleted.

0 commit comments

Comments
 (0)