Skip to content

Commit

Permalink
Fix tutorial on readthedocs
Browse files Browse the repository at this point in the history
  • Loading branch information
alubbock committed Nov 3, 2018
1 parent 6648cfb commit f19ca93
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions doc/tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Load a file"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"First, specify a file to load. This can be done as a string filename, but here we load an example dataset from the thunor package itself, but you can also another filename."
"## Check Thunor Core is available"
]
},
{
Expand All @@ -67,20 +60,34 @@
"metadata": {},
"outputs": [],
"source": [
"# If \"import thunor\" fails, you may need to uncomment the following two lines\n",
"# If the import doesn't work, uncomment the following two lines, or \"pip install thunor\"\n",
"# import os, sys\n",
"# sys.path.insert(0, os.path.abspath('../'))\n",
"\n",
"import thunor"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Load a file"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"First, specify a file to load. Here, we use an example dataset from the thunor package itself."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import pkg_resources\n",
"hts007_file = pkg_resources.resource_stream('thunor', 'testdata/hts007.h5')"
"hts007_file = '../thunor/testdata/hts007.h5'"
]
},
{
Expand Down

0 comments on commit f19ca93

Please sign in to comment.