use quarto, not Pluto to render pages
This commit is contained in:
@@ -28,7 +28,6 @@ Clicking the launch link above will open a web page which provides a
|
||||
blank notebook, save for a package used by these notes. However,
|
||||
`Binder` is nowhere near as reliable as a local installation.
|
||||
|
||||
These notes use `Pluto` notebooks. The "Edit or run this notebook" button allows each notebook to be run through binder. However, it can take several minutes for binder to show any given notebook. (Binder works best when no or few external packages are used.)
|
||||
|
||||
|
||||
## Installing Julia locally
|
||||
@@ -86,14 +85,16 @@ coloring. For example:
|
||||
2 + 2
|
||||
```
|
||||
|
||||
While many prefer a command line for interacting with `Julia`, when learning a notebook interfaces is suggested. (An IDE like [Julia for Visual Studio Code](https://www.julia-vscode.org/) might be preferred for experienced programmers). In [Julia interfaces](./julia_interfaces.html), we describe two different notebook interfaces that are available through add-on packages. (These notes use `Pluto`, one of the two.)
|
||||
While many prefer a command line for interacting with `Julia`, when learning a notebook interfaces is suggested. (An IDE like [Julia for Visual Studio Code](https://www.julia-vscode.org/) might be preferred for experienced programmers). In [Julia interfaces](./julia_interfaces.html), we describe two different notebook interfaces that are available through add-on packages.
|
||||
|
||||
|
||||
|
||||
## Add-on packages
|
||||
|
||||
`Julia` has well over a 1000 external, add-on packages that enhance the
|
||||
offerings of base `Julia`. We refer to one, `CalculusWithJulia`, that is designed to accompany these notes. [Installation notes](./calculus_with_julia.html) are available.
|
||||
`Julia` is well on its way towards 10,000 external add-on packages
|
||||
that enhance the offerings of base `Julia`. We refer to one,
|
||||
`CalculusWithJulia`, that is designed to accompany these
|
||||
notes. [Installation notes](./calculus_with_julia.html) are available.
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
6
CwJ/misc/using-pluto.jmd
Normal file
6
CwJ/misc/using-pluto.jmd
Normal file
@@ -0,0 +1,6 @@
|
||||
# Using Pluto
|
||||
|
||||
|
||||
|
||||
!!! 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.
|
||||
Reference in New Issue
Block a user