use quarto, not Pluto to render pages
This commit is contained in:
@@ -11,33 +11,12 @@ Julia can be used through the internet for free using the [mybinder.org](https:/
|
||||
Just click on the `CalcululsWithJulia.ipynb` file after launching Binder by clicking on the badge. Binder provides the Jupyter interface.
|
||||
|
||||
|
||||
These notes are written as Pluto HTML pages. Pluto is a notebook like alternative to Jupyter which is designed for interactive Julia usage using a *reactive model*. The HTML pages
|
||||
an be downloaded and run as notebooks within Pluto. (They can also be run through binder, but that will be a disappointing experience due to limitations imposed by binder.)
|
||||
Pluto will automatically handle the package management for add-on packages, though `Pluto` itself must be installed. In a terminal session, the following commands will install `Pluto`:
|
||||
|
||||
```julia; eval=false
|
||||
import Pkg
|
||||
Pkg.add("Pluto")
|
||||
```
|
||||
|
||||
Installation happens once. Then each new *session*, `Pluto` must be loaded and run:
|
||||
|
||||
```julia; eval=false
|
||||
using Pluto
|
||||
Pluto.run()
|
||||
```
|
||||
|
||||
`Pluto` notebooks run in a web browser, the above command will open a landing page in the default browser.
|
||||
|
||||
|
||||
|
||||
----
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Here are some `Julia` usages to create calculus objects.
|
||||
|
||||
The `Julia` packages loaded below are all loaded when the `CalculusWithJulia` package is loaded.
|
||||
@@ -84,8 +63,6 @@ f(x) = exp(x) * 2x
|
||||
```
|
||||
|
||||
|
||||
!!! note
|
||||
We see in this notebook the use of `let` blocks, which is not typical with `Pluto`. As `Pluto` is reactive -- meaning changes in a variable propagate automatically to variables which reference the changed one -- a variable can only be used *once* per notebook at the top level. The `let` block, like a function body, introduces a separate scope for the binding so `Pluto` doesn't incorporate the binding in its reactive model. This is necessary as we have more than one function named `f`. This is unlike `begin` blocks, which are quite typical in `Pluto`. The `begin` blocks allow one or more commands to occur in a cell, as the design of `Pluto` is one object per cell.
|
||||
|
||||
* multi-statement functions are defined with the `function` keyword. The `end` statement ends the definition. The last evaluated command is returned. There is no need for explicit `return` statement, though it can be useful for control flow.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user