Skip to content

The docs say that the "display" function is built-in, but built-in to what? #907

Closed Answered by mbostock
ttmc asked this question in Q&A
Discussion options

You must be logged in to vote

It’s built-in to Observable Framework. I’m not sure if this answers your question, but it’s implemented as a “shadow” variable using the Observable Runtime; each code block has its own display function that is uniquely bound to its output location. You can find the implementation here:

shadow: {
display: () => display,
view: () => (v) => Generators.input(display(v))
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ttmc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants