Is there a way to enable/disable a lab extension through entries in a .py file

Hi, is there a way to enable/disable a lab extension through entries in jupyter_lab_config.py file or any other .py file?

I can see this is possible through disableExtensions key in <jupyter_config_path>/labconfig/page_config.json as documented here. However, I’m looking to add comments on why an extension is enabled/disabled and would prefer an entry in a .py file, something similar to c.ServerApp.jpserver_extensions in jupyter_server_config.py for server extensions.

I tried c.LabApp.disabled_extensions = [<my-extension-name>] and it didn’t work.

(I’m aware of this request logged recently - page_config.json should support json5 · Issue #377 · jupyterlab/jupyterlab_server · GitHub)

Thanks in advance!