Skip to content

Commit

Permalink
Add CSS to allow scrolling of ipywidget (#1760)
Browse files Browse the repository at this point in the history
This addresses one of the issues in #1740: missing horizontal scrollbar.

- Add CSS rule to allow scrolling
- Add ipywidgets example to the examples/pydata page
  • Loading branch information
gabalafou authored May 23, 2024
1 parent bbe3e57 commit 6719f1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ doc = [
"nbsphinx",
"ipyleaflet",
"colorama",
"ipywidgets"
]
test = ["pytest", "pytest-cov", "pytest-regressions"]
dev = ["pyyaml", "pre-commit", "nox", "pydata-sphinx-theme[doc,test]"]
Expand Down
6 changes: 6 additions & 0 deletions src/pydata_sphinx_theme/assets/styles/extensions/_pydata.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@
.xr-wrap[hidden] {
display: block !important;
}

// ipywidgets
.jp-OutputArea-output.lm-Widget {
// override overflow:hidden rule from Lumino (.lm-Widget) to allow scrolling
overflow: auto;
}

0 comments on commit 6719f1c

Please sign in to comment.