I'm hitting an error in a notebook and instead of showing a full call stack, it's a truncated stack with only the last few calls and the following message printed on top:
Output exceeds the size limit. Open the full output data *in a text editor*
Which links to a text file like:
{
"name": "TypeError",
"message": "default_collate: batch must contain tensors, numpy arrays, numbers, dicts or lists; found <class 'anndata._core.anndata.AnnData'>",
"stack": "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[0;31mTypeError\u001b[0m Traceback (most recent call last)\nFile \u001b[0;32m/usr/local/python/lib/python3.8/site-packages/torch/utils/data/_utils/collate.py:128\u001b[0m, in \u001b[0;36mcollate\u001b[0;34m(batch, collate_fn_map)\u001b[0m\n\u001b[1;32m 127\u001b[0m \u001b[39mtry\u001b[39;00m:\n\u001b[0;32m--> 128\u001b[0m \u001b[39mreturn\u001b[39;00m elem_type({key: collate([d[key] \u001b[39mfor\u001b[39;00m d \u001b[39min\u001b[39;00m batch], collate_fn_map\u001b[39m=\u001b[39mcollate_fn_map) \u001b[39mfor\u001b[39;00m key \u001b[39min\u001b[39;00m elem})\n\u001b[1;32m 129\u001b[0m \u001
The issue is that ['stack']
is not a human-readable value.
How can I get a full call stack out of this, in human readable form?