_comms module

pyflyby._comms._register_target(target_name)
pyflyby._comms.comm_close_handler(comm, message)
pyflyby._comms.comm_open_handler(comm, message)

Handles comm_open message for pyflyby custom comm messages. https://jupyter-client.readthedocs.io/en/stable/messaging.html#opening-a-comm.

Handler for all PYFLYBY custom comm messages that are opened by the frontend (at this point, just the jupyterlab frontend does this).

pyflyby._comms.in_jupyter()
pyflyby._comms.initialize_comms()
pyflyby._comms.remove_comms()
pyflyby._comms.send_comm_message(target_name, msg)