← Về thư mục
openai4s/server/notebook_export.py
- CellStore · class · L14-L29 — class CellStore(Protocol)
- list_cells · method · L15-L17 — def list_cells( self, root_frame_id: str, *, branch_id: str | None = None ) -> list[dict]
- get_session_branch · method · L19-L19 — def get_session_branch(self, branch_id: str) -> dict | None
- get_session_checkpoint · method · L21-L21 — def get_session_checkpoint(self, checkpoint_id: str) -> dict | None
- list_branch_messages · method · L23-L29 — def list_branch_messages( self, root_frame_id: str, *, branch_id: str | None = None, limit: int | None = None, ) -> list[dict]
- NotebookExportService · class · L55-L480 — class NotebookExportService
- init · method · L58-L59 — def init(self, store: CellStore) -> None
- notebook · method · L61-L109 — def notebook( self, root_frame_id: str, language: str, *, branch_id: str | None = None, ) -> dict[str, Any]
- bundle · method · L111-L146 — def bundle(self, root_frame_id: str, *, branch_id: str | None = None) -> bytes
- _refs_from_metadata · method · L149-L169 — def _refs_from_metadata(metadata: Any) -> list[Mapping[str, Any]]
- _referenced_artifacts · method · L171-L217 — def _referenced_artifacts(self, root_frame_id: str, branch_id: str) -> list[dict]
- markdown · method · L219-L311 — def markdown(self, root_frame_id: str, *, branch_id: str | None = None) -> bytes
- export · method · L313-L345 — def export( self, root_frame_id: str, *, language: str | None = None, branch_id: str | None = None, ) -> dict[str, Any]
- _branch_cells · method · L347-L365 — def _branch_cells(self, root_frame_id: str, branch_id: str) -> list[dict]
- local · function · L348-L354 — def local(selected: str) -> list[dict]
- _cell · method · L368-L428 — def _cell(cls, cell: Mapping[str, Any], *, revision: int) -> dict[str, Any]
- _execution_count · method · L431-L437 — def _execution_count(cell: Mapping[str, Any], fallback: int) -> int
- _state_revision · method · L440-L450 — def _state_revision(cell: Mapping[str, Any], fallback: int) -> int
- _jupyter_id · method · L453-L457 — def _jupyter_id(value: str) -> str
- _lines · method · L460-L463 — def _lines(value: str) -> list[str]
- _encode · method · L466-L469 — def _encode(value: Any) -> bytes
- _safe_stem · method · L472-L480 — def _safe_stem(value: str) -> str