File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ metadata:
77
88format :
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
1820execute :
1921 freeze : auto
20-
Original file line number Diff line number Diff 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
5371Uncomment and replace with your package to smoke-test imports.
You can’t perform that action at this time.
0 commit comments