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: writing/index.md
+11-3Lines changed: 11 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,8 +97,10 @@ a, b = 1, 2;
97
97
a + b
98
98
```
99
99
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.
102
104
103
105
### Help mode (`?`)
104
106
@@ -138,6 +140,8 @@ using Pkg
138
140
Pkg.rm("Example")
139
141
```
140
142
143
+
The package mode itself also has a help mode, accessed with `?`, in case you're lost among all these new keywords.
144
+
141
145
### Shell mode (`;`)
142
146
143
147
By pressing `;` you enter a terminal, where you can execute any command you want.
@@ -261,7 +265,11 @@ julia> Pluto.run()
261
265
As we have seen, Pkg.jl is the Julia equivalent of `pip` or `conda` for Python.
262
266
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).
263
267
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`:
265
273
266
274
*`Project.toml` contains general project information (name of the package, unique id, authors) and direct dependencies with version bounds.
267
275
*`Manifest.toml` contains the exact versions of all direct and indirect dependencies
0 commit comments