Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ disableKinds = ['taxonomy', 'term', 'rss', 'sitemap', '404']
lib = "notebook"
state = "notebook v0.4.0"
live = true
playground = "https://go-notebook.github.io/playground/"
brand = true
blurb = "A notebook is a Markdown file whose <code>go</code> and <code>ruby</code> blocks are cells. The kernel compiles it into a real Go program, orders the cells of both languages by what they use, and runs only what changed, keeping values across runs. Ruby cells run on go-embedded-ruby, with the go-scikit bindings."
[[params.orgs]]
Expand Down
2 changes: 1 addition & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ <h2>A first notebook, <i>in four commands</i>.</h2>
<span class="c-com"># notebook html first.md writes first.html
# notebook serve first.md the same, live in the browser, editable</span></pre>
</div>
<p class="lead">Run it again and every cell is <i>kept</i>: a cell whose code and inputs did not change is not run again, across runs. The <a href="https://go-notebook.github.io/docs/"><u>go-notebook documentation</u></a> gives the cell rules; to try the arrays and the transforms without installing anything, the <a href="https://go-ndarray.github.io/playground/"><u>go-ndarray</u></a> and <a href="https://go-fft.github.io/playground/"><u>go-fft</u></a> playgrounds run them compiled to WebAssembly in the browser, and the <a href="https://go-statistics.github.io/playground/"><u>go-statistics</u></a> and <a href="https://go-numerics.github.io/playground/"><u>go-numerics</u></a> playgrounds run whole notebooks there, Go and Ruby cells alike: edit the cells, run them, see the figures.</p>
<p class="lead">Run it again and every cell is <i>kept</i>: a cell whose code and inputs did not change is not run again, across runs. The <a href="https://go-notebook.github.io/docs/"><u>go-notebook documentation</u></a> gives the cell rules; to try the arrays and the transforms without installing anything, the <a href="https://go-ndarray.github.io/playground/"><u>go-ndarray</u></a> and <a href="https://go-fft.github.io/playground/"><u>go-fft</u></a> playgrounds run them compiled to WebAssembly in the browser, and the <a href="https://go-notebook.github.io/playground/"><u>go-notebook</u></a>, <a href="https://go-statistics.github.io/playground/"><u>go-statistics</u></a> and <a href="https://go-numerics.github.io/playground/"><u>go-numerics</u></a> playgrounds run whole notebooks there, Go and Ruby cells alike: edit the cells, run them, see the figures.</p>
<p class="lead">A <code>ruby</code> cell runs on <a href="https://github.com/go-embedded-ruby"><u>go-embedded-ruby</u></a>, a Ruby written in Go, so the notebook stays one Go program with no Ruby to install. It sees the values the Go cells above it defined (here <code>x</code>, a Go <code>[]float64</code>), and the Go cells below it see what it defines; the kernel orders and re-runs cells of both languages by what they use. From Ruby, the stack is reached through <a href="https://github.com/go-scikit/ruby"><u>go-scikit/ruby</u></a>, which the kernel adds by itself: <code>Stats</code>, <code>Special</code>, <code>Optimize</code>, <code>Integrate</code>, <code>DataFrame</code> and <code>Plot</code> call the same Go functions, with the same answers. The <a href="https://go-notebook.github.io/docs/latest/ruby/"><u>Ruby cells page</u></a> gives the rules, and the <code>-timeout</code> and <code>-memory</code> limits that stop a runaway cell.</p>
</div></section>

Expand Down
Loading