> ## Documentation Index
> Fetch the complete documentation index at: https://private-04b27de1.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# autogen.coding.jupyter.import_utils.require_jupyter_kernel_gateway_installed

<code class="doc-symbol doc-symbol-heading doc-symbol-function" />

#### require\_jupyter\_kernel\_gateway\_installed

```python theme={null}
require_jupyter_kernel_gateway_installed() -> Callable[[~T], ~T]
```

Decorator that checks if jupyter-kernel-gateway is installed before function execution.<br />Returns: <br />    Callable\[\[T], T]: A decorator function that either: <br />        - Returns the original function unchanged if jupyter-kernel-gateway is installed

* Returns a patched version of the function that will raise a helpful error indicating the missing dependency when called

<b>Returns:</b>

| Type                   | Description                                                                                                                                                                                                                                                      |
| ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Callable\[\[\~T], \~T] | Callable\[\[T], T]: A decorator function that either: - Returns the original function unchanged if jupyter-kernel-gateway is installed - Returns a patched version of the function that will raise a helpful error indicating the missing dependency when called |

<br />
