Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renders ETS as tuples #90

Merged
merged 3 commits into from
Feb 8, 2022

Conversation

cristineguadelupe
Copy link
Contributor

This PR changes the way we show ETS tables. Now we always have only one column named rows and all rows are just tuples.

Screen Shot 2022-02-08 at 00 55 13

lib/kino/ets.ex Outdated Show resolved Hide resolved
@wojtekmach
Copy link
Contributor

Given rows are always Elixir terms I wonder if it would make sense to always print them in <pre>? Maybe there should be an option to DataTable?

@jonatanklosko
Copy link
Member

@wojtekmach good call! Actually, I'm wondering if we should just always use monospaced font for the table, since we generally show inspected data. This way the styling would be consistent.

@josevalim
Copy link
Contributor

@jonatanklosko I think monospaced functions will be bad for database data. We should definitely allow multiple representations there. It should be an option.

@josevalim
Copy link
Contributor

Monospaced won't be good for Explorer either. :)

@jonatanklosko
Copy link
Member

@josevalim to be honest I think it looks better. Deepnote uses monospaced font for the tables too :)

image

image

@cristineguadelupe cristineguadelupe merged commit 0beae8e into livebook-dev:main Feb 8, 2022
@cristineguadelupe cristineguadelupe deleted the cg-ets-tuple branch February 8, 2022 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants