diff --git a/IPython/extensions/cythonmagic.py b/IPython/extensions/cythonmagic.py index 289214c..4a331cb 100644 --- a/IPython/extensions/cythonmagic.py +++ b/IPython/extensions/cythonmagic.py @@ -175,9 +175,15 @@ class CythonMagics(Magics): namespace. The usage is similar to that of `%%cython_pyximport` but you don't have to pass a module name:: - %%cython - def f(x): - return 2.0*x + %%cython + def f(x): + return 2.0*x + + To compile OpenMP codes, pass the required `--compile-args` + and `--link-args`. For example with gcc:: + + %%cython --compile-args=-fopenmp --link-args=-fopenmp + ... """ args = magic_arguments.parse_argstring(self.cython, line) code = cell if cell.endswith('\n') else cell+'\n'