##// END OF EJS Templates
custom keyboard interrupt handling in ask_yes_no...
custom keyboard interrupt handling in ask_yes_no Sometimes, Ctrl-C just makes sense as an answer, and re-asking the question is just frustrating. This changes makes it possible to break out of the asking loop via Ctrl-C. This is particularly handy for asking questions from the command line, where one expects Ctrl-c to be a sort of "Cancel" operation, and is often functionally equivalent to "no"

File last commit:

r9190:20a102a5
r13609:73441e41
Show More
directview.ipynb
45 lines | 763 B | text/plain | TextLexer
Brian Granger
Moving direct view widget to docs/examples.
r7211 {
"metadata": {
"name": "directview"
},
"nbformat": 3,
MinRK
rebuild example notebooks...
r7739 "nbformat_minor": 0,
Brian Granger
Moving direct view widget to docs/examples.
r7211 "worksheets": [
{
"cells": [
{
"cell_type": "code",
MinRK
rebuild example notebooks...
r7739 "collapsed": false,
Brian Granger
Moving direct view widget to docs/examples.
r7211 "input": [
MinRK
rebuild example notebooks...
r7739 "from directview import interact\n",
Brian Granger
Update directview.ipynb & allowing no-callbacks in kernel.execute.
r7212 "from IPython.parallel import Client"
],
"language": "python",
MinRK
rebuild example notebooks...
r7739 "metadata": {},
Brian Granger
Update directview.ipynb & allowing no-callbacks in kernel.execute.
r7212 "outputs": []
},
{
"cell_type": "code",
MinRK
rebuild example notebooks...
r7739 "collapsed": false,
Brian Granger
Update directview.ipynb & allowing no-callbacks in kernel.execute.
r7212 "input": [
MinRK
rebuild example notebooks...
r7739 "c = Client()\n",
Brian Granger
Update directview.ipynb & allowing no-callbacks in kernel.execute.
r7212 "dv = c[:]"
],
"language": "python",
MinRK
rebuild example notebooks...
r7739 "metadata": {},
Brian Granger
Update directview.ipynb & allowing no-callbacks in kernel.execute.
r7212 "outputs": []
},
{
"cell_type": "code",
MinRK
rebuild example notebooks...
r7739 "collapsed": false,
Brian Granger
Update directview.ipynb & allowing no-callbacks in kernel.execute.
r7212 "input": [
"interact(dv)"
Brian Granger
Moving direct view widget to docs/examples.
r7211 ],
"language": "python",
MinRK
rebuild example notebooks...
r7739 "metadata": {},
Brian Granger
Moving direct view widget to docs/examples.
r7211 "outputs": []
}
MinRK
rebuild example notebooks...
r7739 ],
"metadata": {}
Brian Granger
Moving direct view widget to docs/examples.
r7211 }
]
}