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
Use Pluto tree viewer for Set data type (issue 893) #926
Conversation
Hey @vladflore, the code so far looks good! Can you post a screenshot? |
Yes, I can do that, will do it a bit later this day though :) |
Here is a Let me know if you need anything else. Best, |
Thanks! It looks like you made all the necessary changes to the backend (Julia), but we still need to change the appearance, so that people can tell that the object is a set, and not an array. Of course, our main inspiration is the julia REPL, where sets are displayed like: julia> Set([1,2,3]) |> print # 'non-verbose' mode
Set([2, 3, 1])
julia> Set([1,2,3]) # 'verbose' mode
Set{Int64} with 3 elements:
2
3
1 I think that our collapsed form should look exactly like the non-verbose mode, i.e. Secondly, when expanded, we should not show the indices ( @vladflore To figure out how to do this, try to find out how Pluto displays the prefix, begin, end, delimiter and indices for arrays and dictionaries. Take a look at |
Also, can you test this on a Make sure that the elements are truncated, and that you can click to see more items. (Just like with the vector Tag me with @fonsp when you want to discuss~ |
Hey @fonsp , I made the changes you mentioned. Thanks for the tips and hints! Please have a look when you have the time and let me know if I need to change something else. Here is a gif of the current status: Best, |
Really nice, thanks @vladflore ! What do you want to work on next? 🌝 |
Released in Pluto 0.14! |
Hey @fonsp ,
When you get to this please have a look and let me know if this PR is on the right track or is already a total mess :).
This PR relates to issue #893
Thanks,
Vlad