ionelmc / python-hunter

Hunter is a flexible code tracing toolkit.
https://python-hunter.readthedocs.io/
BSD 2-Clause "Simplified" License
796 stars 46 forks source link

Implement a ipython magic macro #68

Open ionelmc opened 5 years ago

ionelmc commented 5 years ago

In the vein of https://github.com/alexmojaki/snoop/blob/master/snoop/ipython.py

Some examples:

%hunter thread=True
%hunter depth_lt=3
%hunter module_sw="os"

To avoid confusion both %% and % magics should work.

https://ipython.readthedocs.io/en/stable/interactive/tutorial.html?highlight=magic#magic-functions

https://ipython.readthedocs.io/en/stable/config/custommagics.html