upd. watermark download link

This commit is contained in:
rasbt 2015-06-29 15:35:39 -04:00
parent 06830b9393
commit b13d26a7ef

View File

@ -1,12 +1,4 @@
{ {
"metadata": {
"name": "",
"signature": "sha256:968e6f47972d4ab9e2ef4eef6906343257267ccf094fcae08da24fec3647743d"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [ "cells": [
{ {
"cell_type": "markdown", "cell_type": "markdown",
@ -31,11 +23,10 @@
] ]
}, },
{ {
"cell_type": "heading", "cell_type": "markdown",
"level": 1,
"metadata": {}, "metadata": {},
"source": [ "source": [
"IPython magic function documentation - `%watermark`" "# IPython magic function documentation - `%watermark`"
] ]
}, },
{ {
@ -54,11 +45,10 @@
] ]
}, },
{ {
"cell_type": "heading", "cell_type": "markdown",
"level": 2,
"metadata": {}, "metadata": {},
"source": [ "source": [
"Installation" "## Installation"
] ]
}, },
{ {
@ -70,23 +60,23 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"collapsed": false, "execution_count": 1,
"input": [ "metadata": {
"%install_ext https://raw.githubusercontent.com/rasbt/python_reference/master/ipython_magic/watermark.py" "collapsed": false
], },
"language": "python",
"metadata": {},
"outputs": [ "outputs": [
{ {
"name": "stdout",
"output_type": "stream", "output_type": "stream",
"stream": "stdout",
"text": [ "text": [
"Installed watermark.py. To use it, type:\n", "Installed watermark.py. To use it, type:\n",
" %load_ext watermark\n" " %load_ext watermark\n"
] ]
} }
], ],
"prompt_number": 1 "source": [
"install_ext https://raw.githubusercontent.com/rasbt/watermark/master/watermark.py"
]
}, },
{ {
"cell_type": "markdown", "cell_type": "markdown",
@ -97,11 +87,10 @@
] ]
}, },
{ {
"cell_type": "heading", "cell_type": "markdown",
"level": 2,
"metadata": {}, "metadata": {},
"source": [ "source": [
"Loading the `%watermark` magic" "## Loading the `%watermark` magic"
] ]
}, },
{ {
@ -113,14 +102,14 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"collapsed": false, "execution_count": 2,
"input": [ "metadata": {
"%load_ext watermark" "collapsed": false
], },
"language": "python",
"metadata": {},
"outputs": [], "outputs": [],
"prompt_number": 2 "source": [
"%load_ext watermark"
]
}, },
{ {
"cell_type": "markdown", "cell_type": "markdown",
@ -131,11 +120,10 @@
] ]
}, },
{ {
"cell_type": "heading", "cell_type": "markdown",
"level": 2,
"metadata": {}, "metadata": {},
"source": [ "source": [
"Usage" "## Usage"
] ]
}, },
{ {
@ -147,32 +135,33 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"collapsed": false, "execution_count": 12,
"input": [ "metadata": {
"%watermark?" "collapsed": false
], },
"language": "python",
"metadata": {},
"outputs": [], "outputs": [],
"prompt_number": 3 "source": [
"%watermark?"
]
}, },
{ {
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"<pre> %watermark [-a AUTHOR] [-d] [-n] [-t] [-z] [-u] [-c CUSTOM_TIME] [-v]\n", "<pre> %watermark [-a AUTHOR] [-d] [-e] [-n] [-t] [-z] [-u] [-c CUSTOM_TIME]\n",
" [-p PACKAGES] [-h] [-m] [-g]\n", " [-v] [-p PACKAGES] [-h] [-m] [-g] [-w]\n",
"\n", "\n",
" \n", " \n",
"IPython magic function to print date/time stamps \n", "IPython magic function to print date/time stamps \n",
"and various system information.\n", "and various system information.\n",
"\n", "\n",
"watermark version 1.1.0\n", "watermark version 1.2.1\n",
"\n", "\n",
"optional arguments:\n", "optional arguments:\n",
" -a AUTHOR, --author AUTHOR\n", " -a AUTHOR, --author AUTHOR\n",
" prints author name\n", " prints author name\n",
" -d, --date prints current date\n", " -d, --date prints current date as MM/DD/YYYY\n",
" -e, --eurodate prints current date as DD/MM/YYYY\n",
" -n, --datename prints date with abbrv. day and month names\n", " -n, --datename prints date with abbrv. day and month names\n",
" -t, --time prints current time\n", " -t, --time prints current time\n",
" -z, --timezone appends the local time zone\n", " -z, --timezone appends the local time zone\n",
@ -186,6 +175,8 @@
" -h, --hostname prints the host name\n", " -h, --hostname prints the host name\n",
" -m, --machine prints system and machine info\n", " -m, --machine prints system and machine info\n",
" -g, --githash prints current Git commit hash\n", " -g, --githash prints current Git commit hash\n",
" -w, --watermark prints the current version of watermark\n",
"File: ~/.ipython/extensions/watermark.py\n",
"</pre>" "</pre>"
] ]
}, },
@ -198,42 +189,41 @@
] ]
}, },
{ {
"cell_type": "heading", "cell_type": "markdown",
"level": 2,
"metadata": {}, "metadata": {},
"source": [ "source": [
"Examples" "## Examples"
] ]
}, },
{ {
"cell_type": "code", "cell_type": "code",
"collapsed": false, "execution_count": 4,
"input": [ "metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"06/29/2015 15:34:42\n",
"\n",
"CPython 3.4.3\n",
"IPython 3.2.0\n",
"\n",
"compiler : GCC 4.2.1 (Apple Inc. build 5577)\n",
"system : Darwin\n",
"release : 14.3.0\n",
"machine : x86_64\n",
"processor : i386\n",
"CPU cores : 4\n",
"interpreter: 64bit\n"
]
}
],
"source": [
"%watermark" "%watermark"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"29/06/2014 01:19:10\n",
"\n",
"CPython 3.4.1\n",
"IPython 2.1.0\n",
"\n",
"compiler : GCC 4.2.1 (Apple Inc. build 5577)\n",
"system : Darwin\n",
"release : 13.2.0\n",
"machine : x86_64\n",
"processor : i386\n",
"CPU cores : 2\n",
"interpreter: 64bit\n"
] ]
}
],
"prompt_number": 3
}, },
{ {
"cell_type": "markdown", "cell_type": "markdown",
@ -244,22 +234,22 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"collapsed": false, "execution_count": 5,
"input": [ "metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"06/29/2015 15:34:43 \n"
]
}
],
"source": [
"%watermark -d -t" "%watermark -d -t"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"29/06/2014 01:19:11 \n"
] ]
}
],
"prompt_number": 4
}, },
{ {
"cell_type": "markdown", "cell_type": "markdown",
@ -270,22 +260,22 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"collapsed": false, "execution_count": 6,
"input": [ "metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Last updated: Mon Jun 29 2015 15:34:44 EDT\n"
]
}
],
"source": [
"%watermark -u -n -t -z" "%watermark -u -n -t -z"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Last updated: Sun Jun 19 2014 01:19:12 EDT\n"
] ]
}
],
"prompt_number": 5
}, },
{ {
"cell_type": "markdown", "cell_type": "markdown",
@ -296,23 +286,23 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"collapsed": false, "execution_count": 7,
"input": [ "metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"CPython 3.4.3\n",
"IPython 3.2.0\n"
]
}
],
"source": [
"%watermark -v" "%watermark -v"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"CPython 3.4.1\n",
"IPython 2.1.0\n"
] ]
}
],
"prompt_number": 6
}, },
{ {
"cell_type": "markdown", "cell_type": "markdown",
@ -323,28 +313,28 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"collapsed": false, "execution_count": 8,
"input": [ "metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"compiler : GCC 4.2.1 (Apple Inc. build 5577)\n",
"system : Darwin\n",
"release : 14.3.0\n",
"machine : x86_64\n",
"processor : i386\n",
"CPU cores : 4\n",
"interpreter: 64bit\n"
]
}
],
"source": [
"%watermark -m" "%watermark -m"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"compiler : GCC 4.2.1 (Apple Inc. build 5577)\n",
"system : Darwin\n",
"release : 13.2.0\n",
"machine : x86_64\n",
"processor : i386\n",
"CPU cores : 2\n",
"interpreter: 64bit\n"
] ]
}
],
"prompt_number": 7
}, },
{ {
"cell_type": "markdown", "cell_type": "markdown",
@ -355,34 +345,34 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"collapsed": false, "execution_count": 9,
"input": [ "metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"CPython 3.4.3\n",
"IPython 3.2.0\n",
"\n",
"numpy 1.9.2\n",
"scipy 0.15.1\n",
"\n",
"compiler : GCC 4.2.1 (Apple Inc. build 5577)\n",
"system : Darwin\n",
"release : 14.3.0\n",
"machine : x86_64\n",
"processor : i386\n",
"CPU cores : 4\n",
"interpreter: 64bit\n"
]
}
],
"source": [
"%watermark -v -m -p numpy,scipy" "%watermark -v -m -p numpy,scipy"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"CPython 3.4.1\n",
"IPython 2.1.0\n",
"\n",
"numpy 1.8.1\n",
"scipy 0.14.0\n",
"\n",
"compiler : GCC 4.2.1 (Apple Inc. build 5577)\n",
"system : Darwin\n",
"release : 13.2.0\n",
"machine : x86_64\n",
"processor : i386\n",
"CPU cores : 2\n",
"interpreter: 64bit\n"
] ]
}
],
"prompt_number": 8
}, },
{ {
"cell_type": "markdown", "cell_type": "markdown",
@ -393,34 +383,34 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"collapsed": false, "execution_count": 10,
"input": [ "metadata": {
"%watermark -a \"John Doe\" -d -v -m -g" "collapsed": false
], },
"language": "python",
"metadata": {},
"outputs": [ "outputs": [
{ {
"name": "stdout",
"output_type": "stream", "output_type": "stream",
"stream": "stdout",
"text": [ "text": [
"John Doe 29/06/2014 01:20:48 EDT\n", "John Doe 06/29/2015 \n",
"\n", "\n",
"CPython 3.4.1\n", "CPython 3.4.3\n",
"IPython 2.1.0\n", "IPython 3.2.0\n",
"\n", "\n",
"compiler : GCC 4.2.1 (Apple Inc. build 5577)\n", "compiler : GCC 4.2.1 (Apple Inc. build 5577)\n",
"system : Darwin\n", "system : Darwin\n",
"release : 13.2.0\n", "release : 14.3.0\n",
"machine : x86_64\n", "machine : x86_64\n",
"processor : i386\n", "processor : i386\n",
"CPU cores : 2\n", "CPU cores : 4\n",
"interpreter: 64bit\n", "interpreter: 64bit\n",
"Git hash : fbe7759fd7e0298bf0bd05ea4aac01b87aa8ed25\n" "Git hash : 06830b939358f35f2daf50af42509e603c93d9b4\n"
] ]
} }
], ],
"prompt_number": 16 "source": [
"%watermark -a \"John Doe\" -d -v -m -g"
]
}, },
{ {
"cell_type": "markdown", "cell_type": "markdown",
@ -428,9 +418,36 @@
"source": [ "source": [
"<br>" "<br>"
] ]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
} }
], ],
"metadata": {} "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.4.3"
} }
] },
"nbformat": 4,
"nbformat_minor": 0
} }