Commit 626fe79a authored by Matthias Bussonnier's avatar Matthias Bussonnier

Fix caching issues of cython magic.

Should fix https://github.com/ipython/ipython/issues/6507 when using cython magic. 
We will deprecate cython magic in IPython itself.
parent 626c685c
......@@ -214,7 +214,7 @@ class CythonMagics(Magics):
code = cell if cell.endswith('\n') else cell+'\n'
lib_dir = os.path.join(get_ipython_cache_dir(), 'cython')
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):
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