Is there a "registry" for Signals?

There is a command registry signal, CommandRegistry.commandExecuted, that we can attach a function to that gets called on each command event. Is there a similar facility for Signals i.e., a means of capturing all emitted Signals?

It is my understanding at this point that the way to capture signals is to find the signal that you are interested in and attach a handler to it. However, I’m interested in learning if there are any other facilities for this purpose e.g., a “registry”.

Thank you.

No, there is not a registry for all signals available in the system. If you want to browse the code for the signal system, it is in lumino/index.ts at b5df1ce469054f1c4894c7d0b6ca8419d0986d61 · jupyterlab/lumino · GitHub

If you are debugging and want to log signals, etc., this is the main signal emission function to breakpoint or log: lumino/index.ts at b5df1ce469054f1c4894c7d0b6ca8419d0986d61 · jupyterlab/lumino · GitHub

1 Like