Use IPython's profiling feature

It is convenient to create a profile and change the startup script for each profile.

Create a profile

$ ipython profile create sample
[ProfileCreate] Generating default config file: u'/Users/taka84u9/.ipython/profile_sample/ipython_config.py'

An initialized profile is created in the $ HOME / .ipython / profile_sample directory. ʻIpython is configured in ipython_config.pyand a startup script is created in the contents of thestartup` directory.

Load profile

Use the --profile option to load and launch the profile

$ ipython --profile sample
Python 2.7.2 (default, Feb 16 2012, 15:37:03) 
Type "copyright", "credits" or "license" for more information.

IPython 0.12 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

IPython profile: sample

In [1]: 

Recommended Posts

Use IPython's profiling feature
Use the preview feature with aws-cli