Compare commits
13 Commits
bb5267453e
...
9e3d2f6ed0
Author | SHA1 | Date |
---|---|---|
Roger Labbe | 9e3d2f6ed0 | |
Roger Labbe | babbc1e37e | |
Roger Labbe | 11d9fce905 | |
Roger Labbe | a7b2eacdd3 | |
Roger Labbe | cd962f3091 | |
Roger Labbe | 2258eacd92 | |
Roger Labbe | c9a415fe1e | |
Roger Labbe | e6804733ee | |
Roger Labbe | a288f6e0f3 | |
Roger Labbe | f968e9c2bb | |
Erik Hedberg | fc57376719 | |
jdavidberger | 16e59292fd | |
Dmitry Frolov | 397d60423e |
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
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
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
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
|
@ -12,7 +12,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",
|
||||
|
@ -32,7 +32,6 @@
|
|||
],
|
||||
"source": [
|
||||
"#format the book\n",
|
||||
"from __future__ import division, print_function\n",
|
||||
"%matplotlib inline\n",
|
||||
"import sys\n",
|
||||
"sys.path.insert(0, '..')\n",
|
||||
|
@ -94,22 +93,12 @@
|
|||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 2,
|
||||
"metadata": {
|
||||
"scrolled": true
|
||||
},
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stderr",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"C:\\Anaconda3\\lib\\site-packages\\IPython\\html.py:14: ShimWarning: The `IPython.html` package has been deprecated since IPython 4.0. You should import from `notebook` instead. `IPython.html.widgets` has moved to `ipywidgets`.\n",
|
||||
" \"`IPython.html.widgets` has moved to `ipywidgets`.\", ShimWarning)\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"application/vnd.jupyter.widget-view+json": {
|
||||
"model_id": "609e5b01d9564d6b8c6e025cab5df9cb",
|
||||
"model_id": "034e065d0c5e49b0b8f6f0407b4b4200",
|
||||
"version_major": 2,
|
||||
"version_minor": 0
|
||||
},
|
||||
|
@ -123,8 +112,8 @@
|
|||
],
|
||||
"source": [
|
||||
"%matplotlib inline\n",
|
||||
"from IPython.html.widgets import interact, interactive, fixed\n",
|
||||
"import IPython.html.widgets as widgets\n",
|
||||
"from ipywidgets import interact, interactive, fixed\n",
|
||||
"import ipywidgets as widgets\n",
|
||||
"import numpy as np\n",
|
||||
"import numpy.linalg as linalg\n",
|
||||
"import math\n",
|
||||
|
@ -160,6 +149,7 @@
|
|||
" plt.title(str(F))\n",
|
||||
" plt.xlabel('position')\n",
|
||||
" plt.ylabel('velocity')\n",
|
||||
" plt.show()\n",
|
||||
" \n",
|
||||
"interact(plot_FPFT, \n",
|
||||
" F00=widgets.IntSlider(value=1, min=0, max=2.), \n",
|
||||
|
@ -183,12 +173,14 @@
|
|||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"metadata": {},
|
||||
"metadata": {
|
||||
"scrolled": true
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"application/vnd.jupyter.widget-view+json": {
|
||||
"model_id": "94a56f8ac01144e0b32bbb39a353e40a",
|
||||
"model_id": "9c0bee6040b745dbadaafbd03de426ed",
|
||||
"version_major": 2,
|
||||
"version_minor": 0
|
||||
},
|
||||
|
@ -202,8 +194,8 @@
|
|||
],
|
||||
"source": [
|
||||
"%matplotlib inline\n",
|
||||
"from IPython.html.widgets import interact, interactive, fixed\n",
|
||||
"from IPython.html.widgets import FloatSlider\n",
|
||||
"from ipywidgets import interact, interactive, fixed\n",
|
||||
"from ipywidgets import FloatSlider\n",
|
||||
"from math import cos, sin, pi, atan2, sqrt\n",
|
||||
"import numpy.linalg as linalg\n",
|
||||
"import matplotlib.pyplot as plt\n",
|
||||
|
@ -255,7 +247,7 @@
|
|||
{
|
||||
"data": {
|
||||
"application/vnd.jupyter.widget-view+json": {
|
||||
"model_id": "690c1af2d34845dd837f33de97469854",
|
||||
"model_id": "aee1320d4a0f431e8dd022e05a14f280",
|
||||
"version_major": 2,
|
||||
"version_minor": 0
|
||||
},
|
||||
|
@ -269,8 +261,8 @@
|
|||
],
|
||||
"source": [
|
||||
"%matplotlib inline\n",
|
||||
"from IPython.html.widgets import interact, interactive, fixed\n",
|
||||
"import IPython.html.widgets as widgets\n",
|
||||
"from ipywidgets import interact, interactive, fixed\n",
|
||||
"import ipywidgets as widgets\n",
|
||||
"import matplotlib.pyplot as plt\n",
|
||||
"import numpy as np\n",
|
||||
"import numpy.random as random\n",
|
||||
|
@ -313,7 +305,7 @@
|
|||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3",
|
||||
"display_name": "Python 3 (ipykernel)",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
|
@ -327,9 +319,9 @@
|
|||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.7.1"
|
||||
"version": "3.9.7"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 1
|
||||
"nbformat_minor": 4
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue