lots of cleanup
This commit is contained in:
@@ -25,7 +25,7 @@ There are a few services for running `Julia` through the web. Mentioned here is
|
||||
[launch binder](https://mybinder.org/v2/gh/CalculusWithJulia/CwJScratchPad.git/master)
|
||||
|
||||
|
||||
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.
|
||||
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; it has timeout issues, memory limitations, and can be slow to load, as would be expected of a free service.
|
||||
|
||||
|
||||
## Installing Julia locally
|
||||
@@ -49,25 +49,28 @@ The base `Julia` provides a *command-line interface*, or REPL (read-evaluate-par
|
||||
Once installed, `Julia` can be started by clicking on an icon or typing `julia` at the command line. Either will open a *command line interface* for a user to interact with a `Julia` process. The basic workflow is easy: commands are typed then sent to a `Julia` process when the "return" key is pressed for a complete expression. Then the output is displayed.
|
||||
|
||||
|
||||
A command is typed following the *prompt*. An example might be `2 + 2`. To send the command to the `Julia` interpreter the "return" key is pressed. A complete expression or expressions will then be parsed and evaluated (executed). If the expression is not complete, `julia`'s prompt will still accept input to complete the expression. Type `2 +` to see. (The expression `2 +` is not complete, as the infix operator `+` expects two arguments, one on its left and one on its right.)
|
||||
The REPL is shown when `Julia` is started from the command line and has a banner that looks like this:
|
||||
|
||||
|
||||
```{julia}
|
||||
#| eval: false
|
||||
_
|
||||
_ _ _(_)_ | Documentation: https://docs.julialang.org
|
||||
(_) | (_) (_) |
|
||||
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
|
||||
| | | | | | |/ _` | |
|
||||
| | |_| | | | (_| | | Version 1.7.0 (2021-11-30)
|
||||
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|
||||
|__/ |
|
||||
#| echo: false
|
||||
using REPL
|
||||
REPL.banner()
|
||||
```
|
||||
|
||||
|
||||
|
||||
In the REPL a command is typed following the *prompt*. The prompt would look like `julia> `.
|
||||
|
||||
```{julia}
|
||||
#| eval: false
|
||||
julia> 2 + 2
|
||||
4
|
||||
```
|
||||
|
||||
Above, `julia>` is the prompt. These notes will not include the prompt, so that copying-and-pasting can be more easily used. Input and output cells display similarly, though with differences in coloring. For example:
|
||||
In the above, the command (`2+2`) was sent to the the `Julia` interpreter when the "return" key is pressed. A complete expression or expressions will then be parsed and evaluated (executed). If the expression is not complete, `julia`'s prompt will still accept input to complete the expression. Type `2 +` to see. (The expression `2 +` is not complete, as the infix operator `+` expects two arguments, one on its left and one on its right.)
|
||||
|
||||
These notes will not include the prompt, so that copying-and-pasting can be more easily used. Input and output cells display similarly, though with differences in coloring. For example:
|
||||
|
||||
|
||||
```{julia}
|
||||
|
||||
Reference in New Issue
Block a user