Skip to content

Commit 1af3711

Browse files
committed
Adapting the basic tutorial for the use of osw.defaults
1 parent 83b7ce3 commit 1af3711

1 file changed

Lines changed: 15 additions & 11 deletions

File tree

‎docs/tutorials/basics.ipynb‎

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,25 @@
313313
],
314314
"id": "137e9b3144a4db96"
315315
},
316+
{
317+
"metadata": {},
318+
"cell_type": "code",
319+
"outputs": [],
320+
"execution_count": null,
321+
"source": [
322+
"# Define the wiki_domain for later reuse:\n",
323+
"wiki_domain = \"demo.open-semantic-lab.org\" # Replace with the domain of your OSL instance"
324+
],
325+
"id": "ad9ed6244dc16547"
326+
},
316327
{
317328
"metadata": {},
318329
"cell_type": "code",
319330
"source": [
331+
"# Set the default wiki domain for the osw package\n",
332+
"from osw.defaults import params as default_params\n",
333+
"default_params.wiki_domain = wiki_domain\n",
334+
"# Now this domain will be used to initialize osw.express\n",
320335
"from osw.express import OswExpress\n",
321336
"# Some modules that will be required several times\n",
322337
"import osw.params as prm\n",
@@ -328,17 +343,6 @@
328343
"outputs": [],
329344
"execution_count": null
330345
},
331-
{
332-
"metadata": {},
333-
"cell_type": "code",
334-
"outputs": [],
335-
"execution_count": null,
336-
"source": [
337-
"# Define the wiki_domain for later reuse:\n",
338-
"wiki_domain = \"demo.open-semantic-lab.org\" # Replace with the domain of your OSL instance"
339-
],
340-
"id": "7d0db4de67f448b9"
341-
},
342346
{
343347
"metadata": {},
344348
"cell_type": "markdown",

0 commit comments

Comments
 (0)