I am trying to creat a callgraph of my python code in Notebook. I tried the %callgraph and it seems to work only for one level (i.e., great for recursive functions). So, it only shows the first level of the tree.
Am I doing something wrong? is there another way to create call graphs for python/notebook?

try use
-wflag. for example, %callgraph -w10 lev("big", "dog"); lev("dig", "dog")source: https://callgraph.readthedocs.io/en/latest/