Added IPython magic for loading the contents of a file and for timing.

This commit is contained in:
Donne Martin 2015-04-12 18:30:00 -04:00
parent 3d4f19e594
commit ed0fe8c6aa

View File

@ -1,7 +1,7 @@
{
"metadata": {
"name": "",
"signature": "sha256:fe560fb7ec0203c6822ae09be96cbbe66d66fbbcad3885529aa6d4969a2e7074"
"signature": "sha256:c39bbf32494020a300d424ed24cb9891d891ab8e67fe4c3162296bad4385c933"
},
"nbformat": 3,
"nbformat_minor": 0,
@ -89,8 +89,12 @@
"# Start IPython Notebook with a profile\n",
"ipython notebook --profile=dark-bg\n",
"\n",
"# Load the contents of a file\n",
"%load dir/file.py\n",
"\n",
"# Time execution of a Python statement or expression\n",
"%timeit\n",
"%%time\n",
"\n",
"# Activate the interactive debugger\n",
"%debug\n",