{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# IPython extension version_information"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Use the '%version_information' IPython magic extension in a notebook to display information about which versions of dependency package that was used to run the notebook."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Installation"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Install the `version_information` package using pip:\n",
" \n",
" pip install version_information\n",
"\n",
"or, alternatively, use the `%install_ext` IPython command (deprecated):\n",
"\n",
" %install_ext http://raw.github.com/jrjohansson/version_information/master/version_information.py"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Use"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"%load_ext version_information"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"application/json": {
"Software versions": [
{
"module": "Python",
"version": "2.7.10 64bit [GCC 4.2.1 (Apple Inc. build 5577)]"
},
{
"module": "IPython",
"version": "3.2.0"
},
{
"module": "OS",
"version": "Darwin 14.1.0 x86_64 i386 64bit"
}
]
},
"text/html": [
"
Software | Version |
---|
Python | 2.7.10 64bit [GCC 4.2.1 (Apple Inc. build 5577)] |
IPython | 3.2.0 |
OS | Darwin 14.1.0 x86_64 i386 64bit |
Tue Jul 21 23:39:04 2015 JST |
"
],
"text/latex": [
"\\begin{tabular}{|l|l|}\\hline\n",
"{\\bf Software} & {\\bf Version} \\\\ \\hline\\hline\n",
"Python & 2.7.10 64bit [GCC 4.2.1 (Apple Inc. build 5577)] \\\\ \\hline\n",
"IPython & 3.2.0 \\\\ \\hline\n",
"OS & Darwin 14.1.0 x86\\_64 i386 64bit \\\\ \\hline\n",
"\\hline \\multicolumn{2}{|l|}{Tue Jul 21 23:39:04 2015 JST} \\\\ \\hline\n",
"\\end{tabular}\n"
],
"text/plain": [
"Software versions\n",
"Python 2.7.10 64bit [GCC 4.2.1 (Apple Inc. build 5577)]\n",
"IPython 3.2.0\n",
"OS Darwin 14.1.0 x86_64 i386 64bit\n",
"Tue Jul 21 23:39:04 2015 JST"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%version_information"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"application/json": {
"Software versions": [
{
"module": "Python",
"version": "2.7.10 64bit [GCC 4.2.1 (Apple Inc. build 5577)]"
},
{
"module": "IPython",
"version": "3.2.0"
},
{
"module": "OS",
"version": "Darwin 14.1.0 x86_64 i386 64bit"
},
{
"module": "scipy",
"version": "0.15.1"
},
{
"module": "numpy",
"version": "1.9.2"
},
{
"module": "Cython",
"version": "0.22.1"
},
{
"module": "matplotlib",
"version": "1.4.3"
},
{
"module": "qutip",
"version": "3.1.0"
},
{
"module": "version_information",
"version": "1.0.3"
}
]
},
"text/html": [
"Software | Version |
---|
Python | 2.7.10 64bit [GCC 4.2.1 (Apple Inc. build 5577)] |
IPython | 3.2.0 |
OS | Darwin 14.1.0 x86_64 i386 64bit |
scipy | 0.15.1 |
numpy | 1.9.2 |
Cython | 0.22.1 |
matplotlib | 1.4.3 |
qutip | 3.1.0 |
version_information | 1.0.3 |
Tue Jul 21 23:39:06 2015 JST |
"
],
"text/latex": [
"\\begin{tabular}{|l|l|}\\hline\n",
"{\\bf Software} & {\\bf Version} \\\\ \\hline\\hline\n",
"Python & 2.7.10 64bit [GCC 4.2.1 (Apple Inc. build 5577)] \\\\ \\hline\n",
"IPython & 3.2.0 \\\\ \\hline\n",
"OS & Darwin 14.1.0 x86\\_64 i386 64bit \\\\ \\hline\n",
"scipy & 0.15.1 \\\\ \\hline\n",
"numpy & 1.9.2 \\\\ \\hline\n",
"Cython & 0.22.1 \\\\ \\hline\n",
"matplotlib & 1.4.3 \\\\ \\hline\n",
"qutip & 3.1.0 \\\\ \\hline\n",
"version_information & 1.0.3 \\\\ \\hline\n",
"\\hline \\multicolumn{2}{|l|}{Tue Jul 21 23:39:06 2015 JST} \\\\ \\hline\n",
"\\end{tabular}\n"
],
"text/plain": [
"Software versions\n",
"Python 2.7.10 64bit [GCC 4.2.1 (Apple Inc. build 5577)]\n",
"IPython 3.2.0\n",
"OS Darwin 14.1.0 x86_64 i386 64bit\n",
"scipy 0.15.1\n",
"numpy 1.9.2\n",
"Cython 0.22.1\n",
"matplotlib 1.4.3\n",
"qutip 3.1.0\n",
"version_information 1.0.3\n",
"Tue Jul 21 23:39:06 2015 JST"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%version_information scipy, numpy, Cython, matplotlib, qutip, version_information"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.10"
}
},
"nbformat": 4,
"nbformat_minor": 0
}