Created
June 18, 2014 01:04
-
-
Save ivanov/c4ba28d6c835ccfe7649 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ | |
"metadata": {}, | |
"cell_type": "code", | |
"input": "#pdb on", | |
"prompt_number": 2, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"text": "Automatic pdb calling has been turned ON\n", | |
"stream": "stdout" | |
} | |
], | |
"language": "python", | |
"trusted": true, | |
"collapsed": false | |
}, | |
{ | |
"metadata": {}, | |
"cell_type": "code", | |
"input": "from IPython.html import widgets\nfrom IPython.display import display", | |
"prompt_number": 3, | |
"outputs": [], | |
"language": "python", | |
"trusted": true, | |
"collapsed": false | |
}, | |
{ | |
"metadata": {}, | |
"cell_type": "code", | |
"input": "mytextwidget = widgets.TextWidget()\nmytextwidget.placeholder = \"type something here\"\ndisplay(mytextwidget)", | |
"prompt_number": 4, | |
"outputs": [], | |
"language": "python", | |
"trusted": true, | |
"collapsed": false | |
}, | |
{ | |
"metadata": {}, | |
"cell_type": "code", | |
"input": "b = widgets.ButtonWidget()\ndisplay(b)\nb.description = \"hey there\"", | |
"prompt_number": 10, | |
"outputs": [], | |
"language": "python", | |
"trusted": true, | |
"collapsed": false | |
}, | |
{ | |
"metadata": {}, | |
"cell_type": "code", | |
"input": "print \"Helool\"", | |
"prompt_number": 5, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"text": "Helool\n", | |
"stream": "stdout" | |
} | |
], | |
"language": "python", | |
"trusted": true, | |
"collapsed": false | |
}, | |
{ | |
"metadata": {}, | |
"cell_type": "code", | |
"input": "1/0", | |
"prompt_number": 13, | |
"outputs": [ | |
{ | |
"output_type": "pyerr", | |
"ename": "ZeroDivisionError", | |
"evalue": "integer division or modulo by zero", | |
"traceback": [ | |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[0;31mZeroDivisionError\u001b[0m Traceback (most recent call last)", | |
"\u001b[0;32m<ipython-input-13-05c9758a9c21>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0;36m1\u001b[0m\u001b[0;34m/\u001b[0m\u001b[0;36m0\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", | |
"\u001b[0;31mZeroDivisionError\u001b[0m: integer division or modulo by zero" | |
] | |
}, | |
{ | |
"output_type": "stream", | |
"text": "> \u001b[0;32m<ipython-input-13-05c9758a9c21>\u001b[0m(1)\u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1 \u001b[0;31m\u001b[0;36m1\u001b[0m\u001b[0;34m/\u001b[0m\u001b[0;36m0\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\n", | |
"stream": "stdout" | |
}, | |
{ | |
"output_type": "stream", | |
"text": "\nKeyboardInterrupt\n", | |
"stream": "stdout" | |
} | |
], | |
"language": "python", | |
"trusted": true, | |
"collapsed": false | |
}, | |
{ | |
"metadata": {}, | |
"cell_type": "code", | |
"input": "", | |
"outputs": [], | |
"language": "python", | |
"trusted": true, | |
"collapsed": false | |
}, | |
{ | |
"metadata": {}, | |
"cell_type": "code", | |
"input": "", | |
"outputs": [], | |
"language": "python", | |
"trusted": true, | |
"collapsed": false | |
}, | |
{ | |
"metadata": {}, | |
"cell_type": "code", | |
"input": "", | |
"outputs": [], | |
"language": "python", | |
"trusted": true, | |
"collapsed": false | |
}, | |
{ | |
"metadata": {}, | |
"cell_type": "code", | |
"input": "mytextareawidget = widgets.TextareaWidget()\nmytextareawidget.placeholder = \"your text here\"\ndisplay(mytextareawidget)\n\n1/0", | |
"outputs": [ | |
{ | |
"output_type": "pyerr", | |
"ename": "ZeroDivisionError", | |
"evalue": "integer division or modulo by zero", | |
"traceback": [ | |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[0;31mZeroDivisionError\u001b[0m Traceback (most recent call last)", | |
"\u001b[0;32m<ipython-input-15-8eece5a19484>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 3\u001b[0m \u001b[0mdisplay\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mmytextareawidget\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 4\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 5\u001b[0;31m \u001b[0;36m1\u001b[0m\u001b[0;34m/\u001b[0m\u001b[0;36m0\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", | |
"\u001b[0;31mZeroDivisionError\u001b[0m: integer division or modulo by zero" | |
] | |
}, | |
{ | |
"output_type": "stream", | |
"text": "> \u001b[0;32m<ipython-input-15-8eece5a19484>\u001b[0m(5)\u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[0;32m 3 \u001b[0;31m\u001b[0mdisplay\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mmytextareawidget\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 4 \u001b[0;31m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m----> 5 \u001b[0;31m\u001b[0;36m1\u001b[0m\u001b[0;34m/\u001b[0m\u001b[0;36m0\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\n", | |
"stream": "stdout" | |
}, | |
{ | |
"output_type": "stream", | |
"name": "stdout", | |
"text": "ipdb> \"still works\"\n", | |
"stream": "stdout" | |
}, | |
{ | |
"output_type": "stream", | |
"text": "'still works'\n", | |
"stream": "stdout" | |
} | |
], | |
"language": "python", | |
"trusted": true, | |
"collapsed": false | |
}, | |
{ | |
"metadata": {}, | |
"cell_type": "code", | |
"input": "", | |
"outputs": [], | |
"language": "python", | |
"trusted": true, | |
"collapsed": false | |
} | |
], | |
"metadata": {} | |
} | |
], | |
"metadata": { | |
"cell_tags": [ | |
[ | |
"<None>", | |
null | |
] | |
], | |
"name": "", | |
"signature": "sha256:714a884436e67af43efa43bfe1b2c4df6589cd101f83bc263fb7619bc4a3689e" | |
}, | |
"nbformat": 3 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment