Welcome to Cadabra Q&A, where you can ask questions and receive answers from other members of the community.
+1 vote

Does anyone know a way to display the currently running function?

In Cadabra v1, this was extremely useful when I was doing a long list of substitutions / functions. It would give the function (e.g. "canonicalise") and display numerically how far along it was. If something were to hang, I could see immediately what the issue was.

I would love to be able to replicate that functionality within Cadabra v2. Perhaps there is a way to query the kernel for this information?

in Feature requests by (540 points)

1 Answer

+1 vote

There is some internal functionality for algorithms to send out-of-band progress information to the user interface in v2, but it has mostly been to experiment with it and see what we need. Only the meld algorithm really uses it at the moment. I am not sure we have converged on the right mechanism yet, hence it hasn't been included in other algorithms.

The problem is, as always with logging, that you do not want to log too little, but you also do not want to log too much. However, this distinction is very much a function of the problem you are solving: sometimes you want to see an update for all terms canonicalise acts on, but sometimes that's a very fast part of some inner loop and you are not interested in that. Some nested progress indicator is probably best.

If you have any good ideas, please post.

by (71.6k points)