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 d8a5ea6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
3 changes: 3 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,9 @@
'Miscellaneous'),
]

def setup(app):
app.add_javascript('https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js')

import mock

for mod_name in ('plotly', 'plotly.graph_objs', 'tables'):
Expand Down
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 d8a5ea6

Please sign in to comment.