Skip to content

Instantly share code, notes, and snippets.

@mleyvaz
Created May 6, 2018 15:20
Show Gist options
  • Save mleyvaz/3fc16222f1d3395ef171ab6e29c1b6a6 to your computer and use it in GitHub Desktop.
Save mleyvaz/3fc16222f1d3395ef171ab6e29c1b6a6 to your computer and use it in GitHub Desktop.
Ejemplo de dashboard i
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"from math import sin, pi\n",
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"\n",
"t = np.arange(0.0, 2.0, 0.01)\n",
"from ipywidgets import interact \n",
"@interact(x=(0, 10))\n",
"def square(x):\n",
" plt.plot(t,np.sin(2*np.pi*t*x))\n",
" plt.show()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.0"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment