euporie.core.tabs.base
Contain tab base classes.
Functions
|
Add a command to the centralized command system. |
|
Register a new config item. |
|
Get the current active (running) Application. |
|
Create a new object respsenting a Comm. |
|
Parse and resolve a path. |
|
Update the key-binding registry. |
|
Run a function in an thread, but make sure it uses the same contextvars. |
Classes
|
Metaclass for defining Abstract Base Classes (ABCs). |
|
Asynchronous wrapper around a completer that removes duplicates. |
AutoSuggest class that doesn't return any suggestion. |
|
|
|
|
Completer class that can dynamically returns any Completer. |
|
Simple event to which event handlers can be attached. For instance::. |
|
Return results of the first inspector to response. |
|
Control that displays formatted text. |
|
Suggest line completions from a |
|
|
|
Run a notebook kernel and communicates with it asynchronously. |
|
A prompt_toolkit completer which provides completions from a Jupyter kernel. |
|
Load the kernel's command history. |
|
Kernel input text areas. |
|
Inspector which retrieves contextual help from a Jupyter 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. |
Typed dictionary for named message callbacks. |
|
|
Class for storing a diagnostic report. |
|
Base class for interface tabs. |
|
|
|
Mapping class that references keys weakly. |
|
Container that holds a control. |
|
Alignment of the Window content. |
deque([iterable[, maxlen]]) --> deque object |
|
partial(func, *args, **keywords) - new function with partial application of the given arguments and keywords. |
- class euporie.core.tabs.base.KernelTab(app: BaseApp, path: Path | None = None, kernel: Kernel | None = None, comms: dict[str, Comm] | None = None, use_kernel_history: bool = False, connection_file: Path | None = None)
Bases:
Tab
A Tab which connects to a kernel.
- bg_init = True
- 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: Kernel | 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.
- property kernel_lang_file_ext: str
Return the display name of the kernel defined in the notebook JSON.