Add watermarks to all notebooks and fix images

This commit is contained in:
Tom Hodson 2022-07-18 11:50:25 +01:00
parent 03657e0883
commit de56741a51
12 changed files with 443 additions and 97 deletions

File diff suppressed because one or more lines are too long

View File

@ -155,13 +155,49 @@
"\n",
"<img style=\"max-width:700px;margin:auto;\" src = \"https://imgs.xkcd.com/comics/python_environment.png\" alt = \"An xkcd comic with a diagram of p values, saying that small ones are highly significant and giving humorous excuses for why larger ones are still intersting\">"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "c4752c3c-5550-4052-bcef-0683460cd010",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Author: Thomas Hodson\n",
"\n",
"Github username: T_Hodson\n",
"\n",
"Last updated: Mon Jul 18 2022\n",
"\n",
"Python implementation: CPython\n",
"Python version : 3.9.12\n",
"IPython version : 8.4.0\n",
"\n",
"Git hash: 03657e08835fdf23a808f59baa6c6a9ad684ee55\n",
"\n",
"Git repo: https://github.com/ImperialCollegeLondon/ReCoDE_MCMCFF.git\n",
"\n",
"Git branch: main\n",
"\n",
"Watermark: 2.3.1\n",
"\n"
]
}
],
"source": [
"%load_ext watermark\n",
"%watermark -n -u -v -iv -w -g -r -b -a \"Thomas Hodson\" -gu \"T_Hodson\""
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:jupyter3.9] *",
"display_name": "Python [conda env:recode]",
"language": "python",
"name": "conda-env-jupyter3.9-py"
"name": "conda-env-recode-py"
},
"language_info": {
"codemirror_mode": {
@ -173,7 +209,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
"version": "3.9.12"
}
},
"nbformat": 4,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -127,7 +127,7 @@
{
"data": {
"text/plain": [
"(<generator object my_range at 0x7fe3b2359660>, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9])"
"(<generator object my_range at 0x7fcaff25da50>, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9])"
]
},
"execution_count": 2,
@ -158,7 +158,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 3,
"id": "f73d6335-6514-45b1-9128-d72122d8b0b7",
"metadata": {},
"outputs": [
@ -166,9 +166,9 @@
"name": "stdout",
"output_type": "stream",
"text": [
"18.4 ms ± 364 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)\n",
"9.51 ms ± 309 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)\n",
"0x slowdown!\n"
"18.6 ms ± 645 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)\n",
"13.3 ms ± 1.74 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)\n",
"1x slowdown!\n"
]
}
],
@ -217,6 +217,46 @@
"\n",
"We take a factor of two slowdown but that doesn't seem so much to pay for the fact we can now sample the state at every single step rather than just the last."
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "b4e3c207-bc11-483a-aaf6-2daebb3194d8",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Author: Thomas Hodson\n",
"\n",
"Github username: T_Hodson\n",
"\n",
"Last updated: Mon Jul 18 2022\n",
"\n",
"Python implementation: CPython\n",
"Python version : 3.9.12\n",
"IPython version : 8.4.0\n",
"\n",
"Git hash: 03657e08835fdf23a808f59baa6c6a9ad684ee55\n",
"\n",
"Git repo: https://github.com/ImperialCollegeLondon/ReCoDE_MCMCFF.git\n",
"\n",
"Git branch: main\n",
"\n",
"json : 2.0.9\n",
"numpy : 1.21.5\n",
"matplotlib: 3.5.1\n",
"\n",
"Watermark: 2.3.1\n",
"\n"
]
}
],
"source": [
"%load_ext watermark\n",
"%watermark -n -u -v -iv -w -g -r -b -a \"Thomas Hodson\" -gu \"T_Hodson\""
]
}
],
"metadata": {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 KiB