Spaces:
Sleeping
Sleeping
Marc Skov Madsen
commited on
Commit
•
27406e2
1
Parent(s):
ffec32f
document issue
Browse files
app.py
CHANGED
@@ -17,7 +17,8 @@ from numba import jit
|
|
17 |
|
18 |
pn.extension("mathjax", loading_indicator=True, defer_load=True, nthreads=3)
|
19 |
|
20 |
-
|
|
|
21 |
"div, div:hover {background: var(--panel-surface-color); color: current}" if pn.config.theme == "dark" else ""
|
22 |
)
|
23 |
|
@@ -117,7 +118,7 @@ cmap = pn.widgets.ColorMap(
|
|
117 |
swatch_width=100,
|
118 |
sizing_mode="stretch_width",
|
119 |
name="Color Map",
|
120 |
-
stylesheets=[
|
121 |
)
|
122 |
dmap = hv.DynamicMap(
|
123 |
pn.bind(
|
|
|
17 |
|
18 |
pn.extension("mathjax", loading_indicator=True, defer_load=True, nthreads=3)
|
19 |
|
20 |
+
# Hack can be removed when https://github.com/holoviz/panel/issues/7360 has been solved
|
21 |
+
CMAP_CSS_HACK = (
|
22 |
"div, div:hover {background: var(--panel-surface-color); color: current}" if pn.config.theme == "dark" else ""
|
23 |
)
|
24 |
|
|
|
118 |
swatch_width=100,
|
119 |
sizing_mode="stretch_width",
|
120 |
name="Color Map",
|
121 |
+
stylesheets=[CMAP_CSS_HACK],
|
122 |
)
|
123 |
dmap = hv.DynamicMap(
|
124 |
pn.bind(
|