-
Fix bug when importing a nonexistent macro (typoed name) from a module that itself imports successfully.
- Now the macro imports are validated before committing any changes.
-
Add a
%macros
line magic to the IPython extension, and amacros?
command toMacroConsole
.These both implement the same feature, in the two different consoles: print a human-readable list of macros that are currently imported into the REPL session (or say that no macros are imported, if so).
In
MacroConsole
, this shadows theobj?
docstring lookup syntax for the MacroPy special objectmacros
, but that's likely not needed. That can still be invoked manually, usingimacropy.doc(macros)
.