Skip to content

Commit 1a0ee94

Browse files
committed
Edits from comments
1 parent 8ed5e3d commit 1a0ee94

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lectures/software_engineering/tools_editors.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ A key benefit of VS Code is that you can use terminals and command-line interfac
8484

8585
Furthermore, in the case of julia (and other languages such as python) this will activate the project automatically. See the [documentation](https://code.visualstudio.com/docs/editor/integrated-terminal) for more details.
8686

87-
To start a terminal, you can use the `View > Terminal` in the menus, type ``Ctrl+` ``, or click on the bottom bar in VS Code.
87+
You can open the terminal panel with `> View: Toggle Terminal` , typing ``Ctrl+` ``, or by clicking on the list of warnings and errors bottom bar in VS Code. If no existing terminal exists, it will create a new one.
8888

8989

9090
(vscode)=
@@ -235,9 +235,13 @@ There are several ways to start the REPL.
235235

236236
The command line options for starting Julia are set to decent defaults for terminals running within VS Code, but you will want to set them yourself if starting the REPL otherwise.
237237

238-
One common choice is to choose the number of threads that Julia should have available. By default, it is only a single thread, while `--threads auto` will tell Julia to create one for each processor on your machine. VS Code uses `--threads auto` by default.
238+
As an example, the argument `--threads` determines the number of threads that Julia starts with. If starting `julia` on the command line without specifying any arguments, it will default to 1 (or check an environment variable). To have Julia automatically choose the number of threads based on the number of processors for your machine, pass the `--threads auto` argument.
239239

240-
The most important choice is the `--project` toggle which determines whether you want to activate an existing project (or create a new one) when starting the interpreter. Since a key feature of Julia is to have fully reproducible environments, you will want to do this whenever possible.
240+
```{note}
241+
VS Code sets the number of threads automatically based on the number of cores on your machine, but the value can be modified in its `> Preferences: Open User Settings` and then search for `Julia: Num Threads`.
242+
```
243+
244+
The most important choice is the `--project` toggle which determines whether you want to activate an existing project (or create a new one) when starting the interpreter. Since a key feature of Julia is to have fully reproducible environments, you will want to do this whenever possible.
241245

242246
```{note}
243247
A key difference between Julia and some other package managers is that it is capable of having different versions of each package for different projects - which ensures all projects are fully reproducible by you, your future self, and any other collaborators. While there is a global set of packages available (e.g. `IJulia.jl` to ensure Jupyter support) you should try to keep the packages in different projects separated. See the documentation on [environments](https://docs.julialang.org/en/v1/manual/code-loading/#Environments-1) and the [package manager](https://pkgdocs.julialang.org/v1/getting-started/) for more.

0 commit comments

Comments
 (0)