Skip to content

Commit 65b4607

Browse files
fix(showcase): update repository configuration and kernel options in slides
1 parent 28ed908 commit 65b4607

2 files changed

Lines changed: 22 additions & 3 deletions

File tree

docs/showcase/slides/_quarto.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ metadata:
77

88
format:
99
revealjs:
10+
thebe: true
11+
code-tools: true
1012
theme: [default, assets/corporate.scss]
1113
slide-number: true
1214
controls: true
@@ -17,4 +19,3 @@ format:
1719

1820
execute:
1921
freeze: auto
20-

docs/showcase/slides/index.qmd

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ include-in-header:
88
{
99
"requestKernel": true,
1010
"binderOptions": {
11-
"repo": "{{< meta repo_nwo >}}",
11+
"repo": "Electa-Git/LineCableModels.jl",
1212
"ref": "HEAD",
1313
"repoProvider": "github"
1414
},
15-
"kernelOptions": { "name": "julia", "path": "." },
15+
"kernelOptions": { "name": "julia-1.10", "path": "." },
1616
"selector": ".thebe-cell"
1717
}
1818
</script>
@@ -48,6 +48,24 @@ sum(i^2 for i in 1:10), prod(i for i in 1:5)
4848

4949
---
5050

51+
# Activate Kernel (if needed)
52+
53+
If you don’t see Thebe’s Activate control, click the button below:
54+
55+
<button id="thebe-activate" style="padding:8px 12px; font-size:0.9rem;">Activate (start Binder)</button>
56+
<script>
57+
window.addEventListener('DOMContentLoaded', () => {
58+
const btn = document.getElementById('thebe-activate');
59+
if (btn && window.thebe) {
60+
btn.addEventListener('click', async () => {
61+
try { await thebe.bootstrap(); btn.textContent = 'Activated'; } catch (e) { console.error(e); btn.textContent = 'Activation failed'; }
62+
});
63+
}
64+
});
65+
</script>
66+
67+
---
68+
5169
# Your package hook (optional live)
5270

5371
Uncomment and replace with your package to smoke-test imports.

0 commit comments

Comments
 (0)