Commit f7c6b725 authored by scoder's avatar scoder

Merge pull request #322 from Carreau/patch-1

Fix caching issues of cython magic.
parents 626c685c 626fe79a
...@@ -214,7 +214,7 @@ class CythonMagics(Magics): ...@@ -214,7 +214,7 @@ class CythonMagics(Magics):
code = cell if cell.endswith('\n') else cell+'\n' code = cell if cell.endswith('\n') else cell+'\n'
lib_dir = os.path.join(get_ipython_cache_dir(), 'cython') lib_dir = os.path.join(get_ipython_cache_dir(), 'cython')
quiet = True quiet = True
key = code, sys.version_info, sys.executable, cython_version key = code, line, sys.version_info, sys.executable, cython_version
if not os.path.exists(lib_dir): if not os.path.exists(lib_dir):
os.makedirs(lib_dir) os.makedirs(lib_dir)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment