Repository navigation
Support live data, list and HTML widget viewers in webR Interactive - #2008
Open
renkun-ken wants to merge 6 commits into
Open
renkun-ken wants to merge 6 commits into
renkun-ken wants to merge 6 commits into
Conversation
…interactive-rich-viewers
…interactive-rich-viewers
…interactive-rich-viewers
…interactive-rich-viewers
…interactive-rich-viewers
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Bring the native R Interactive data and list previews to webR. Both
View(mtcars)and a baremtcarsproduce an inline table with row names, sorting, paging and a full Data viewer. Nested lists can be expanded or opened in the List viewer, including opening a data frame held inside a list. Each live action is scoped to a retained object in its originating session.A visible HTML widget such as
ggplotly(p)now renders its HTML and JavaScript dependencies in the notebook. The desktop agent retains the bundle as an ordinary protected HTML asset. The browser frontend renders the widget in an isolated iframe. Widget, table and console messages keep their evaluation order, including before an input prompt. Static graphics continue to use PNG.The two hosts share the table/list helpers from the bundled sess source. The extension includes a small, reproducible copy of the pinned jsonlite Wasm namespace, so opening a viewer does not require a package download or change the user's library paths.
Verification
View(mtcars),View(lst), and the bare table/list expressions in a fresh desktop agent. Verified row names, sorted pages, the final row, nested list data and opening the nested data frame in a separate viewer.Stacked on #2007. Related to #2003.