Show More
@@ -59,6 +59,7 b' from IPython.core import magic_arguments' | |||||
59 | from IPython.core.magic import Magics, magics_class, cell_magic |
|
59 | from IPython.core.magic import Magics, magics_class, cell_magic | |
60 | from IPython.testing.skipdoctest import skip_doctest |
|
60 | from IPython.testing.skipdoctest import skip_doctest | |
61 | from IPython.utils import py3compat |
|
61 | from IPython.utils import py3compat | |
|
62 | from IPython.utils.path import get_ipython_cache_dir | |||
62 |
|
63 | |||
63 | import Cython |
|
64 | import Cython | |
64 | from Cython.Compiler.Errors import CompileError |
|
65 | from Cython.Compiler.Errors import CompileError | |
@@ -192,7 +193,7 b' class CythonMagics(Magics):' | |||||
192 | """ |
|
193 | """ | |
193 | args = magic_arguments.parse_argstring(self.cython, line) |
|
194 | args = magic_arguments.parse_argstring(self.cython, line) | |
194 | code = cell if cell.endswith('\n') else cell+'\n' |
|
195 | code = cell if cell.endswith('\n') else cell+'\n' | |
195 |
lib_dir = os.path.join( |
|
196 | lib_dir = os.path.join(get_ipython_cache_dir(), 'cython') | |
196 | quiet = True |
|
197 | quiet = True | |
197 | key = code, sys.version_info, sys.executable, Cython.__version__ |
|
198 | key = code, sys.version_info, sys.executable, Cython.__version__ | |
198 |
|
199 |
General Comments 0
You need to be logged in to leave comments.
Login now