I have repeatedly tried PyCallGraphException with different results. I have gotten it to work with max_depth=4, but not max_depth=5. I do not appear to have a file named "tmpxw3sbjz1" (or similar file with a recent timestamp). Dot is in my path and I can execute the command manually from within Jupyter, but this command ("dot -Tpng -oML4AR2 pycallgraph.png C:\Users\XXXX\AppData\Local\Temp\tmpxw3sbjz1" ) does not work.
Here is the code
from pycallgraph import PyCallGraph
from pycallgraph import Config
from pycallgraph import GlobbingFilter
from pycallgraph.output import GraphvizOutput
pycall_exclude = ['time.*', 'datetime.*', 'dateutil.*', 'argparse.*',
'numpy.*', 'pandas.*', 'yaml.*', 'pickle.*',
'psutil.*', 'sys.*', 'warnings.*', 'sklearn.*',
'collections.*', 'scipy.*', 'tqdm.*', 'os.*',
'logging.*', 'pycallgraph.*']
config = Config(max_depth=5)
config.trace_filter = GlobbingFilter(exclude=pycall_exclude)
graphviz = GraphvizOutput(output_file='ML4AR2 pycallgraph.png')
if __name__ == '__main__':
with PyCallGraph(output=graphviz, config=config):
main()
I have repeatedly tried PyCallGraphException with different results. I have gotten it to work with max_depth=4, but not max_depth=5. I do not appear to have a file named "tmpxw3sbjz1" (or similar file with a recent timestamp). Dot is in my path and I can execute the command manually from within Jupyter, but this command ("dot -Tpng -oML4AR2 pycallgraph.png C:\Users\XXXX\AppData\Local\Temp\tmpxw3sbjz1" ) does not work.
Here is the code
Here is a description of my environment
Please advise