mirror of
https://github.com/donnemartin/data-science-ipython-notebooks.git
synced 2024-03-22 13:30:56 +08:00
Added IPython magic for loading the contents of a file and for timing.
This commit is contained in:
parent
3d4f19e594
commit
ed0fe8c6aa
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue
Block a user