Skip to content

Commit 403adbc

Browse files
committed
Draft of start_tutorial.ipynb - a notebook to start from zero
1 parent 0ae37ca commit 403adbc

File tree

1 file changed

+93
-0
lines changed

1 file changed

+93
-0
lines changed
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
{
2+
"cells": [
3+
{
4+
"metadata": {},
5+
"cell_type": "markdown",
6+
"source": [
7+
"# Tutorial: Start Tutorial\n",
8+
"\n",
9+
"This notebook will help you to setup everything you need to run [Tutorial: Basics](./basics_tutorial.ipynb).\n",
10+
"\n",
11+
"To start open this notebook in [Google Colab](https://colab.research.google.com/github/OpenSemanticLab/osw-python/blob/enh-tutorial/docs/tutorials/start_tutorial.ipynb) or a similar Jupyter\n",
12+
"web service and run the cells below."
13+
],
14+
"id": "3daf975fa49d95e1"
15+
},
16+
{
17+
"metadata": {},
18+
"cell_type": "code",
19+
"source": "# todo: google colab link and git clone commands need to be updated before merging the PR",
20+
"id": "8c9d009ae8472e18",
21+
"outputs": [],
22+
"execution_count": null
23+
},
24+
{
25+
"metadata": {},
26+
"cell_type": "code",
27+
"source": [
28+
"# Clone the repository and install the package with the tutorial dependencies\n",
29+
"!git clone https://github.com/OpenSemanticLab/osw-python.git\n",
30+
"%cd osw-python\n",
31+
"!git fetch origin\n",
32+
"!git checkout -b enh-tutorial origin/enh-tutorial\n",
33+
"!pip install -e .[tutorial]"
34+
],
35+
"id": "da4be67ad7e115c3",
36+
"outputs": [],
37+
"execution_count": null
38+
},
39+
{
40+
"metadata": {},
41+
"cell_type": "code",
42+
"source": [
43+
"# Print current working directory\n",
44+
"!pwd"
45+
],
46+
"id": "f6beb7a048fed691",
47+
"outputs": [],
48+
"execution_count": null
49+
},
50+
{
51+
"metadata": {},
52+
"cell_type": "code",
53+
"source": [
54+
"# (Might not be required:) Make sure you are in osw-python/docs/tutorials directory\n",
55+
"%cd osw-python/docs/tutorials\n",
56+
"!pwd"
57+
],
58+
"id": "3397cbdfd4b47653",
59+
"outputs": [],
60+
"execution_count": null
61+
},
62+
{
63+
"metadata": {},
64+
"cell_type": "markdown",
65+
"source": [
66+
"## Open the tutorial\n",
67+
"[Tutorial: Basics](./basics.ipynb)"
68+
],
69+
"id": "c8e2f6168ee0e08"
70+
}
71+
],
72+
"metadata": {
73+
"kernelspec": {
74+
"display_name": "Python 3",
75+
"language": "python",
76+
"name": "python3"
77+
},
78+
"language_info": {
79+
"codemirror_mode": {
80+
"name": "ipython",
81+
"version": 2
82+
},
83+
"file_extension": ".py",
84+
"mimetype": "text/x-python",
85+
"name": "python",
86+
"nbconvert_exporter": "python",
87+
"pygments_lexer": "ipython2",
88+
"version": "2.7.6"
89+
}
90+
},
91+
"nbformat": 4,
92+
"nbformat_minor": 5
93+
}

0 commit comments

Comments
 (0)