dismagic

An extension for IPython that help to disassembly source and objects.


Keywords
ipython, notebook, dis, disassembly, disassembling
License
BSD-3-Clause
Install
pip install dismagic==0.0.1

Documentation

dismagic

disassembling magic command for ipython

Latest Version Downloads

Installation

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

Usage Examples

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

Author

See the included AUTHORS.txt file for more information.

License

This software is licensed under the BSD License. See the included LICENSE.txt file for more information.