Show More
@@ -147,7 +147,7 b' class CythonMagics(Magics):' | |||||
147 | "multiple times)." |
|
147 | "multiple times)." | |
148 | ) |
|
148 | ) | |
149 | @magic_arguments.argument( |
|
149 | @magic_arguments.argument( | |
150 |
'-n', '-- |
|
150 | '-n', '--name', action='append', default=[], | |
151 | help="Specify a name for the Cython module." |
|
151 | help="Specify a name for the Cython module." | |
152 | ) |
|
152 | ) | |
153 | @magic_arguments.argument( |
|
153 | @magic_arguments.argument( | |
@@ -208,8 +208,8 b' class CythonMagics(Magics):' | |||||
208 | # key which is hashed to determine the module name. |
|
208 | # key which is hashed to determine the module name. | |
209 | key += time.time(), |
|
209 | key += time.time(), | |
210 |
|
210 | |||
211 |
if args. |
|
211 | if args.name: | |
212 |
module_name = str(args. |
|
212 | module_name = str(args.name[0]) | |
213 | else: |
|
213 | else: | |
214 | module_name = "_cython_magic_" + hashlib.md5(str(key).encode('utf-8')).hexdigest() |
|
214 | module_name = "_cython_magic_" + hashlib.md5(str(key).encode('utf-8')).hexdigest() | |
215 | module_path = os.path.join(lib_dir, module_name + self.so_ext) |
|
215 | module_path = os.path.join(lib_dir, module_name + self.so_ext) |
General Comments 0
You need to be logged in to leave comments.
Login now