mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
More changes to example notebooks for Python 3 compatibility
This commit is contained in:
parent
83406924f1
commit
4288d5dcc5
@ -52,7 +52,7 @@
|
||||
"cell_type": "code",
|
||||
"collapsed": false,
|
||||
"input": [
|
||||
"print a"
|
||||
"print(a)"
|
||||
],
|
||||
"language": "python",
|
||||
"metadata": {},
|
||||
@ -120,7 +120,7 @@
|
||||
"import sys\n",
|
||||
"from ctypes import CDLL\n",
|
||||
"# This will crash a Linux or Mac system; equivalent calls can be made on Windows\n",
|
||||
"dll = 'dylib' if sys.platform == 'darwin' else '.so.6'\n",
|
||||
"dll = 'dylib' if sys.platform == 'darwin' else 'so.6'\n",
|
||||
"libc = CDLL(\"libc.%s\" % dll) \n",
|
||||
"libc.time(-1) # BOOM!!"
|
||||
],
|
||||
@ -324,7 +324,7 @@
|
||||
"input": [
|
||||
">>> the_world_is_flat = 1\n",
|
||||
">>> if the_world_is_flat:\n",
|
||||
"... print \"Be careful not to fall off!\""
|
||||
"... print(\"Be careful not to fall off!\")"
|
||||
],
|
||||
"language": "python",
|
||||
"metadata": {},
|
||||
|
Loading…
Reference in New Issue
Block a user