reference https://jupyterlab.readthedocs.io/en/stable/extension/extension_tutorial.html#extension-tutorial