mirror of
https://github.com/smyalygames/FiniteVolumeGPU.git
synced 2026-01-14 15:48:43 +01:00
Refactoring / cleanup
This commit is contained in:
@@ -104,6 +104,8 @@ class MagicLogger(Magics):
|
||||
|
||||
@line_magic
|
||||
@magic_arguments.magic_arguments()
|
||||
@magic_arguments.argument(
|
||||
'name', type=str, help='Name of context to create')
|
||||
@magic_arguments.argument(
|
||||
'--out', '-o', type=str, default='output.log', help='The filename to store the log to')
|
||||
@magic_arguments.argument(
|
||||
@@ -146,6 +148,7 @@ class MagicLogger(Magics):
|
||||
logger.addHandler(fh)
|
||||
|
||||
logger.info("Python version %s", sys.version)
|
||||
self.shell.user_ns[args.name] = logger
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user