You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/installation.md
+19-15Lines changed: 19 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,8 @@ layout: "md.jlmd"
7
7
8
8
$(
9
9
begin
10
+
# these special elements will automatically update to read the latest Julia version. See the JavaScript snippet at the bottom of this page to see how it works!
11
+
10
12
version = html"<auto-julia-version>1.7.2</auto-julia-version>"
Next we will install the [**Pluto notebook**](https://github.com/fonsp/Pluto.jl/blob/master/README.md) that we will be using during the course. Pluto is a Julia _programming environment_ designed for interactivity and quick experiments.
44
+
Next we will install the [**Pluto**](https://github.com/fonsp/Pluto.jl), the notebook environment that we will be using during the course. Pluto is a Julia _programming environment_ designed for interactivity and quick experiments.
43
45
44
46
Open the **Julia REPL**. This is the command-line interface to Julia, similar to the previous screenshot.
45
47
46
48
Here you type _Julia commands_, and when you press ENTER, it runs, and you see the result.
47
49
48
50
To install Pluto, we want to run a _package manager command_. To switch from _Julia_ mode to _Pkg_ mode, type `]` (closing square bracket) at the `julia>` prompt:
49
-
```julia
51
+
52
+
<pre><code>
50
53
julia> ]
51
54
52
-
(@v1.x) pkg>
53
-
```
55
+
(@v$(pkg_version)) pkg>
56
+
</code></pre>
54
57
55
58
The line turns blue and the prompt changes to `pkg>`, telling you that you are now in _package manager mode_. This mode allows you to do operations on **packages** (also called libraries).
56
59
57
60
To install Pluto, run the following (case sensitive) command to *add* (install) the package to your system by downloading it from the internet.
58
61
You should only need to do this *once* for each installation of Julia:
59
62
60
-
```julia
61
-
(@v1.x) pkg> add Pluto
62
-
```
63
+
<pre><code>
64
+
(@v$(pkg_version)) pkg> add Pluto
65
+
</code></pre>
63
66
64
67
This might take a couple of minutes, so you can go get yourself a cup of tea!
65
68
@@ -87,9 +90,9 @@ julia> Pluto.run()
87
90
88
91
The terminal tells us to go to `http://localhost:1234/` (or a similar URL). Let's open Firefox or Chrome and type that into the address bar.
> If you're curious about what a _Pluto notebook_ looks like, have a look at the **sample notebooks**. Samples 1, 2 and 6 may be useful for learning some basics of Julia programming.
95
+
> If you're curious about what a _Pluto notebook_ looks like, have a look at the **Featured Notebooks**. These notebooks are useful for learning some basics of Julia programming.
93
96
>
94
97
> If you want to hear the story behind Pluto, have a look a the [JuliaCon presentation](https://www.youtube.com/watch?v=IAF8DjrQSSk).
95
98
@@ -117,11 +120,11 @@ Next, we need to know the _absolute path_ of that folder. Here's how you do that
117
120
118
121
For example, you might have:
119
122
120
-
-`C:\\Users\\fonsi\\Documents\\18S191_assignments\\` on Windows
123
+
-`C:\\Users\\fons\\Documents\\18S191_assignments\\` on Windows
121
124
122
-
-`/Users/fonsi/Documents/18S191_assignments/` on MacOS
125
+
-`/Users/fons/Documents/18S191_assignments/` on MacOS
123
126
124
-
-`/home/fonsi/Documents/18S191_assignments/` on Ubuntu
127
+
-`/home/fons/Documents/18S191_assignments/` on Ubuntu
125
128
126
129
Now that we know the absolute path, go back to your Pluto notebook, and at the top of the page, click on _"Save notebook..."_.
127
130
@@ -138,7 +141,7 @@ Click _Choose_.
138
141
After working on your notebook (your code is autosaved when you run it), you will find your notebook file in the folder we created in step 3. This the file that you can share with others, or submit as your homework assignment to Canvas.
0 commit comments