Skip to content

Updated notebooks to use relative paths #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions notebooks/01_Introducing_Python.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"\n",
"Matt Knepley and Aron Ahmadia\n",
"\n",
"[![Creative Commons License](./files/figures/creative_commons_logo.png)](http://creativecommons.org/licenses/by/3.0/deed.en_US) "
"[![Creative Commons License](../figures/creative_commons_logo.png)](http://creativecommons.org/licenses/by/3.0/deed.en_US) "
]
},
{
Expand Down Expand Up @@ -515,7 +515,7 @@
"and also includes motivating material from \n",
"[Nathan Collier](http://www.mendeley.com/profiles/nathan-collier/), KAUST.\n",
"\n",
"<a href=\"http://www.amazon.com/Hans-Petter-Langtangen/e/B001K6A0IA\"><img src=\"./files/figures/books.png\"/> </a>\n"
"<a href=\"http://www.amazon.com/Hans-Petter-Langtangen/e/B001K6A0IA\"><img src=\"../figures/books.png\"/> </a>\n"
]
},
{
Expand Down Expand Up @@ -598,7 +598,7 @@
"reproducible). However, beware that there is no end to the number\n",
"of different ways to do essentially the same thing. \n",
"\n",
"![Recall we want to script to SAVE time](./files/figures/careful.png)\n",
"![Recall we want to script to SAVE time](../figures/careful.png)\n",
"\n",
"> Image credit [Bruno Oliveira](https://plus.google.com/102451193315916178828/posts/MGxauXypb1Y)"
]
Expand Down Expand Up @@ -696,7 +696,7 @@
"\n",
"### Stiffness matrix computation\n",
"\n",
"![Stiffness matrix](./files/figures/fem.png)\n"
"![Stiffness matrix](../figures/fem.png)\n"
]
},
{
Expand All @@ -714,7 +714,7 @@
"\n",
"### Python parses a datafile and makes plots of current progress\n",
"\n",
"![Log](./files/figures/log.png)\n"
"![Log](../figures/log.png)\n"
]
},
{
Expand All @@ -732,7 +732,7 @@
"\n",
"### Nonlinear, time dependent problem\n",
"\n",
"![NonLinear problem](./files/figures/dsw.png)"
"![NonLinear problem](../figures/dsw.png)"
]
},
{
Expand All @@ -750,7 +750,7 @@
"\n",
"### Method for fitting surface to data\n",
"\n",
"![Prototypes](./files/figures/molt.png)\n"
"![Prototypes](../figures/molt.png)\n"
]
},
{
Expand All @@ -769,7 +769,7 @@
"\n",
"### Python manages floors and columns\n",
"\n",
"![Structural program](./files/figures/struct.png)"
"![Structural program](../figures/struct.png)"
]
},
{
Expand All @@ -787,7 +787,7 @@
"\n",
"### Python runs C code, post-processes the results, and generates a LaTeX table\n",
"\n",
"![Result Generation](./files/figures/dpg.png)\n"
"![Result Generation](../figures/dpg.png)\n"
]
},
{
Expand Down Expand Up @@ -867,8 +867,8 @@
"collapsed": false,
"input": [
"import math\n",
"infile = \"files/examples/data/numbers\"\n",
"outfile = \"files/examples/data/f_numbers\"\n",
"infile = \"../examples/data/numbers\"\n",
"outfile = \"../examples/data/f_numbers\"\n",
"\n",
"f = open(infile,'r')\n",
"g = open(outfile,'w')\n",
Expand Down Expand Up @@ -994,7 +994,7 @@
"import re\n",
"pattern1 = \"@Book{(.*),\"\n",
"pattern2 = \"\\s+title\\s+=\\s+{(.*)},\"\n",
"for line in file('files/examples/data/python.bib'):\n",
"for line in file('../examples/data/python.bib'):\n",
" match = re.search(pattern1,line)\n",
" if match: \n",
" print \"Found a book with the tag '%s'\" % match.group(1)\n",
Expand Down
4 changes: 2 additions & 2 deletions notebooks/02_Speeding_Python.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"\n",
"Matt Knepley and Aron Ahmadia\n",
"\n",
"[![Creative Commons License](./files/figures/creative_commons_logo.png)](http://creativecommons.org/licenses/by/3.0/deed.en_US) "
"[![Creative Commons License](../figures/creative_commons_logo.png)](http://creativecommons.org/licenses/by/3.0/deed.en_US) "
]
},
{
Expand Down Expand Up @@ -265,7 +265,7 @@
"* single data-type objects\n",
"* powerful array scalar types\n",
"\n",
"![three fundamental](./files/figures/numpy/threefundamental.png)\n",
"![three fundamental](../figures/numpy/threefundamental.png)\n",
"\n"
]
},
Expand Down
6 changes: 3 additions & 3 deletions notebooks/03.1_Distributed_Computing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"<center>\n",
"*[This tutorial](https://github.com/pyHPC/pyhpc-tutorial) has been collectively developed by the [PyHPC Community](https://github.com/pyHPC) and is available for reuse under a CC BY license. \n",
"All code samples are available for reuse under the terms of the [MIT license](http://opensource.org/licenses/MIT).* \n",
"[![Creative Commons License](/files/figures/creative_commons_logo.png)](http://creativecommons.org/licenses/by/3.0/deed.en_US)</center>"
"[![Creative Commons License](../figures/creative_commons_logo.png)](http://creativecommons.org/licenses/by/3.0/deed.en_US)</center>"
]
},
{
Expand Down Expand Up @@ -885,7 +885,7 @@
},
"source": [
"## Basic Collectives: Broadcast, Scatter, and Gather\n",
"![](/files/figures/broadcast_scatter_gather.png)\n"
"![](../figures/broadcast_scatter_gather.png)\n"
]
},
{
Expand Down Expand Up @@ -1071,7 +1071,7 @@
"source": [
"## Reduce and Scan\n",
"\n",
"![](/files/figures/reduce_scan.png)\n"
"![](../figures/reduce_scan.png)\n"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/03_Scaling_Python.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"\n",
"Matt Knepley and Aron Ahmadia\n",
"\n",
"[![Creative Commons License](./files/figures/creative_commons_logo.png)](http://creativecommons.org/licenses/by/3.0/deed.en_US) "
"[![Creative Commons License](../figures/creative_commons_logo.png)](http://creativecommons.org/licenses/by/3.0/deed.en_US) "
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions notebooks/Appendix_01_Resources.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
"Chief Technology Officer \n",
"RunMyCode.org\n",
"\n",
"[![Creative Commons License](/files/figures/creative_commons_logo.png)](http://creativecommons.org/licenses/by/3.0/deed.en_US) \n",
"[![Creative Commons License](../figures/creative_commons_logo.png)](http://creativecommons.org/licenses/by/3.0/deed.en_US) \n",
"\n",
"![KAUST Logo](/files/figures/kaust.png)"
"![KAUST Logo](../figures/kaust.png)"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions notebooks/Appendix_02_PETSc4Py.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
"Chief Technology Officer \n",
"RunMyCode.org\n",
"\n",
"[![Creative Commons License](/files/figures/creative_commons_logo.png)](http://creativecommons.org/licenses/by/3.0/deed.en_US) \n",
"[![Creative Commons License](../figures/creative_commons_logo.png)](http://creativecommons.org/licenses/by/3.0/deed.en_US) \n",
"\n",
"![KAUST Logo](/files/figures/kaust.png)"
"![KAUST Logo](../figures/kaust.png)"
]
},
{
Expand Down
1 change: 0 additions & 1 deletion notebooks/files

This file was deleted.