euporie.console.tabs.console
Contain the main class for a notebook file.
Functions
|
Add a command to the centralized command system. |
|
Register a new config item. |
|
Cast a value to a type. |
|
Suspend the current app and edit a file in an external editor. |
|
Get a command from the centralized command system by name. |
|
Enable when this buffer has the focus. |
|
Assign key-bindings to commands based on a dictionary. |
|
Update the key-binding registry. |
Classes
|
The core data structure that holds the text and cursor position of the current input line and implements all text manipulations on top of it. |
|
An area below a cell where one or more cell outputs can be shown. |
|
Turn any callable into a Filter. |
|
Wrapper around any other container that can change the visibility. |
|
Interactive console. |
|
Simple event to which event handlers can be attached. For instance::. |
|
Container which can contain another container for the background, as well as a list of floating containers on top of it. |
|
Control that displays formatted text. |
|
Several layouts, one stacked above/under the other. ::. |
|
Kernel input text areas. |
|
A Tab which connects to a kernel. |
|
Validate kernel input using a kernel code completeness call. |
A container for a set of key bindings. |
|
|
The layout for a prompt_toolkit |
|
An LSP client's representation of a cell. |
|
Format a document using a LSP server. |
Typed dictionary for named message callbacks. |
|
|
A container which displays all it's children in a vertical list. |
|
Class for storing a diagnostic report. |
|
A widget to accept kernel input. |
|
|
|
Several layouts, one stacked left/right of the other. ::. |
|
The validation state of a buffer. |
|
Container that holds a control. |
partial(func, *args, **keywords) - new function with partial application of the given arguments and keywords. |
- class euporie.console.tabs.console.Console(app: BaseApp, path: Path | None = None, use_kernel_history: bool = True, connection_file: str = '')
Bases:
KernelTab
Interactive console.
An interactive console which connects to a Jupyter kernel.
- bg_init = False
- change_kernel(msg: str | None = None, startup: bool = False) None
Prompt the user to select a new kernel.
- clear_output(wait: bool = False) None
Remove the last output, optionally when new output is generated.
- 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.
- kernel_started(result: dict[str, Any] | None = None) None
Task to run when the kernel has started.
- new_output(output_json: dict[str, Any]) None
Print the previous output and replace it with the new one.
- prompt(text: str, offset: int = 0, show_busy: bool = False) StyleAndTextTuples
Determine what should be displayed in the prompt of the cell.
- render_outputs(app: Application[Any]) None
Request that any unrendered outputs be rendered.
- run(buffer: prompt_toolkit.buffer.Buffer | None = None) None
Run the code in the input box.