Skip to content

Commit 8aec739

Browse files
gabalafouivanov
authored andcommitted
Add CSS to allow scrolling of ipywidget (pydata#1760)
This addresses one of the issues in pydata#1740: missing horizontal scrollbar. - Add CSS rule to allow scrolling - Add ipywidgets example to the examples/pydata page
1 parent 2366ee9 commit 8aec739

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ doc = [
7676
"nbsphinx",
7777
"ipyleaflet",
7878
"colorama",
79+
"ipywidgets"
7980
]
8081
test = ["pytest", "pytest-cov", "pytest-regressions"]
8182
dev = ["pyyaml", "pre-commit", "nox", "pydata-sphinx-theme[doc,test]"]

src/pydata_sphinx_theme/assets/styles/extensions/_pydata.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@
66
.xr-wrap[hidden] {
77
display: block !important;
88
}
9+
10+
// ipywidgets
11+
.jp-OutputArea-output.lm-Widget {
12+
// override overflow:hidden rule from Lumino (.lm-Widget) to allow scrolling
13+
overflow: auto;
14+
}

0 commit comments

Comments
 (0)