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. |
|
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). |
|
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. |
|
A Tab which connects to a kernel. |
Typed dictionary for named message callbacks. |
|
|
Base class for interface tabs. |
|
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:
euporie.core.tabs.base.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
- 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.