Show More
@@ -29,7 +29,7 b'' | |||||
29 | "cell_type": "code", |
|
29 | "cell_type": "code", | |
30 | "collapsed": false, |
|
30 | "collapsed": false, | |
31 | "input": [ |
|
31 | "input": [ | |
32 |
"print |
|
32 | "print('hi')" | |
33 | ], |
|
33 | ], | |
34 | "language": "python", |
|
34 | "language": "python", | |
35 | "metadata": {}, |
|
35 | "metadata": {}, | |
@@ -180,7 +180,7 b'' | |||||
180 | "cell_type": "code", |
|
180 | "cell_type": "code", | |
181 | "collapsed": false, |
|
181 | "collapsed": false, | |
182 | "input": [ |
|
182 | "input": [ | |
183 | "# press tab after parentheses\n", |
|
183 | "# press shift-tab after parentheses\n", | |
184 | "int(" |
|
184 | "int(" | |
185 | ], |
|
185 | ], | |
186 | "language": "python", |
|
186 | "language": "python", | |
@@ -199,7 +199,7 b'' | |||||
199 | "cell_type": "code", |
|
199 | "cell_type": "code", | |
200 | "collapsed": false, |
|
200 | "collapsed": false, | |
201 | "input": [ |
|
201 | "input": [ | |
202 | "# pres tab after f\n", |
|
202 | "# press tab after f\n", | |
203 | "f" |
|
203 | "f" | |
204 | ], |
|
204 | ], | |
205 | "language": "python", |
|
205 | "language": "python", | |
@@ -218,7 +218,7 b'' | |||||
218 | "cell_type": "code", |
|
218 | "cell_type": "code", | |
219 | "collapsed": false, |
|
219 | "collapsed": false, | |
220 | "input": [ |
|
220 | "input": [ | |
221 | "import sys\n", |
|
221 | "import sys, time\n", | |
222 | "from IPython.display import clear_output" |
|
222 | "from IPython.display import clear_output" | |
223 | ], |
|
223 | ], | |
224 | "language": "python", |
|
224 | "language": "python", | |
@@ -232,7 +232,7 b'' | |||||
232 | "for i in range(10):\n", |
|
232 | "for i in range(10):\n", | |
233 | " clear_output()\n", |
|
233 | " clear_output()\n", | |
234 | " time.sleep(0.25)\n", |
|
234 | " time.sleep(0.25)\n", | |
235 |
" print |
|
235 | " print(i)\n", | |
236 | " sys.stdout.flush()\n", |
|
236 | " sys.stdout.flush()\n", | |
237 | " time.sleep(0.25)\n" |
|
237 | " time.sleep(0.25)\n" | |
238 | ], |
|
238 | ], | |
@@ -247,7 +247,7 b'' | |||||
247 | "for i in range(10):\n", |
|
247 | "for i in range(10):\n", | |
248 | " clear_output(wait=True)\n", |
|
248 | " clear_output(wait=True)\n", | |
249 | " time.sleep(0.25)\n", |
|
249 | " time.sleep(0.25)\n", | |
250 |
" print |
|
250 | " print(i)\n", | |
251 | " sys.stdout.flush()\n" |
|
251 | " sys.stdout.flush()\n" | |
252 | ], |
|
252 | ], | |
253 | "language": "python", |
|
253 | "language": "python", |
General Comments 0
You need to be logged in to leave comments.
Login now