disassembling magic command for ipython -------------------
The package may be installed as follows: :
pip install dismagic
or in iPython shell:
%install_ext https://raw.githubusercontent.com/Amper/dismagic/master/dismagic.py
After installation, the extension may be loaded within an IPython session with :
%load_ext dismagic
Disassembly a source:
%dis x = a + b
%dis "x = a + b"
src = "x = a + b"
%dis src
Disassembly an object:
func = lambda x, y: x + y
%dis func
See the included AUTHORS.txt file for more information.
This software is licensed under the BSD License. See the included LICENSE.txt file for more information.