Simultaneous multipage widget state persistence, data_editors with identical contents, and multiprocessing capability

FWIW, my toy example also works if you unconditionally call main(), without the if __name == "__main__": part. That is something I almost always do in scripts because it allows me to use them as library modules, which may be convenient for testing and debugging, but I don’t see how it is related to multiprocessing.