@@ -124,78 +124,78 @@ instructions.
124124
125125# # Install Julia
126126
127+ Some ESMValTool diagnostics are written in the Julia programming language.
128+ If you want a full installation of ESMValTool including Julia diagnostics, you need
129+ to make sure Julia is installed before installing ESMValTool.
130+
131+ In this tutorial, we will not use Julia, but for reference, we have listed the steps
132+ to install Julia below.
127133Complete instructions for installing Julia can be found on the [Julia
128134installation page](https://julialang.org/downloads/platform/# linux_and_freebsd).
129- In this tutorial, we will use the following steps. First, open a bash terminal
130- and create a directory to install Julia in and cd into it
131-
132- ` ` ` bash
133- mkdir ~ /julia
134- cd ~ /julia
135- ` ` `
136-
137- Next, to download and extract the file ` julia-1.0.5-linux-x86_64.tar.gz` , you can use the following commands::
138-
139- ` ` ` bash
140- wget https://julialang-s3.julialang.org/bin/linux/x64/1.0/julia-1.0.5-linux-x86_64.tar.gz
141- tar -xvzf julia-1.0.5-linux-x86\_ 64.tar.gz
142- ` ` `
143-
144- This will extract the files to a directory named ` ~/julia/julia-1.0.5` . To run
145- Julia, you need to add the full path of Julia' s `bin` folder to PATH environment
146- variable. To do this, you can edit the `~/.bashrc` (or `~/.bash_profile`) file.
147- Open the file in a text editor called ``nano``:
148-
149- ```bash
150- nano ~/.bashrc
151- ```
152-
153- and add a new line as follows at the
154- bottom of the file:
155-
156- ```bash
157- export PATH="$PATH:$HOME/julia/julia-1.0.5/bin"
158- ```
159-
160- Finally, for the settings to take effect, either reload your bash profile
161-
162- ```bash
163- source ~/.bashrc
164- ```
165-
166- (or `source ~/.bash_profile`), or close the bash terminal window and open a new
167- one.
168-
169- To check that the Julia executable can be found, run
170-
171- ```bash
172- which julia
173- ```
174-
175- to display the path to the Julia executable, it should be
176135
177- ```
178- ~/julia/julia-1.0.5/bin/julia
179- ```
180- {: .output}
181-
182- To test that Julia is installed correctly, run
183-
184- ```bash
185- julia
186- ```
187-
188- to start the interactive Julia interpreter. Press `Ctrl+D` to exit.
189-
190- > ## Text editor side note
136+ > # # Julia installation instructions
191137>
192- > No matter what editor you use, you will need to know where it searches
193- > for and saves files. If you start it from the shell, it will (probably)
194- > use your current working directory as its default location. We use ``nano``
195- > in examples here because it is one of the least complex text editors.
196- > Press <kbd>ctrl</kbd> + <kbd>O</kbd> to save the file,
197- > and then <kbd>ctrl</kbd> + <kbd>X</kbd> to exit ``nano``.
198- {: .callout}
138+ > First, open a bash terminal and create a directory to install Julia in and cd
139+ > into it
140+ >
141+ > ` ` ` bash
142+ > mkdir ~ /julia
143+ > cd ~ /julia
144+ > ` ` `
145+ >
146+ > Next, to download and extract the file ` julia-1.0.5-linux-x86_64.tar.gz` , you can use the following commands::
147+ >
148+ > ` ` ` bash
149+ > wget https://julialang-s3.julialang.org/bin/linux/x64/1.0/julia-1.0.5-linux-x86_64.tar.gz
150+ > tar -xvzf julia-1.0.5-linux-x86\_ 64.tar.gz
151+ > ` ` `
152+ >
153+ > This will extract the files to a directory named ` ~/julia/julia-1.0.5` . To run
154+ > Julia, you need to add the full path of Julia' s `bin` folder to PATH environment
155+ > variable. To do this, you can edit the `~/.bashrc` (or `~/.bash_profile`) file.
156+ > Open the file in a text editor called ``nano``:
157+ >
158+ > ```bash
159+ > nano ~/.bashrc
160+ > ```
161+ >
162+ > and add a new line as follows at the
163+ > bottom of the file:
164+ >
165+ > ```bash
166+ > export PATH="$PATH:$HOME/julia/julia-1.0.5/bin"
167+ > ```
168+ >
169+ > Finally, for the settings to take effect, either reload your bash profile
170+ >
171+ > ```bash
172+ > source ~/.bashrc
173+ > ```
174+ >
175+ > (or `source ~/.bash_profile`), or close the bash terminal window and open a new
176+ > one.
177+ >
178+ > To check that the Julia executable can be found, run
179+ >
180+ > ```bash
181+ > which julia
182+ > ```
183+ >
184+ > to display the path to the Julia executable, it should be
185+ >
186+ > ```
187+ > ~/julia/julia-1.0.5/bin/julia
188+ > ```
189+ > {: .output}
190+ >
191+ > To test that Julia is installed correctly, run
192+ >
193+ > ```bash
194+ > julia
195+ > ```
196+ >
197+ > to start the interactive Julia interpreter. Press `Ctrl+D` to exit.
198+ {: .solution}
199199
200200## Install the ESMValTool package
201201
0 commit comments