22title : " Julia Showcase (Hello World)"
33engine : julia
44format : revealjs
5- # Thebe config to make code blocks live via Binder
6- include-in-header :
7- text : |
8- <script type="text/x-thebe-config">
9- {
10- "requestKernel": true,
11- "binderOptions": {
12- "repo": "Electa-Git/LineCableModels.jl",
13- "ref": "HEAD",
14- "repoProvider": "github"
15- },
16- "kernelOptions": { "name": "julia-1.11", "path": "." },
17- "selector": "[data-executable]"
18- }
19- </script>
205---
216
227# Hello
@@ -29,44 +14,21 @@ println("Hello, world from Julia $(VERSION)")
2914
3015---
3116
32- # Live cell (click “Activate”)
17+ # A simple computation
3318
34- After the deck loads, hit ** Activate ** (Thebe) → Binder spins up a Julia kernel → run :
19+ This is rendered at build time (if execution is enabled) :
3520
3621``` {julia}
37- #| thebe: true
38- #| eval: false
39- # Minimal "computation" to prove execution
4022sum(i^2 for i in 1:10), prod(i for i in 1:5)
4123```
4224
4325---
4426
45- # Activate Kernel (if needed )
27+ # Your package hook (static )
4628
47- If you don’t see Thebe’s Activate control, click the button below:
48-
49- <button id =" thebe-activate " style =" padding :8px 12px ; font-size :0.9rem ;" >Activate (start Binder)</button >
50- <script >
51- window .addEventListener (' DOMContentLoaded' , () => {
52- const btn = document .getElementById (' thebe-activate' );
53- if (btn && window .thebe ) {
54- btn .addEventListener (' click' , async () => {
55- try { await thebe .bootstrap (); btn .textContent = ' Activated' ; } catch (e) { console .error (e); btn .textContent = ' Activation failed' ; }
56- });
57- }
58- });
59- </script >
60-
61- ---
62-
63- # Your package hook (optional live)
64-
65- Uncomment and replace with your package to smoke-test imports.
29+ Uncomment and replace with your package to smoke-test imports locally:
6630
6731``` {julia}
68- #| thebe: true
69- #| eval: false
7032# using YourPackage
7133# YourPackage.versioninfo()
7234"ready"
@@ -80,30 +42,14 @@ Uncomment and replace with your package to smoke-test imports.
8042
8143---
8244
83- # Pluto Widget (live)
84-
85- If Thebe feels limited for UI widgets, here is a Pluto cell embedded via Binder. First load can take a minute.
45+ # Pluto (live, new tab)
8646
87- <iframe
88- class="pluto-frame"
89- src="https://mybinder.org/v2/gh/Electa-Git/LineCableModels.jl/HEAD?urlpath=pluto/open?path=docs/showcase/pluto/hello.jl "
90- loading="lazy"
91- > </iframe >
47+ Open these Pluto notebooks on Binder (first launch can take a few minutes):
9248
93- If the frame doesn't load, open in a new tab:
94-
95- [ Open Pluto on Binder ] ( https://mybinder.org/v2/gh/Electa-Git/LineCableModels.jl/HEAD?urlpath=pluto/open?path=docs/showcase/pluto/hello .jl )
49+ - Hello demo: https://mybinder.org/v2/gh/Electa-Git/LineCableModels.jl/HEAD?urlpath=pluto/open?path=docs/showcase/pluto/hello.jl
50+ - Plot demo: https://mybinder.org/v2/gh/Electa-Git/LineCableModels.jl/HEAD?urlpath=pluto/open?path=docs/showcase/pluto/plot.jl
51+ - Showcase: https://mybinder.org/v2/gh/Electa-Git/LineCableModels.jl/HEAD?urlpath=pluto/open?path=docs/showcase/pluto/showcase .jl
9652
9753---
9854
99- # Pluto Plot (live)
100-
101- Interactive plot using Plots.jl inside Pluto.
102-
103- <iframe
104- class="pluto-frame"
105- src="https://mybinder.org/v2/gh/Electa-Git/LineCableModels.jl/HEAD?urlpath=pluto/open?path=docs/showcase/pluto/plot.jl "
106- loading="lazy"
107- > </iframe >
108-
109- [ Open Pluto Plot on Binder] ( https://mybinder.org/v2/gh/Electa-Git/LineCableModels.jl/HEAD?urlpath=pluto/open?path=docs/showcase/pluto/plot.jl )
55+ ---
0 commit comments