mirror of
https://github.com/donnemartin/data-science-ipython-notebooks.git
synced 2024-03-22 13:30:56 +08:00
Added IPython Notebook commands.
This commit is contained in:
parent
8256531f24
commit
09b45a01fa
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"metadata": {
|
||||
"name": "",
|
||||
"signature": "sha256:228c15dc58e640c2fa954f5b43981c8cc8538f70b7a16e96adf81cbda15c8bbe"
|
||||
"signature": "sha256:37392d2ae0cc121d5de5f1190ec72c2b98965d8ec06d6545c184b34c5463ef4e"
|
||||
},
|
||||
"nbformat": 3,
|
||||
"nbformat_minor": 0,
|
||||
|
@ -15,6 +15,7 @@
|
|||
"# Misc Commands\n",
|
||||
"\n",
|
||||
"* Anaconda\n",
|
||||
"* IPython Notebook\n",
|
||||
"* Git\n",
|
||||
"* Ruby\n",
|
||||
"* Jekyll\n"
|
||||
|
@ -55,6 +56,67 @@
|
|||
"metadata": {},
|
||||
"outputs": []
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"## IPython Notebook\n",
|
||||
"\n",
|
||||
"[IPython Notebook](http://ipython.org/notebook.html) is a \"web-based interactive computational environment where you can combine code execution, text, mathematics, plots and rich media into a single document.\""
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"collapsed": false,
|
||||
"input": [
|
||||
"# Start IPython Notebook\n",
|
||||
"ipython notebook\n",
|
||||
"\n",
|
||||
"# Start IPython Notebook with built-in mode to work cleanly \n",
|
||||
"# with matplotlib figures\n",
|
||||
"ipython notebook --pylab inline\n",
|
||||
"\n",
|
||||
"# Start IPython Notebook with a profile\n",
|
||||
"ipython notebook --profile=dark-bg\n",
|
||||
"\n",
|
||||
"# Time execution of a Python statement or expression\n",
|
||||
"%timeit\n",
|
||||
"\n",
|
||||
"# Activate the interactive debugger\n",
|
||||
"%debug\n",
|
||||
"\n",
|
||||
"# Write the contents of the cell to a file\n",
|
||||
"%writefile\n",
|
||||
"\n",
|
||||
"# Run a cell via a shell command\n",
|
||||
"%%script\n",
|
||||
"\n",
|
||||
"# Run cells with bash in a subprocess\n",
|
||||
"# This is a shortcut for %%script bash\n",
|
||||
"%%bash\n",
|
||||
"\n",
|
||||
"# Run cells with python2 in a subprocess\n",
|
||||
"%%python2\n",
|
||||
"\n",
|
||||
"# Run cells with python3 in a subprocess\n",
|
||||
"%%python3"
|
||||
],
|
||||
"language": "python",
|
||||
"metadata": {},
|
||||
"outputs": []
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"| Command | Description |\n",
|
||||
"|-----------|------------------------------------------|\n",
|
||||
"| ? | Intro and overview of IPython's features |\n",
|
||||
"| %quickref | Quick reference |\n",
|
||||
"| help | Python help |\n",
|
||||
"| object? | Object details, also use object?? |"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
|
|
Loading…
Reference in New Issue
Block a user