Expand description
Conversion between runtime values and wire format.
This module provides conversions between the runtime’s value types
and the serializable WireValue type used for REPL communication
and external tool integration.
§API (ValueWord-native)
nb_to_wire/wire_to_nb— convert directly without ValueWord intermediatenb_to_envelope— wrap a ValueWord in a ValueEnvelope with metadatanb_extract_typed_value/nb_typed_value_to_envelope— typed extraction
Structs§
- Extracted
Content - Extracted content with multiple render targets.
Functions§
- datatable_
from_ ipc_ bytes - Deserialize Arrow IPC bytes into a
DataTable. - datatable_
to_ ipc_ bytes - Serialize a
DataTableto Arrow IPC bytes. - nb_
extract_ content - If the ValueWord value is a Content node, render it as JSON, HTML, and terminal strings.
- nb_
extract_ content_ full - Extract content with full detail including the raw ContentNode.
- nb_
extract_ typed_ value - Extract type info and wire value from a ValueWord value.
- nb_
to_ envelope - Convert a ValueWord value to a ValueEnvelope with full metadata.
- nb_
to_ wire - Convert a ValueWord value to WireValue without materializing ValueWord.
- nb_
typed_ value_ to_ envelope - Convert a ValueWord value to ValueEnvelope with inferred type information.
- wire_
to_ nb - Convert a WireValue to a ValueWord value without ValueWord intermediate.