require_jupyter_kernel_gateway_installed

require_jupyter_kernel_gateway_installed() -> Callable[[~T], ~T]

Decorator that checks if jupyter-kernel-gateway is installed before function execution.
Returns:
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
Returns:
TypeDescription
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