You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, it seems there is no way to "capture" the output of the rendered tree, to make it available for later use (as opposed to immediately printing it).
My current workaround for this involves hooking sys.stdout, which isn't ideal but works:
It would be nice if there was a version that just returned the string. You can then refactor the code of print_tree to just print the output of this operation.
Activity