Title: Is there a tool for python that can visualize methods and classes?
Tags: python;python-3.x
Question: Is there a tool that can visualize (such as tree view) all python functions and classes in a program and which function calls other functions? Trying to find dependencies of some real messy code.


Here is the accepted answer: Yes, there is. It is called ```pycallgraph```.

Comment for this answer: Does pycallgraph run the entire program to create the tree view?


{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 4.0', 'CreationDate': '2020:00:06/23/20', 'FavoriteCount': 1.0, 'PostTypeId': 1, 'Tags': '<python><python-3.x>', 'Title': 'Is there a tool for python that can visualize methods and classes?', 'ViewCount': 71, 'id': 62526432, 'user_AboutMe': '', 'user_AccountId': 2596749.0, 'user_DisplayName': 'codeBarer', 'user_Reputation': 2532.0, 'user_Views': 280.0, 'user_id': 2250263.0}}