mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-18 11:55:46 +08:00
Polish test notebook
This commit is contained in:
parent
e5603e18ce
commit
1e21f3295e
@ -29,7 +29,7 @@
|
||||
"cell_type": "code",
|
||||
"collapsed": false,
|
||||
"input": [
|
||||
"print 'hi'"
|
||||
"print('hi')"
|
||||
],
|
||||
"language": "python",
|
||||
"metadata": {},
|
||||
@ -180,7 +180,7 @@
|
||||
"cell_type": "code",
|
||||
"collapsed": false,
|
||||
"input": [
|
||||
"# press tab after parentheses\n",
|
||||
"# press shift-tab after parentheses\n",
|
||||
"int("
|
||||
],
|
||||
"language": "python",
|
||||
@ -199,7 +199,7 @@
|
||||
"cell_type": "code",
|
||||
"collapsed": false,
|
||||
"input": [
|
||||
"# pres tab after f\n",
|
||||
"# press tab after f\n",
|
||||
"f"
|
||||
],
|
||||
"language": "python",
|
||||
@ -218,7 +218,7 @@
|
||||
"cell_type": "code",
|
||||
"collapsed": false,
|
||||
"input": [
|
||||
"import sys\n",
|
||||
"import sys, time\n",
|
||||
"from IPython.display import clear_output"
|
||||
],
|
||||
"language": "python",
|
||||
@ -232,7 +232,7 @@
|
||||
"for i in range(10):\n",
|
||||
" clear_output()\n",
|
||||
" time.sleep(0.25)\n",
|
||||
" print i\n",
|
||||
" print(i)\n",
|
||||
" sys.stdout.flush()\n",
|
||||
" time.sleep(0.25)\n"
|
||||
],
|
||||
@ -247,7 +247,7 @@
|
||||
"for i in range(10):\n",
|
||||
" clear_output(wait=True)\n",
|
||||
" time.sleep(0.25)\n",
|
||||
" print i\n",
|
||||
" print(i)\n",
|
||||
" sys.stdout.flush()\n"
|
||||
],
|
||||
"language": "python",
|
||||
|
Loading…
Reference in New Issue
Block a user