-
Notifications
You must be signed in to change notification settings - Fork 426
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
Add output panel #2109
base: main
Are you sure you want to change the base?
Add output panel #2109
Conversation
Uffizzi Ephemeral Environment
|
Some open questions:
<div class="grid grid-cols-1 md:grid-cols-6">
<div :for={output <- outputs} class={"col-span-#{output.width}"}
<%= output.content %>
</div>
</div> |
Sorry if that wasn't clear, we still need the move button, the outputs can be cherry-picked and rearranged. It's just that rather than an arbitrary grid, we want it to be a flow of rows, with an option to put several outputs in a single row.
I think we should be fine without a library, yeah, unless it turns out there's some specific complexity that a library could handle.
I would add a field to
Whatever is more convenient. I think on small screens we will just make every row into a column, so each output takes the whole width. |
Implemented Drag&Drop for reordering the rows: screen-capture.10.webm |
@jannikbecher sweet! For the DND reordering we probably don't want to move the whole element, because I'm pretty sure it's not going to work well with the absolutely positioned iframes. Instead, we can drag a placeholder element, similar to this. |
Something like this? screen-capture.11.webm |
Added multi column support :) multi_column_showcase.mp4 |
We pushed Livebook v0.11 to after ElixirConf US, so we have a month until next release, so no rush from our side :) |
Hi @jannikbecher! Just a heads up our release probably be on the week of Sep 18th. However we will likely be tidying up features in the week of Sep 11th. :) |
hey @josevalim. Thanks for the update. |
@jannikbecher this looks amazing. I have bunch of nitpicks for us to iron out the final details (fwiw I have tested these on Firefox).
I have navigated https://datasciencenotebook.org/ looking for inspirations and I think Hex' App Builder is the closest to what you are building, in case you are looking for inspiration in this final stretch. :) |
Continuing:
@jonatanklosko, quick question for you: what do we do with the placement of the export button (login/logout icons)? Currently it is on the right, but we have avoided adding icons to the right so the delete icon is always aligned. At the same time, I think on the right is the best place. What to do? Maybe we should allow Markdown to be sent to the output pane too? 🤐 It would make things consistent but maybe way more complex. |
Fantastic! 🚀
panel_duplicate.mov
panel_iframe.mov
@josevalim I wouldn't allow markdown. It is additional complexity and since it's "output panel" allowing only outputs makes more sense (we could say rendered markdown is markdown cell's output, but I don't like blurring that boundary). I see why the rightmost placement makes sense, but at the same time putting it next to the trash icon isn't necessarily the best, because if people are using it often it's more likely they will accidentally remove cells. I'm fine placing it before the link icon to keep the alignment we've maintained so far. |
@jonatanklosko alright. let's leave the button where it is for now and we can bikeshed after merging. :) |
Hi @jannikbecher, just a quick check to see where we are at. :) If you want to us to wrap it up, feel free to let us know too :) |
hey @josevalim :) sorry for the late response. |
No worries, we just did the priorization for Livebook v0.11 and this feature can wait until v0.12 if you need more time. :) |
(created a new PR since upstream had some changes and new implementation differs a lot from the initial one)