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

Support truncated notebook output commands #13555

Merged
merged 3 commits into from
Apr 4, 2024

Conversation

jonah-iden
Copy link
Contributor

What it does

When a text ouput is to long the notebook renders display a message like "Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings..."

This PR makes the scrollable element, text editor and settings links in that message working.

How to test

Open a notebook and add a cell like

for i in range(1,100): 
    print('gffff' + str(i))

execute and test the links in the Output is truncated message

Follow-ups

The scrollable element is currently just expanding the output. The correct max height needs to be calculated later based on the settings.
There are also currently no settings to change the max display size

Review checklist

Reminder for reviewers

…as scrollable element, open settings)

Signed-off-by: Jonah Iden <jonah.iden@typefox.io>
@jonah-iden jonah-iden requested a review from msujew April 3, 2024 07:59
Signed-off-by: Jonah Iden <jonah.iden@typefox.io>
@msujew msujew changed the title made notebook truncated output commands working Support truncated notebook output commands Apr 3, 2024
Copy link
Member

@msujew msujew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks good to me 👍

Co-authored-by: Mark Sujew <mark.sujew@typefox.io>
@jonah-iden jonah-iden merged commit a77ba54 into master Apr 4, 2024
13 of 14 checks passed
@jonah-iden jonah-iden deleted the jiden/notebook-truncated-output-commands branch April 4, 2024 12:25
@github-actions github-actions bot added this to the 1.49.0 milestone Apr 4, 2024
@msujew msujew added the notebook issues related to notebooks label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notebook issues related to notebooks
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants