diff --git a/IPython/extensions/cythonmagic.py b/IPython/extensions/cythonmagic.py index bd96573..217a738 100644 --- a/IPython/extensions/cythonmagic.py +++ b/IPython/extensions/cythonmagic.py @@ -115,7 +115,7 @@ class CythonMagics(Magics): help="Add a library to link the extension against (can be called multiple times)." ) @argument( - '-i', '--include', action='append', default=[], + '-I', '--include', action='append', default=[], help="Add a path to the list of include directories (can be called multiple times)." ) @argument( diff --git a/docs/examples/notebooks/cython_extension.ipynb b/docs/examples/notebooks/cython_extension.ipynb index a6689fa..3e9747e 100644 --- a/docs/examples/notebooks/cython_extension.ipynb +++ b/docs/examples/notebooks/cython_extension.ipynb @@ -205,13 +205,13 @@ { "cell_type": "markdown", "source": [ - "Cython allows you to specify additional libraries to be linked with your extension, you can do so with the `-l` flag (also spelled `--lib`). Note that this flag can be passed more than once to specify multiple libraries, such as `-l lib1 -l lib2`. Here's a simple example of how to access the system math library:" + "Cython allows you to specify additional libraries to be linked with your extension, you can do so with the `-l` flag (also spelled `--lib`). Note that this flag can be passed more than once to specify multiple libraries, such as `-lm -llib2 --lib lib3`. Here's a simple example of how to access the system math library:" ] }, { "cell_type": "code", "input": [ - "%%cython -l m\n", + "%%cython -lm\n", "from libc.math cimport sin\n", "print 'sin(1)=', sin(1)" ], @@ -230,7 +230,7 @@ { "cell_type": "markdown", "source": [ - "You can similarly use the `-i/--include` flag to add include directories to the search path, and `-c/--compile-args` to add extra flags that are passed to Cython via the `extra_compile_args` of the distutils `Extension` class. Please see [the Cython docs on C library usage](http://docs.cython.org/src/tutorial/clibraries.html) for more details on the use of these flags." + "You can similarly use the `-I/--include` flag to add include directories to the search path, and `-c/--compile-args` to add extra flags that are passed to Cython via the `extra_compile_args` of the distutils `Extension` class. Please see [the Cython docs on C library usage](http://docs.cython.org/src/tutorial/clibraries.html) for more details on the use of these flags." ] } ]