##// END OF EJS Templates
Fix typos in Cython example
Nikolay Koldunov -
Show More
@@ -1,7 +1,7 b''
1 {
1 {
2 "metadata": {
2 "metadata": {
3 "name": "Cython Magics",
3 "name": "",
4 "signature": "sha256:c357b93e9480d6347c6677862bf43750745cef4b30129c5bc53cb879a19d4074"
4 "signature": "sha256:91a890584d01fd61b1b252f257244d3facd2c1cc9d021d83dc894b97d9a0c47d"
5 },
5 },
6 "nbformat": 3,
6 "nbformat": 3,
7 "nbformat_minor": 0,
7 "nbformat_minor": 0,
@@ -102,7 +102,7 b''
102 "cell_type": "markdown",
102 "cell_type": "markdown",
103 "metadata": {},
103 "metadata": {},
104 "source": [
104 "source": [
105 "The `%%cython_pyximport` magic allows you to enter arbitrary Cython code into a cell. That Cython code is written as a `.pyx` file in the current working directory and then imported using `pyximport`. You have the specify the name of the module that the Code will appear in. All symbols from the module are imported automatically by the magic function."
105 "The `%%cython_pyximport` magic allows you to enter arbitrary Cython code into a cell. That Cython code is written as a `.pyx` file in the current working directory and then imported using `pyximport`. You have to specify the name of the module that the Code will appear in. All symbols from the module are imported automatically by the magic function."
106 ]
106 ]
107 },
107 },
108 {
108 {
@@ -150,7 +150,7 b''
150 "cell_type": "markdown",
150 "cell_type": "markdown",
151 "metadata": {},
151 "metadata": {},
152 "source": [
152 "source": [
153 "Probably the most important magic is the `%cython` magic. This is similar to the `%%cython_pyximport` magic, but doesn't require you to specify a module name. Instead, the `%%cython` magic uses manages everything using temporary files in the `~/.cython/magic` directory. All of the symbols in the Cython module are imported automatically by the magic.\n",
153 "Probably the most important magic is the `%cython` magic. This is similar to the `%%cython_pyximport` magic, but doesn't require you to specify a module name. Instead, the `%%cython` magic manages everything using temporary files in the `~/.cython/magic` directory. All of the symbols in the Cython module are imported automatically by the magic.\n",
154 "\n",
154 "\n",
155 "Here is a simple example of a Black-Scholes options pricing algorithm written in Cython. Please note that this example might not compile on non-POSIX systems (e.g., Windows) because of a missing `erf` symbol."
155 "Here is a simple example of a Black-Scholes options pricing algorithm written in Cython. Please note that this example might not compile on non-POSIX systems (e.g., Windows) because of a missing `erf` symbol."
156 ]
156 ]
General Comments 0
You need to be logged in to leave comments. Login now