euporie.core.tabs.kernel
Contain kernel tab base class.
Functions
|
Add a command to the centralized command system. |
|
Generate autosuggesters. |
|
Get the current active (running) Application. |
Get specifications for all available kernel types. |
|
|
Least-recently-used cache decorator. |
|
Create a new object respsenting a Comm. |
Classes
|
Metaclass for defining Abstract Base Classes (ABCs). |
|
Asynchronous wrapper around a completer that removes duplicates. |
AutoSuggest class that doesn't return any suggestion. |
|
|
|
|
Validator class that can dynamically returns any Validator. |
|
Completer class that can dynamically returns any Completer. |
|
Return results of the first inspector to respond. |
|
|
|
A prompt_toolkit completer which provides completions from a kernel. |
|
Load the kernel's command history. |
|
Inspector which retrieves contextual help from a kernel. |
|
A Tab which connects to a kernel. |
|
A completer for documents using an LSP. |
|
Format a document using a LSP server. |
|
Inspector which retrieves contextual help from a Language Server. |
|
A None kernel. |
|
Class for storing a diagnostic report. |
|
Base class for interface tabs. |
|
Mapping class that references keys weakly. |
A list-like sequence optimized for data accesses near its endpoints. |
|
|
Create a new function with partial application of the given arguments and keywords. |
- class euporie.core.tabs.kernel.KernelTab(app: BaseApp, path: Path | None = None, kernel: BaseKernel | None = None, comms: dict[str, Comm] | None = None, use_kernel_history: bool = False, connection_file: Path | None = None)
Bases:
TabA Tab which connects to a kernel.
- bg_init = False
- change_kernel(msg: str | None = None, startup: bool = False) None
Prompt the user to select a new kernel.
- comm_open(content: dict, buffers: Sequence[bytes]) None
Register a new kernel Comm object in the notebook.
- container: AnyContainer
- property current_input: KernelInput
Return the currently active kernel input, if any.
- default_callbacks: MsgCallbacks
- init_kernel(kernel: BaseKernel | None = None, comms: dict[str, Comm] | None = None, use_kernel_history: bool = False, connection_file: Path | None = None) None
Set up the tab’s kernel and related components.
- property kernel_display_name: str
Return the display name of the kernel defined in the notebook JSON.
- euporie.core.tabs.kernel.autosuggest_factory(kind: str, history: History) AutoSuggest
Generate autosuggesters.