diff options
author | Arnout Engelen <arnout@bzzt.net> | 2023-11-09 21:48:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-09 21:48:05 +0100 |
commit | 97b0ae26f7c8a1682b5437a64edcd73ab1798c9b (patch) | |
tree | b7a421f5dd7358d9c2099c4717aa49525addc700 /doc/languages-frameworks/python.section.md | |
parent | 3dc0248dbc70fdba6d1a668ed00b4678dfae098c (diff) | |
download | nixlib-97b0ae26f7c8a1682b5437a64edcd73ab1798c9b.tar nixlib-97b0ae26f7c8a1682b5437a64edcd73ab1798c9b.tar.gz nixlib-97b0ae26f7c8a1682b5437a64edcd73ab1798c9b.tar.bz2 nixlib-97b0ae26f7c8a1682b5437a64edcd73ab1798c9b.tar.lz nixlib-97b0ae26f7c8a1682b5437a64edcd73ab1798c9b.tar.xz nixlib-97b0ae26f7c8a1682b5437a64edcd73ab1798c9b.tar.zst nixlib-97b0ae26f7c8a1682b5437a64edcd73ab1798c9b.zip |
doc: avoid 'simply' (#266434)
While the word 'simply' is usually added to encourage readers, it often has the opposite effect and may even appear condescending, especially when the reader runs into trouble trying to apply the suggestions from the documentation. It is almost always an improvement to simply drop the word from the sentence. (there are more possible improvements like this, we can apply those in separate PRs)
Diffstat (limited to 'doc/languages-frameworks/python.section.md')
-rw-r--r-- | doc/languages-frameworks/python.section.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/languages-frameworks/python.section.md b/doc/languages-frameworks/python.section.md index 9af3f529ae49..701507178380 100644 --- a/doc/languages-frameworks/python.section.md +++ b/doc/languages-frameworks/python.section.md @@ -264,7 +264,7 @@ python3MyBlas = pkgs.python3.override { ``` This is particularly useful for numpy and scipy users who want to gain speed with other blas implementations. -Note that using simply `scipy = super.scipy.override { blas = super.pkgs.mkl; };` will likely result in +Note that using `scipy = super.scipy.override { blas = super.pkgs.mkl; };` will likely result in compilation issues, because scipy dependencies need to use the same blas implementation as well. #### `buildPythonApplication` function {#buildpythonapplication-function} @@ -433,7 +433,7 @@ python3.withPackages (ps: [ ps.pyramid ]) Now, `ps` is set to `python3Packages`, matching the version of the interpreter. -As [`python.withPackages`](#python.withpackages-function) simply uses [`python.buildEnv`](#python.buildenv-function) under the hood, it also +As [`python.withPackages`](#python.withpackages-function) uses [`python.buildEnv`](#python.buildenv-function) under the hood, it also supports the `env` attribute. The `shell.nix` file from the previous section can thus be also written like this: @@ -682,7 +682,7 @@ b = np.array([3,4]) print(f"The dot product of {a} and {b} is: {np.dot(a, b)}") ``` -Then we simply execute it, without requiring any environment setup at all! +Then we execute it, without requiring any environment setup at all! ```sh $ ./foo.py @@ -1713,7 +1713,7 @@ This is an example of a `default.nix` for a `nix-shell`, which allows to consume a virtual environment created by `venv`, and install Python modules through `pip` the traditional way. -Create this `default.nix` file, together with a `requirements.txt` and simply +Create this `default.nix` file, together with a `requirements.txt` and execute `nix-shell`. ```nix |