Skip to content

Commit d98ce84

Browse files
committed
fix live_info css
1 parent d9aaa49 commit d98ce84

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

adaptive/notebook_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def _info_html(runner):
176176
with suppress(Exception):
177177
info.append(('latest loss', f'{runner.learner._cache["loss"]:.3f}'))
178178

179-
template = '<dt>{}</dt><dd>{}</dd>'
179+
template = '<dt class="ignore-css">{}</dt><dd>{}</dd>'
180180
table = '\n'.join(template.format(k, v) for k, v in info)
181181

182182
return f'''

docs/source/_static/custom.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.ignore-css{all:unset !important;}

docs/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,4 +148,5 @@ def setup(app):
148148
for url in css:
149149
app.add_stylesheet(url)
150150

151+
app.add_stylesheet('custom.css') # For the `live_info` widget
151152
app.add_javascript("https://unpkg.com/@jupyter-widgets/[email protected]/dist/embed-amd.js")

docs/source/tutorial/tutorial.Learner1D.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ background with a sharp peak at a random location:
3939

4040
a = 0.01
4141
if wait:
42-
sleep(random())
42+
sleep(random() / 10)
4343
return x + a**2 / (a**2 + (x - offset)**2)
4444

4545
We start by initializing a 1D “learner”, which will suggest points to

0 commit comments

Comments
 (0)