{ "metadata": { "name": "", "signature": "sha256:2818e5ee34dea22c349fc911008245108146c77793b47601d2783187af7d226f" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Run A Python Script Inside IPython\n", "\n", "- **Author:** [Chris Albon](http://www.chrisalbon.com/), [@ChrisAlbon](https://twitter.com/chrisalbon)\n", "- **Date:** -\n", "- **Repo:** [Python 3 code snippets for data science](https://github.com/chrisalbon/code_py)\n", "- **Note:**" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Run the script" ] }, { "cell_type": "code", "collapsed": false, "input": [ "# Run a the script at the following filepath\n", "%run cra/cra_projects/code_py/old_snippits/arithmatic.py" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "15\n", "-3\n", "54\n", "6\n", "0.6666666666666666\n", "0\n", "10077696\n", "2.5\n", "0.6\n", "0\n" ] } ], "prompt_number": 10 } ], "metadata": {} } ] }