Skip to content

Commit 38b2e91

Browse files
authored
Precisions (#87)
1 parent 1e78021 commit 38b2e91

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

writing/index.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,10 @@ a, b = 1, 2;
9797
a + b
9898
```
9999

100-
This is the standard (Julian) mode of the REPL, but there are three other modes you need to know.
101-
Each mode is entered by typing a specific character after the `julia>` prompt, and can be exited by hitting backspace after the `julia>` prompt.
100+
This is the standard (Julia) mode of the REPL, but there are three other modes you need to know.
101+
Each mode is entered by typing a specific character after the `julia>` prompt.
102+
Once you're in a non-Julia mode, you stay there for every command you run.
103+
To exit it, hit backspace after the prompt and you'll get the `julia>` prompt back.
102104

103105
### Help mode (`?`)
104106

@@ -138,6 +140,8 @@ using Pkg
138140
Pkg.rm("Example")
139141
```
140142

143+
The package mode itself also has a help mode, accessed with `?`, in case you're lost among all these new keywords.
144+
141145
### Shell mode (`;`)
142146

143147
By pressing `;` you enter a terminal, where you can execute any command you want.
@@ -261,7 +265,11 @@ julia> Pluto.run()
261265
As we have seen, Pkg.jl is the Julia equivalent of `pip` or `conda` for Python.
262266
It lets you [install packages](https://pkgdocs.julialang.org/v1/managing-packages/) and [manage environments](https://pkgdocs.julialang.org/v1/environments/) (collections of packages with specific versions).
263267

264-
Once you activate an environment by specifying its path `]activate path`, the packages you `]add` will be listed in two files `path/Project.toml` and `path/Manifest.toml`.
268+
You can activate an environment from the Pkg REPL by specifying its path `]activate somepath`.
269+
Typically, you would do `]activate .` to activate the environment in the current directory.
270+
Another option is to directly start Julia inside an environment, with the command line option `julia --project=somepath`.
271+
272+
Once in an environment, the packages you `]add` will be listed in two files `somepath/Project.toml` and `somepath/Manifest.toml`:
265273

266274
* `Project.toml` contains general project information (name of the package, unique id, authors) and direct dependencies with version bounds.
267275
* `Manifest.toml` contains the exact versions of all direct and indirect dependencies

0 commit comments

Comments
 (0)