##// END OF EJS Templates
Merge pull request #2692 from bfroehle/cython_doc_fixes...
Thomas Kluyver -
r8906:b8f97bcb merge
parent child Browse files
Show More
@@ -1,6 +1,23 b''
1 1 # -*- coding: utf-8 -*-
2 2 """
3 Cython related magics.
3 =====================
4 Cython related magics
5 =====================
6
7 Usage
8 =====
9
10 ``%%cython``
11
12 {CYTHON_DOC}
13
14 ``%%cython_inline``
15
16 {CYTHON_INLINE_DOC}
17
18 ``%%cython_pyximport``
19
20 {CYTHON_PYXIMPORT_DOC}
4 21
5 22 Author:
6 23 * Brian Granger
@@ -273,6 +290,11 b' class CythonMagics(Magics):'
273 290 html = '\n'.join(l for l in html.splitlines() if not r.match(l))
274 291 return html
275 292
293 __doc__ = __doc__.format(
294 CYTHON_DOC = ' '*8 + CythonMagics.cython.__doc__,
295 CYTHON_INLINE_DOC = ' '*8 + CythonMagics.cython_inline.__doc__,
296 CYTHON_PYXIMPORT_DOC = ' '*8 + CythonMagics.cython_pyximport.__doc__,
297 )
276 298
277 299 def load_ipython_extension(ip):
278 300 """Load the extension in IPython."""
General Comments 0
You need to be logged in to leave comments. Login now