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: docs/source/configuration/research.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,18 +8,18 @@
8
8
that lets you install any kind of package,
9
9
including Python, R, and C/C++ packages.
10
10
`repo2docker` does not use your `environment.yml` to create and activate a new conda environment.
11
-
Rather, it updates a base conda environment[defined here](https://github.com/jupyterhub/repo2docker/blob/HEAD/repo2docker/buildpacks/conda/environment.yml) with the packages listed in your `environment.yml`.
11
+
Rather, it updates a [pre-defined base conda environment](https://github.com/jupyterhub/repo2docker/blob/HEAD/repo2docker/buildpacks/conda/environment.yml) with the packages listed in your `environment.yml`.
12
12
This means that the environment will always have the same default name, not the name
13
13
specified in your `environment.yml`.
14
14
15
15
:::{note}
16
-
You can install files from pip in your `environment.yml` as well.
17
-
For example, see the [binder-examples environment.yml](https://github.com/binder-examples/python-conda_pip/blob/HEAD/environment.yml) file. See [the `conda` environment management instructions](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-file-manually) for more information.
16
+
You can install files from [PyPI](https://pypi.org/) in your `environment.yml` as well.
17
+
For example, see the [example `environment.yml` file](https://github.com/binder-examples/python-conda_pip/blob/HEAD/environment.yml) file. See [the `conda` environment management instructions](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-file-manually) for more information.
18
18
:::
19
19
20
20
You can also specify which Python version to install in your built environment with `environment.yml`.
21
21
By default, `repo2docker` installs {{ default_python }} with your `environment.yml` unless you include the version of Python in the `environment.yml` of your Git repository.
22
-
`conda` should support all versions of Python, though `repo2docker` support is best with `Python 3.7-3.11`.
22
+
`conda` should support all versions of Python, though `repo2docker` support is best with Python 3.7-3.11.
23
23
24
24
:::{warning}
25
25
If you include a Python version in a `runtime.txt` file in addition to your
@@ -28,7 +28,7 @@ If you include a Python version in a `runtime.txt` file in addition to your
28
28
29
29
(install-r)=
30
30
31
-
## `install.R` - Install packages with R/RStudio
31
+
## `install.R` - Install R packages
32
32
33
33
This is used to install R libraries pinned to a specific snapshot on
Copy file name to clipboardExpand all lines: docs/source/configuration/system.md
+14-11Lines changed: 14 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,20 +2,23 @@
2
2
3
3
(apt-txt)=
4
4
5
-
## `apt.txt` - Install packages with apt-get
5
+
## `apt.txt` - Install packages with `apt-get`
6
6
7
-
A list of Debian packages that should be installed. The base image used is usually the latest released
8
-
version of Ubuntu.
7
+
A list of packages in the [`.deb`](<https://en.wikipedia.org/wiki/Deb_(file_format)>) format that should be installed. The `.deb` files are downloaded from the server configured in the Docker base image.
8
+
9
+
```{note}
10
+
If a `Dockerfile` is not used to change the Docker base image, the base image is [Ubuntu](https://ubuntu.com/) [22.04 LTS (Jammy Jellyfish)](https://releases.ubuntu.com/jammy/). All `.deb` files availables are listed in [Ubuntu Packages](https://packages.ubuntu.com/jammy/).
11
+
```
9
12
10
13
We use `apt.txt`, for example, to install LaTeX in our
11
-
[example apt.txt for LaTeX](https://github.com/binder-examples/latex/blob/HEAD/apt.txt).
14
+
[example `apt.txt` file for LaTeX](https://github.com/binder-examples/latex/blob/HEAD/apt.txt).
12
15
13
16
(runtime-txt)=
14
17
15
18
## `runtime.txt` - Specifying runtimes
16
19
17
20
Sometimes you want to specify the version of the runtime (e.g. the version of Python or R), but the environment specification format will not let you specify this information (e.g. `requirements.txt` or `install.R`).
18
-
For these cases, we have a special file, `runtime.txt`.
21
+
For these cases, we have a special `runtime.txt` file.
19
22
20
23
:::{warning}
21
24
`runtime.txt` is only supported when used with environment specifications
@@ -25,23 +28,23 @@ that do not already support specifying the runtime
25
28
26
29
### Set the Python version
27
30
28
-
Add the line `python-x.y` in `runtime.txt` to run the repository with Python version x.y.
31
+
Add the line `python-x.y` in `runtime.txt` to run the repository with Python version `x.y`.
29
32
See our [Python2 example repository](https://github.com/binder-examples/python2_runtime/blob/HEAD/runtime.txt).
30
33
31
34
### Set the R version
32
35
33
-
Add the line `r-<RVERSION>-<YYYY>-<MM>-<DD>` in `runtime.txt` to run the repository with R version `RVERSION` and libraries from a `YYYY-MM-DD` snapshot of the [Posit Package Manager](https://packagemanager.posit.co/client/#/repos/2/overview).
36
+
Add the line `r-x.y-YYYY-MM-DD` in `runtime.txt` to run the repository with R version `x.y` and libraries from a `YYYY-MM-DD` snapshot of the [Posit Package Manager](https://packagemanager.posit.co/client/#/repos/2/overview).
34
37
35
-
`RVERSION` can be set to 3.4, 3.5, 3.6, or to patch releases for the 3.5 and 3.6 series.
38
+
The version of R, i.e. `x.y`, can be set to 3.4, 3.5, 3.6, or to patch releases for the 3.5 and 3.6 series.
36
39
If you do not specify a version, the latest release will be used.
37
40
38
41
See our [R example repository](https://github.com/binder-examples/r/blob/HEAD/runtime.txt).
39
42
40
43
(default-nix)=
41
44
42
-
## `default.nix` - the nix package manager
45
+
## `default.nix` - the `nix` package manager
43
46
44
-
Specify packages to be installed by the [nix package manager](https://github.com/NixOS/nixpkgs).
47
+
Specify packages to be installed by the [`nix` package manager](https://github.com/NixOS/nixpkgs).
45
48
When you use this config file all other configuration files (like `requirements.txt`)
46
49
that specify packages are ignored. When using `nix` you have to specify all
47
50
packages and dependencies explicitly, including the Jupyter notebook package that
@@ -54,7 +57,7 @@ a `nix` expression written in a `default.nix` file. Make sure to
0 commit comments