Updated for Python 3.6
This commit is contained in:
parent
3f468dd913
commit
91be73db4e
@ -20,7 +20,6 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from __future__ import division, print_function\n",
|
||||
"%matplotlib inline"
|
||||
]
|
||||
},
|
||||
@ -36,7 +35,7 @@
|
||||
" <style>\n",
|
||||
" .output_wrapper, .output {\n",
|
||||
" height:auto !important;\n",
|
||||
" max-height:100000px; \n",
|
||||
" max-height:100000px;\n",
|
||||
" }\n",
|
||||
" .output_scroll {\n",
|
||||
" box-shadow:none !important;\n",
|
||||
@ -159,7 +158,7 @@
|
||||
"xs = range(500)\n",
|
||||
"ys = randn(500)*1. + 10.\n",
|
||||
"plt.plot(xs, ys)\n",
|
||||
"print('Mean of readings is {:.3f}'.format(np.mean(ys)))"
|
||||
"print(f'Mean of readings is {np.mean(ys):.3f}')"
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -2133,7 +2132,7 @@
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.7.6"
|
||||
"version": "3.7.4"
|
||||
},
|
||||
"widgets": {
|
||||
"application/vnd.jupyter.widget-state+json": {
|
||||
|
Loading…
Reference in New Issue
Block a user