Skip to main content

require_jupyter_kernel_gateway_installed

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: