-
Notifications
You must be signed in to change notification settings - Fork 54
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
Comments
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.ymlextra_css:
- assets/styles.css |
Thanks! Do you know if there's a way to make add a horizontal scroll bar if text is too long? |
Np. I've tried and can't seem to get that to work. |
Try this: plugins:
- search
- mkdocs-jupyter:
highlight_extra_classes: jupyter-custom-highlight Custom css that you add through mkdocs .jupyter-custom-highlight .jp-OutputArea-area > pre {
white-space: pre;
} |
@danielfrg do you agree that this behavior is so desirable that it should be toggleable via plugin setting? |
I try to avoid to prescribe these things but I think its a FAQ, its worth to have a solution described in the readme instead of having it in the code IMO. Those things break between versions sometimes and its hard to test them all. |
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.
The text was updated successfully, but these errors were encountered: