{ "cells": [ { "cell_type": "raw", "metadata": {}, "source": [ "Lets create a title" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "And write some text...\n", "\n", "Maybe use some markdown:\n", " \n", "* for various reasons,\n", "* such as bullet points" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Let's embedd a picture:" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "!ls" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "![title](ska_logo_rgb_med.jpg)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "LaTeX!\n", "\n", "${\\alpha \\beta \\gamma}^2$" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "print(\"hello world!\")" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [ "import numpy as np" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [ "x = np.arange(0.,10.,0.1)" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [ "y = 2.0*np.sin(1.5*x)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "%matplotlib inline\n", "import matplotlib.pyplot as plt\n", "plt.plot(x,y)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from IPython.html.widgets import interact" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [ "def plot_scaled_sin(a,c):\n", " plt.plot(x,y)\n", " \n", " y_interact = c*np.sin(a*x)\n", " plt.plot(x,y_interact)\n", " plt.show()" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "interact(plot_scaled_sin, a=(0.,3.,0.1), c=(0.5,10.,0.5));" ] }, { "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.1" } }, "nbformat": 4, "nbformat_minor": 1 }