Skip to main content

Python inspection magic functions for ipython

Project description

Python oject inspection for ipython

ipython magic function %pi, print instance

Written and maintained by Luis Montiel <>

%pi, print instance

In [2]: obj_or_dict = {‘akey’: ‘value’, ‘another’: ‘value2’} In [3]: %pi obj_or_dict dict akey = ‘value’ another = ‘value2’

You can pass a pattern and a separator after the object:

In [3]: %pi obj_or_dict anot dict another = ‘value2’

In [4]: %pi obj_or_dict * ‘| ‘ dict akey= ‘value’| another= ‘value2’


pip install poinspection


%load_ext poinspection

To autoload when IPython starts:

  • Create ipython profile config file, or skip if already present

    ipython profile create

    And you will have a default in your IPython directory under profile_default

  • Add/modify this ipython config file

    c.InteractiveShellApp.extensions = [‘poinspection’]


The IPython magic commands work for versions of IPython with the decorators IPython.core.magic.magics_class and IPython.core.magic.line_magic.


Public domain. You can do whatever you want with this.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for poinspection, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size poinspection-0.0.2.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page