euporie.core.widgets.cell_outputs
Contain a container for the cell output area.
Functions
|
A decorator indicating abstract methods. |
|
Register a new config item. |
|
Find the shortest conversion path between two formats. |
|
Get the current active (running) Application. |
|
Make sure that the given object is a |
Classes
|
Metaclass for defining Abstract Base Classes (ABCs). |
|
Add padding around a container. |
|
Represent a single cell output. |
|
An area below a cell where one or more cell outputs can be shown. |
|
A cell output element which display data. |
|
Base class for the various types of cell outputs (display data or widgets). |
|
A cell output element which displays JSON. |
|
A cell output element which displays ipywidgets. |
|
Rich output displays. |
|
Container class that dynamically returns any Container. |
|
Several layouts, one stacked above/under the other. ::. |
|
A JSON-view container. |
|
Base class for manipulating paths without I/O. |
|
Very simple cache that discards the oldest item when the cache size is exceeded. |
- class euporie.core.widgets.cell_outputs.CellOutput(json: dict[str, Any], parent: OutputParent | None)
Bases:
object
Represent a single cell output.
Capable of displaying multiple mime representations of the same data.
TODO - allow the visible mime-type to be rotated.
- property data: dict[str, Any]
Return dictionary of mime types and data for this output.
This generates similarly structured data objects for markdown cells and text output streams.
- Returns
JSON dictionary mapping mimes type to representation data.
- property element: euporie.core.widgets.cell_outputs.CellOutputElement
Get the element for the currently selected mime type.
- get_element(mime: str) euporie.core.widgets.cell_outputs.CellOutputElement
Return the currently displayed cell element.
- make_element(mime: str) euporie.core.widgets.cell_outputs.CellOutputElement
Create a container for the cell output mime-type if it doesn’t exist.
- Parameters
mime – The mime-type for which to create an output element
- Returns
A
OutputElement
container for the currently selected mime-type.
- class euporie.core.widgets.cell_outputs.CellOutputArea(json: list[dict[str, Any]], parent: OutputParent | None, style: str = '')
Bases:
object
An area below a cell where one or more cell outputs can be shown.
- add_output(output_json: dict[str, Any], refresh: bool = True) None
Add a new output to the output area.
- property json: Any
Return the control’s display data.
- output_cache: SimpleCache[str, CellOutput] = <prompt_toolkit.cache.SimpleCache object>
- class euporie.core.widgets.cell_outputs.CellOutputDataElement(mime: str, data: Any, metadata: dict, parent: OutputParent | None)
Bases:
euporie.core.widgets.cell_outputs.CellOutputElement
A cell output element which display data.
- property data: Any
Return the control’s display data.
- class euporie.core.widgets.cell_outputs.CellOutputElement(mime: str, data: Any, metadata: dict, parent: OutputParent | None)
Bases:
object
Base class for the various types of cell outputs (display data or widgets).
- data: Any
- class euporie.core.widgets.cell_outputs.CellOutputJsonElement(mime: str, data: dict[str, Any], metadata: dict, parent: OutputParent | None)
Bases:
euporie.core.widgets.cell_outputs.CellOutputElement
A cell output element which displays JSON.
- data: Any