# Communication between a host page and a JupyterLite instance running in an IFrame When a JupyterLite instance is embedded in a website via an IFrame, it may be relevant to establish a communication channel between the host page and the instance. ## Using the `jupyter-iframe-commands` extension The [jupyter-iframe-commands](https://github.com/TileDB-Inc/jupyter-iframe-commands) extension is a JupyterLab extension that provides an API to execute JupyterLab commands from a host page, with JupyterLite embedded in an iframe. ### Installation Install the extension in your environment: ```bash pip install jupyter-iframe-commands ``` Then rebuild your JupyterLite site: ```bash jupyter lite build ``` ### Usage The extension consists of two packages: 1. `jupyter-iframe-commands`: The JupyterLab extension that runs inside the iframe 2. `jupyter-iframe-commands-host`: A JavaScript package for the host page interacting with the JupyterLite instance To use the extension in your host page: ```html