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

Scrollable output cells #232

Open
dstansby opened this issue Jan 3, 2025 · 1 comment
Open

Scrollable output cells #232

dstansby opened this issue Jan 3, 2025 · 1 comment

Comments

@dstansby
Copy link

dstansby commented Jan 3, 2025

For long output cells (over a certain line length I guess), it would be super neat if these could become scrollable boxes to avoid them taking up too much room on a page.

@JoshuaSiraj
Copy link

Work around to do this:

Make a docs/assets/styles.css with:

/* Make Jupyter notebook output cells scrollable */
.jp-Cell-outputWrapper  {
    max-height: 450px; /* Adjust height as needed */
    overflow-y: auto;
    padding: 10px;
    border-radius: 5px;
}

Update mkdocs.yml

extra_css:
  - assets/styles.css

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

No branches or pull requests

2 participants