Skip to content

Commit 7c6d5b1

Browse files
committed
Modified structure on install packages on the fly (comment: #4518 (comment))
1 parent 68551b2 commit 7c6d5b1

1 file changed

Lines changed: 17 additions & 14 deletions

File tree

docs/docs/10-users/60-compute/50-session/guides/30-install-packages-on-the-fly-in-your-session.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,27 @@
11
# Install packages on-the-fly in your session
22

3+
You can install packages directly in a running session's terminal to try them out right away, without editing project files or rebuilding your environment.
4+
5+
:::note
6+
7+
Packages installed this way:
8+
9+
- Are only available to you and they are lost when you stop and restart the session, so you'll need to reinstall them every time you launch or resume the session.
10+
- Are not shared with anyone else who launches a session from the same launcher.
11+
12+
If you'd like a package to persist and be available to everyone who uses the launcher, add it to your project's environment definition file, rebuild the launcher and restart the session. See [How to create an environment with custom packages installed](../../environment/guides/create-environment-with-custom-packages-installed).
13+
14+
:::
15+
316
**Choose your language:**
417

518
## Python
619

7-
Renku can build an environment based on a Python dependencies file for you (no knowledge of Docker required)!
20+
Open a terminal in your session and run:
821

9-
To get started, see [How to create an environment with custom packages installed](../../environment/guides/create-environment-with-custom-packages-installed).
22+
```bash
23+
pip install <package-name>
24+
```
1025

1126
## R {#r}
1227

@@ -34,12 +49,6 @@ Every time you start or resume the session, install the packages you listed in t
3449
**$** R -f install.R
3550
```
3651

37-
:::note
38-
39-
You need to install the dependencies every time you launch or resume your session.
40-
41-
:::
42-
4352
## conda
4453

4554
If your image uses conda as the python package management system, follow the instructions.
@@ -66,9 +75,3 @@ Install the packages you listed in the dependency file by running the following
6675
```bash
6776
**$** conda env update --file environment.yml --prune
6877
```
69-
70-
:::note
71-
72-
You need to install the dependencies every time you launch or resume your session.
73-
74-
:::

0 commit comments

Comments
 (0)