Skip to content

Commit 8bb35f9

Browse files
authored
Merge pull request #1663 from mathbunnyru/asalikhov/polish_pycharm
Fix minor wordings (detected by PyCharm)
2 parents 961dc90 + fab0846 commit 8bb35f9

File tree

23 files changed

+56
-54
lines changed

23 files changed

+56
-54
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ repos:
4545
# This doesn't work well with `mypy --follow-imports error`
4646
# See: https://github.com/pre-commit/mirrors-mypy/issues/34#issuecomment-1062160321
4747
#
48-
# To workaround this we run `mypy` only in manual mode
48+
# To work around this we run `mypy` only in manual mode
4949
# So it won't run as part of `git commit` command
5050
# But it will still be run as part of `pre-commit` workflow and give expected results
5151
stages: [manual]

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ maintained stacks.
7272
We value all positive contributions to the Docker stacks project,
7373
from [bug reports](https://jupyter-docker-stacks.readthedocs.io/en/latest/contributing/issues.html)
7474
to [pull requests](https://jupyter-docker-stacks.readthedocs.io/en/latest/contributing/packages.html)
75-
to help answering questions.
75+
to help with answering questions.
7676
We'd also like to invite members of the community to help with two maintainer activities:
7777

7878
- **Issue triaging**: Reading and providing a first response to issues, labeling issues appropriately,
@@ -86,7 +86,7 @@ We will happily grant additional permissions (e.g., ability to merge PRs) to any
8686

8787
## Jupyter Notebook Deprecation Notice
8888

89-
Following [Jupyter Notebook notice](https://github.com/jupyter/notebook#notice), JupyterLab is now the default for all of the Jupyter Docker stack images.
89+
Following [Jupyter Notebook notice](https://github.com/jupyter/notebook#notice), JupyterLab is now the default for all the Jupyter Docker stack images.
9090
It is still possible to switch back to Jupyter Notebook (or to launch a different startup command).
9191
You can achieve this by passing the environment variable `DOCKER_STACKS_JUPYTER_CMD=notebook` (or any other valid `jupyter` subcommand) at container startup,
9292
more information is available in the [documentation](https://jupyter-docker-stacks.readthedocs.io/en/latest/using/common.html#alternative-commands).
@@ -119,8 +119,8 @@ All published containers support amd64 (x86_64) and aarch64, except for `datasci
119119

120120
### Caveats for arm64 images
121121

122-
- The manifests we publish in this projects wiki as well as the image tags for
123-
the multi platform images that also support arm, are all based on the amd64
122+
- The manifests we publish in this project's wiki as well as the image tags for
123+
the multi-platform images that also support arm, are all based on the amd64
124124
version even though details about the installed packages versions could differ
125125
between architectures. For the status about this, see
126126
[#1401](https://github.com/jupyter/docker-stacks/issues/1401).

all-spark-notebook/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
GitHub Actions in the <https://github.com/jupyter/docker-stacks> project builds and pushes this image to Docker Hub.
88

9-
Please visit the project documentation site for help using and contributing to this image and others.
9+
Please visit the project documentation site for help to use and contribute to this image and others.
1010

1111
- [Jupyter Docker Stacks on ReadTheDocs](https://jupyter-docker-stacks.readthedocs.io/en/latest/index.html)
1212
- [Selecting an Image :: Core Stacks :: jupyter/all-spark-notebook](https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html#jupyter-all-spark-notebook)

base-notebook/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
GitHub Actions in the <https://github.com/jupyter/docker-stacks> project builds and pushes this image to Docker Hub.
88

9-
Please visit the project documentation site for help using and contributing to this image and others.
9+
Please visit the project documentation site for help to use and contribute to this image and others.
1010

1111
- [Jupyter Docker Stacks on ReadTheDocs](https://jupyter-docker-stacks.readthedocs.io/en/latest/index.html)
1212
- [Selecting an Image :: Core Stacks :: jupyter/base-notebook](https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html#jupyter-base-notebook)

base-notebook/start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ if [ "$(id -u)" == 0 ] ; then
7474
# - NB_USER: the desired username and associated home folder
7575
# - NB_UID: the desired user id
7676
# - NB_GID: a group id we want our user to belong to
77-
# - NB_GROUP: the groupname we want for the group
77+
# - NB_GROUP: a group name we want for the group
7878
# - GRANT_SUDO: a boolean ("1" or "yes") to grant the user sudo rights
7979
# - CHOWN_HOME: a boolean ("1" or "yes") to chown the user's home folder
8080
# - CHOWN_EXTRA: a comma separated list of paths to chown

datascience-notebook/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
GitHub Actions in the <https://github.com/jupyter/docker-stacks> project builds and pushes this image to Docker Hub.
88

9-
Please visit the project documentation site for help using and contributing to this image and others.
9+
Please visit the project documentation site for help to use and contribute to this image and others.
1010

1111
- [Jupyter Docker Stacks on ReadTheDocs](https://jupyter-docker-stacks.readthedocs.io/en/latest/index.html)
1212
- [Selecting an Image :: Core Stacks :: jupyter/datascience-notebook](https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html#jupyter-datascience-notebook)

docs/contributing/packages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Package Updates
22

33
As a general rule, we do not pin package versions in our `Dockerfile`s.
4-
The dependencies resolution is a difficult thing to do.
4+
Dependency resolution is a difficult thing to do.
55
This means that packages might have old versions.
66
Images are rebuilt weekly, so usually, packages receive updates quite frequently.
77

docs/using/recipes.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -446,14 +446,14 @@ RUN pip install --quiet --no-cache-dir jupyter_dashboards faker && \
446446
USER root
447447
# Ensure we overwrite the kernel config so that toree connects to cluster
448448
RUN jupyter toree install --sys-prefix --spark_opts="\
449-
--master yarn
450-
--deploy-mode client
451-
--driver-memory 512m
452-
--executor-memory 512m
453-
--executor-cores 1
454-
--driver-java-options
455-
-Dhdp.version=2.5.3.0-37
456-
--conf spark.hadoop.yarn.timeline-service.enabled=false
449+
--master yarn \
450+
--deploy-mode client \
451+
--driver-memory 512m \
452+
--executor-memory 512m \
453+
--executor-cores 1 \
454+
--driver-java-options \
455+
-Dhdp.version=2.5.3.0-37 \
456+
--conf spark.hadoop.yarn.timeline-service.enabled=false \
457457
"
458458
USER ${NB_UID}
459459
```

docs/using/troubleshooting.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -222,18 +222,20 @@ If you have also **created a new user**, you might be experiencing any of the fo
222222
- Use `docker inspect <container_id>` and look for the [`Mounts` section](https://docs.docker.com/storage/volumes/#start-a-container-with-a-volume) to verify that the volume was created and mounted accordingly:
223223

224224
```json
225-
"Mounts": [
226-
{
227-
"Type": "volume",
228-
"Name": "my-vol",
229-
"Source": "/var/lib/docker/volumes/stagingarea/_data",
230-
"Destination": "/home/jovyan/stagingarea",
231-
"Driver": "local",
232-
"Mode": "z",
233-
"RW": true,
234-
"Propagation": ""
235-
}
236-
],
225+
{
226+
"Mounts": [
227+
{
228+
"Type": "volume",
229+
"Name": "my-vol",
230+
"Source": "/var/lib/docker/volumes/stagingarea/_data",
231+
"Destination": "/home/jovyan/stagingarea",
232+
"Driver": "local",
233+
"Mode": "z",
234+
"RW": true,
235+
"Propagation": ""
236+
}
237+
]
238+
}
237239
```
238240

239241
## Problems installing conda packages from specific channels

examples/docker-compose/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ For example, you can build and deploy a `jupyter/all-spark-notebook` by modifyin
4343

4444
```dockerfile
4545
FROM jupyter/all-spark-notebook:b418b67c225b
46-
...
46+
# Your RUN commands and so on
4747
```
4848

4949
Once you modify the Dockerfile, don't forget to rebuild the image.
@@ -135,8 +135,8 @@ FQDN=host.mydomain.com EMAIL=myemail@somewhere.com \
135135
bin/letsencrypt.sh
136136
```
137137

138-
Also, be aware that Let's Encrypt certificates are short lived (90 days).
139-
If you need them for a longer period of time, you'll need to manually setup a cron job to run the renewal steps.
138+
Also, be aware that Let's Encrypt certificates are short-lived (90 days).
139+
If you need them for a longer period of time, you'll need to manually set up a cron job to run the renewal steps.
140140
(You can reuse the command above.)
141141

142142
### Can I deploy to any Docker Machine host?

examples/docker-compose/bin/letsencrypt.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ set -e
99

1010
# Get domain and email from environment
1111
[ -z "${FQDN}" ] && \
12-
echo "ERROR: Must set FQDN environment varable" && \
12+
echo "ERROR: Must set FQDN environment variable" && \
1313
exit 1
1414

1515
[ -z "${EMAIL}" ] && \
16-
echo "ERROR: Must set EMAIL environment varable" && \
16+
echo "ERROR: Must set EMAIL environment variable" && \
1717
exit 1
1818

1919
# letsencrypt certificate server type (default is production).

examples/docker-compose/bin/sl-dns.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ MACHINE_NAME="${1}" && [ -z "${MACHINE_NAME}" ] && echo "${USAGE}" && exit ${E_B
1515

1616
# Use SOFTLAYER_DOMAIN env var if domain name not set as second arg
1717
DOMAIN="${2:-$SOFTLAYER_DOMAIN}" && [ -z "${DOMAIN}" ] && \
18-
echo "Must specify domain or set SOFTLAYER_DOMAIN environment varable" && \
18+
echo "Must specify domain or set SOFTLAYER_DOMAIN environment variable" && \
1919
echo "${USAGE}" && exit ${E_BADARGS}
2020

2121
IP=$(docker-machine ip "${MACHINE_NAME}")

examples/make-deploy/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This folder contains a Makefile and a set of supporting files demonstrating how
1111

1212
## Quickstart
1313

14-
To show what's possible, here's how to run the `jupyter/minimal-notebook` on a brand new local virtualbox.
14+
To show what's possible, here's how to run the `jupyter/minimal-notebook` on a brand-new local virtualbox.
1515

1616
```bash
1717
# create a new VM
@@ -72,8 +72,8 @@ To hit their staging servers, set the environment variable `CERT_SERVER=--stagin
7272
make letsencrypt FQDN=host.mydomain.com EMAIL=myemail@somewhere.com CERT_SERVER=--staging
7373
```
7474

75-
Also, keep in mind Let's Encrypt certificates are short lived: 90 days at the moment.
76-
You'll need to manually setup a cron job to run the renewal steps at the moment.
75+
Also, keep in mind Let's Encrypt certificates are short-lived: 90 days at the moment.
76+
You'll need to manually set up a cron job to run the renewal steps at the moment.
7777
(You can reuse the first command above.)
7878

7979
### My pip/conda/apt-get installs disappear every time I restart the container. Can I make them permanent?

examples/openshift/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ The templates were tested with OpenShift 3.7.
99
It is believed they should work with at least OpenShift 3.6 or later.
1010

1111
Do be aware that the Jupyter Project docker-stacks images are very large.
12-
The OpenShift environment you are using must provide sufficient quota on the per user space for images and the file system for running containers.
12+
The OpenShift environment you are using must provide sufficient quota on the per-user space for images and the file system for running containers.
1313
If the quota is too small, the pulling of the images to a node in the OpenShift cluster when deploying them, will fail due to lack of space.
14-
Even if the image is able to be run, if the quota is only just larger than the space required for the image, you will not be able to install many packages into the container before running out of space.
14+
Even if the image is able to run, if the quota is only just larger than the space required for the image, you will not be able to install many packages into the container before running out of space.
1515

1616
OpenShift Online, the public hosted version of OpenShift from Red Hat has a quota of only 3GB for the image and container file system.
1717
As a result, only the `minimal-notebook` can be started and there is little space remaining to install additional packages.
@@ -87,7 +87,7 @@ NAME HOST/PORT PATH SER
8787
notebook notebook-jupyter.abcd.pro-us-east-1.openshiftapps.com notebook 8888-tcp edge/Redirect None
8888
```
8989

90-
A secure route will be used to expose the notebook outside of the OpenShift cluster, so in this case the URL would be:
90+
A secure route will be used to expose the notebook outside the OpenShift cluster, so in this case the URL would be:
9191

9292
```lang-none
9393
https://notebook-jupyter.abcd.pro-us-east-1.openshiftapps.com/
@@ -174,7 +174,7 @@ If the error is in the config map, edit it again to fix it and trigger a new dep
174174
oc rollout latest dc/mynotebook
175175
```
176176

177-
If you make an error in the configuration file stored in the persistent volume, you will need to scale down the notebook so it isn't running.
177+
If you make an error in the configuration file stored in the persistent volume, you will need to scale down the notebook, so it isn't running.
178178

179179
```bash
180180
oc scale dc/mynotebook --replicas 0
@@ -209,7 +209,7 @@ oc set env dc/mynotebook JUPYTER_NOTEBOOK_PASSWORD=mypassword
209209

210210
This will trigger a new deployment so ensure you have downloaded any work if not using a persistent volume.
211211

212-
If using a persistent volume, you could instead setup a password in the file `/home/jovyan/.jupyter/jupyter_server_config.py` as per guidelines in <https://jupyter-server.readthedocs.io/en/latest/operators/public-server.html>.
212+
If using a persistent volume, you could instead set up a password in the file `/home/jovyan/.jupyter/jupyter_server_config.py` as per guidelines in <https://jupyter-server.readthedocs.io/en/latest/operators/public-server.html>.
213213

214214
## Deploying from a Custom Image
215215

examples/source-to-image/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Custom Jupyter Notebook images
22

33
This example provides scripts for building custom Jupyter Notebook images containing notebooks, data files, and with Python packages required by the notebooks already installed.
4-
The scripts provided work with the Source-to-Image tool and you can create the images from the command line on your own computer.
4+
The scripts provided work with the Source-to-Image tool, and you can create the images from the command line on your own computer.
55
Templates are also provided to enable running builds in OpenShift, as well as deploying the resulting image to OpenShift to make it available.
66

77
The build scripts, when used with the Source-to-Image tool, provide similar capabilities to `repo2docker`.
@@ -96,7 +96,7 @@ fi
9696
This determines whether a `environment.yml` or `requirements.txt` file exists with the files and if so, runs the appropriate package management tool to install any Python packages listed in those files.
9797

9898
This means that so long as a set of notebook files provides one of these files listing what Python packages they need,
99-
those packages will be automatically installed into the image so they are available when the image is run.
99+
those packages will be automatically installed into the image, so they are available when the image is run.
100100

101101
A final step is:
102102

minimal-notebook/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
GitHub Actions in the <https://github.com/jupyter/docker-stacks> project builds and pushes this image to Docker Hub.
88

9-
Please visit the project documentation site for help using and contributing to this image and others.
9+
Please visit the project documentation site for help to use and contribute to this image and others.
1010

1111
- [Jupyter Docker Stacks on ReadTheDocs](https://jupyter-docker-stacks.readthedocs.io/en/latest/index.html)
1212
- [Selecting an Image :: Core Stacks :: jupyter/minimal-notebook](https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html#jupyter-minimal-notebook)

pyspark-notebook/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
GitHub Actions in the <https://github.com/jupyter/docker-stacks> project builds and pushes this image to Docker Hub.
88

9-
Please visit the project documentation site for help using and contributing to this image and others.
9+
Please visit the project documentation site for help to use and contribute to this image and others.
1010

1111
- [Jupyter Docker Stacks on ReadTheDocs](https://jupyter-docker-stacks.readthedocs.io/en/latest/index.html)
1212
- [Selecting an Image :: Core Stacks :: jupyter/pyspark-notebook](https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html#jupyter-pyspark-notebook)

r-notebook/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
GitHub Actions in the <https://github.com/jupyter/docker-stacks> project builds and pushes this image to Docker Hub.
88

9-
Please visit the project documentation site for help using and contributing to this image and others.
9+
Please visit the project documentation site for help to use and contribute to this image and others.
1010

1111
- [Jupyter Docker Stacks on ReadTheDocs](https://jupyter-docker-stacks.readthedocs.io/en/latest/index.html)
1212
- [Selecting an Image :: Core Stacks :: jupyter/r-notebook](https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html#jupyter-r-notebook)

scipy-notebook/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
GitHub Actions in the <https://github.com/jupyter/docker-stacks> project builds and pushes this image to Docker Hub.
88

9-
Please visit the project documentation site for help using and contributing to this image and others.
9+
Please visit the project documentation site for help to use and contribute to this image and others.
1010

1111
- [Jupyter Docker Stacks on ReadTheDocs](https://jupyter-docker-stacks.readthedocs.io/en/latest/index.html)
1212
- [Selecting an Image :: Core Stacks :: jupyter/scipy-notebook](https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html#jupyter-scipy-notebook)

tagging/manifests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def quoted_output(container: Container, cmd: str) -> str:
2020

2121

2222
class ManifestHeader:
23-
"""ManifestHeader doesn't fall under common interface and we run it separately"""
23+
"""ManifestHeader doesn't fall under common interface, and we run it separately"""
2424

2525
@staticmethod
2626
def create_header(short_image_name: str, owner: str, build_timestamp: str) -> str:

tensorflow-notebook/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
GitHub Actions in the <https://github.com/jupyter/docker-stacks> project builds and pushes this image to Docker Hub.
88

9-
Please visit the project documentation site for help using and contributing to this image and others.
9+
Please visit the project documentation site for help to use and contribute to this image and others.
1010

1111
- [Jupyter Docker Stacks on ReadTheDocs](https://jupyter-docker-stacks.readthedocs.io/en/latest/index.html)
1212
- [Selecting an Image :: Core Stacks :: jupyter/tensorflow-notebook](https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html#jupyter-tensorflow-notebook)

tests/base-notebook/test_container_options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def test_gid_change(container: TrackedContainer) -> None:
8181

8282

8383
def test_nb_user_change(container: TrackedContainer) -> None:
84-
"""Container should change the user name (`NB_USER`) of the default user."""
84+
"""Container should change the username (`NB_USER`) of the default user."""
8585
nb_user = "nayvoj"
8686
running_container = container.run_detached(
8787
tty=True,

tests/base-notebook/test_packages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def check_import_python_package(
133133

134134

135135
def check_import_r_package(package_helper: CondaPackageHelper, package: str) -> None:
136-
"""Try to import a R package from the command line"""
136+
"""Try to import an R package from the command line"""
137137
_check_import_package(package_helper, ["R", "--slave", "-e", f"library({package})"])
138138

139139

0 commit comments

Comments
 (0)