##// END OF EJS Templates
Backport PR #5522: fix iteration over Client...
Backport PR #5522: fix iteration over Client I didn't intend for Client to be iterable, but defining `__getitem__` makes it iterable as long as engine IDs are continuous (not always the case). This explicitly defines `__iter__` so it behaves consistently. closes #5519

File last commit:

r16113:87737521
r16233:12e080c4
Show More
mynotebook.ipynb
58 lines | 997 B | text/plain | TextLexer
MinRK
add Importing Notebooks example
r11699 {
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"My Notebook"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"def foo():\n",
" return \"foo\""
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 1
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"def has_ip_syntax():\n",
" listing = !ls\n",
" return listing"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 2
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"def whatsmyname():\n",
" return __name__"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 4
}
],
"metadata": {}
}
]
}