Skip to content

Commit 6a46a63

Browse files
Merge pull request #114 from SylvainCorlay/update-ipywidgets-7.5
Make use of CSS variables
2 parents 9133153 + 61e796a commit 6a46a63

File tree

4 files changed

+94
-101
lines changed

4 files changed

+94
-101
lines changed

js/package-lock.json

Lines changed: 90 additions & 97 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"webpack": "^3.5.5"
2828
},
2929
"dependencies": {
30-
"@jupyter-widgets/base": "^1.1.0 || ^2.0.0",
30+
"@jupyter-widgets/base": "^2.0.0",
3131
"css-loader": "^3.0.0",
3232
"lodash": "^4.17.4",
3333
"style-loader": "^0.23.1"

js/src/mpl_widget.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/* Toolbar */
77

88
.jupyter-matplotlib-button {
9-
width: 34px; /* calc(var(--jp-widgets-inline-width-tiny) / 2 - 2px) */
9+
width: calc(var(--jp-widgets-inline-width-tiny) / 2 - 2px);
1010
padding: 0;
1111
}
1212

@@ -23,5 +23,5 @@
2323
}
2424

2525
.jupyter-matplotlib-canvas_div:focus {
26-
outline: 1px solid; /* 1px solid var(--jp-widgets-input-focus-border-color); */
26+
outline: 1px solid var(--jp-widgets-input-focus-border-color);
2727
}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def run(self):
155155
'data_files': get_data_files(),
156156
'install_requires': [
157157
'ipykernel>=4.7',
158-
'ipywidgets>=7.0.0',
158+
'ipywidgets>=7.5.0',
159159
'matplotlib>=2.0.0'
160160
],
161161
'packages': find_packages(),

0 commit comments

Comments
 (0)