Skip to content

Side panel proposal #2251

@josevalim

Description

@josevalim

Hey guys, thanks for the amazing work you are doing here. I truly appreciate it :)

I had a similar concern, which Jose pointed out was being discussed here.

Given that it's stiiiill not merged, I have a UX proposal for your consideration:

PROBLEM: It was my experience, learning Ash framework using their Livebook tutorial series, that most of the output felt too verbose, and it was a detriment in the top to bottom reading & learning experience. I often would rapidly scroll up and down avoiding the code results, and I see this particular issue is not being addressed by the current implementation.

(POSSIBLE) SOLUTION: Add a block feature flag that indicates how a particular block should render by default (settable also on a per Livebook basis). This way Livebooks authors can decide as a blank statement, how the document should be read, but also giving the reader the possibility to revert the author's decision.

livebook_sidepanel

By choosing "Sidepanel" on the added options to the dropdown on the image above, what I'm intending to happen is: when you press (re)evaluate, still print something downwards, but make it as minimal as possible while still making it expandable on command.

To achieve this, you'd need a new toggle state for what I'm calling bottom results. For that, here's a solution that comes in handy, even if you don't implement the proposed solution to the original problem (Reader can hide output):

new_results

With all this in place, when running an evaluation that had "Sidepanel" as it's output option, readers would see something like this:

final_result

Originally posted by @fceruti in #2109 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:frontendRelated to UI/UXdiscussionNeeds to be discussed before moving forwardfeatureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions