euporie.core.inspection

Show contextual help for the current item under the cursor.

Functions

abstractmethod(funcobj)

A decorator indicating abstract methods.

Classes

ABCMeta(name, bases, namespace, /, **kwargs)

Metaclass for defining Abstract Base Classes (ABCs).

FirstInspector(inspectors)

Return results of the first inspector to response.

Inspector()

A class which provides contextual help on the item under the cursor.

KernelInspector(kernel)

Inspector which retrieves contextual help from a Jupyter kernel.

LspInspector(lsp, path)

Inspector which retrieves contextual help from a Language Server.

class euporie.core.inspection.FirstInspector(inspectors: Sequence[Inspector] | Callable[[], Sequence[Inspector]])

Bases: Inspector

Return results of the first inspector to response.

async get_context(document: Document, auto: bool) dict[str, Any]

Request hover info from an LSP servers.

class euporie.core.inspection.Inspector

Bases: object

A class which provides contextual help on the item under the cursor.

abstract async get_context(document: Document, auto: bool) dict[str, Any]

Call to retrieve the contextual help.

class euporie.core.inspection.KernelInspector(kernel: Kernel)

Bases: Inspector

Inspector which retrieves contextual help from a Jupyter kernel.

async get_context(document: Document, auto: bool) dict[str, Any]

Request contextual help from the kernel.

class euporie.core.inspection.LspInspector(lsp: LspClient, path: Path)

Bases: Inspector

Inspector which retrieves contextual help from a Language Server.

async get_context(document: Document, auto: bool) dict[str, Any]

Request hover info from an LSP servers.