Expand notebook FileAttachment and table helpers toward Observable System Guide data examples #134
Labels
No labels
abandoned
active
audit
blocked
data-safety
difficulty:easy
difficulty:hard
difficulty:high
difficulty:medium
docs
done
duplicate
notebook-v0
open
priority:high
ready
release-critical
safe-mode
spec
spec-backlog
subsystem:api
subsystem:backlog
subsystem:bases
subsystem:ci
subsystem:command
subsystem:configuration
subsystem:consolidate
subsystem:dependencies
subsystem:desktop-electron
subsystem:diffmerge
subsystem:docker
subsystem:docs
subsystem:fuzzy
subsystem:graph
subsystem:hotkeys
subsystem:lapis
subsystem:maint
subsystem:maintenance
subsystem:markdown
subsystem:markdown-lint
subsystem:md018
subsystem:notebook
subsystem:notifications
subsystem:opfs
subsystem:package
subsystem:plugin-markdown
subsystem:plugin-tasks
subsystem:plugins
subsystem:registry
subsystem:release
subsystem:renovate
subsystem:restore
subsystem:scripts
subsystem:search
subsystem:settings
subsystem:spec
subsystem:tasks
subsystem:testing
subsystem:ui
subsystem:web
subsystem:workspace
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lapis-notes/lapis#134
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Extend notebook data-loading and table-display helpers so the markdown-native System Guide parity surface can cover more of Observable's attachment-driven examples without requiring ad hoc data reshaping in notebook code.
Problem
The current notebook runtime supports
lapis.FileAttachment(path)forarrayBuffer,text,json, andblob, but it does not yet cover the more data-oriented helpers shown in the Observable System Guide such asFileAttachment(...).csv()and related attachment-to-table flows. The current runtime also lacks Observable-styleInputs.table(...)parity for those examples.Goal
Add the next attachment and table helper slice that makes the markdown-native notebook runtime friendlier for System Guide-style data examples while preserving notebook-owned table rendering and vault-relative file access rules.
Scope
lapis.FileAttachmenthelpers for structured tabular data, starting withcsv()andtsv().Inputs.table(...), a notebook-owned equivalent, or a documentedlapis.table(...)pattern is the supported parity surface for attachment-driven table display.Non-goals
Acceptance Criteria
lapis.FileAttachment(path).csv()is supported for notebook-relative attachments.lapis.FileAttachment(path).tsv()is supported for notebook-relative attachments.Implementation Notes
Inputs.table(...)remains out of scope, document the supported table-rendering alternative explicitly in the spec.Suggested Files or Specs To Inspect
packages/notebook/stdlib/src/**packages/notebook/src/lib/runtime/**packages/notebook/src/lib/render/dataframe/**e2e-vault/plugin-notebook/**spec/src/20-packages/plugins/notebook/documents-and-runtime.mdspec/src/20-packages/plugins/notebook/observable-system-guide-parity.mdValidation Commands
Follow-up Tasks
Inputs.table(...)needs a direct compatibility shim or whether the notebook-owned dataframe renderer is sufficient.Implementation Summary
Duplicate of #131.