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/contributing/features.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,9 +25,9 @@ If there's agreement that the feature belongs in one or more of the core stacks:
25
25
26
26
1. Implement the feature in a local clone of the `jupyter/docker-stacks` project.
27
27
2. Please build the image locally before submitting a pull request. Building the image locally shortens the debugging cycle by taking some load off [Travis CI](http://travis-ci.org/), which graciously provides free build services for open source projects like this one. If you use `make`, call:
28
-
```
29
-
make build/somestack-notebook
30
-
```
28
+
```bash
29
+
make build/somestack-notebook
30
+
```
31
31
3. [Submit a pull request](https://github.com/PointCloudLibrary/pcl/wiki/A-step-by-step-guide-on-preparing-and-submitting-a-pull-request) (PR) with your changes.
32
32
4. Watch for Travis to report a build success or failure for your PR on GitHub.
33
33
5. Discuss changes with the maintainers and address any build issues.
Copy file name to clipboardExpand all lines: docs/contributing/packages.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,9 @@ Please follow the process below to update a package version:
7
7
1. Locate the Dockerfile containing the library you wish to update (e.g., [base-notebook/Dockerfile](https://github.com/jupyter/docker-stacks/blob/master/base-notebook/Dockerfile), [scipy-notebook/Dockerfile](https://github.com/jupyter/docker-stacks/blob/master/scipy-notebook/Dockerfile))
8
8
2. Adjust the version number for the package. We prefer to pin the major and minor version number of packages so as to minimize rebuild side-effects when users submit pull requests (PRs). For example, you'll find the Jupyter Notebook package, `notebook`, installed using conda with `notebook=5.4.*`.
9
9
3. Please build the image locally before submitting a pull request. Building the image locally shortens the debugging cycle by taking some load off [Travis CI](http://travis-ci.org/), which graciously provides free build services for open source projects like this one. If you use `make`, call:
10
-
```
11
-
make build/somestack-notebook
12
-
```
10
+
```bash
11
+
make build/somestack-notebook
12
+
```
13
13
4. [Submit a pull request](https://github.com/PointCloudLibrary/pcl/wiki/A-step-by-step-guide-on-preparing-and-submitting-a-pull-request) (PR) with your changes.
14
14
5. Watch for Travis to report a build success or failure for your PR on GitHub.
15
15
6. Discuss changes with the maintainers and address any build issues. Version conflicts are the most common problem. You may need to upgrade additional packages to fix build failures.
Copy file name to clipboardExpand all lines: docs/contributing/stacks.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,13 +13,13 @@ This approach mirrors how we build and share the core stack images. Feel free to
13
13
14
14
First, install [cookiecutter](https://github.com/audreyr/cookiecutter) using pip or conda:
15
15
16
-
```
16
+
```bash
17
17
pip install cookiecutter # or conda install cookiecutter
18
18
```
19
19
20
20
Run the cookiecutter command pointing to the [jupyter/cookiecutter-docker-stacks](https://github.com/jupyter/cookiecutter-docker-stacks) project on GitHub.
Copy file name to clipboardExpand all lines: docs/contributing/tests.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,10 +13,10 @@ Please follow the process below to add new tests:
13
13
1. If the test should run against every image built, add your test code to one of the modules in [test/](https://github.com/jupyter/docker-stacks/tree/master/test) or create a new module.
14
14
2. If your test should run against a single image, add your test code to one of the modules in `some-notebook/test/` or create a new module.
15
15
3. Build one or more images you intend to test and run the tests locally. If you use `make`, call:
16
-
```
17
-
make build/somestack-notebook
18
-
make test/somestack-notebook
19
-
```
16
+
```bash
17
+
make build/somestack-notebook
18
+
make test/somestack-notebook
19
+
```
20
20
4. [Submit a pull request](https://github.com/PointCloudLibrary/pcl/wiki/A-step-by-step-guide-on-preparing-and-submitting-a-pull-request) (PR) with your changes.
21
21
5. Watch for Travis to report a build success or failure for your PR on GitHub.
22
-
6. Discuss changes with the maintainers and address any issues running the tests on Travis.
22
+
6. Discuss changes with the maintainers and address any issues running the tests on Travis.
Copy file name to clipboardExpand all lines: docs/using/common.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,13 +8,13 @@ This page describes the options supported by the startup script as well as how t
8
8
9
9
You can pass [Jupyter command line options](https://jupyter.readthedocs.io/en/latest/projects/jupyter-command.html) to the `start-notebook.sh` script when launching the container. For example, to secure the Notebook server with a custom password hashed using `IPython.lib.passwd()` instead of the default token, you can run the following:
10
10
11
-
```
11
+
```bash
12
12
docker run -d -p 8888:8888 jupyter/base-notebook start-notebook.sh --NotebookApp.password='sha1:74ba40f8a388:c913541b7ee99d15d5ed31d4226bf7838f83a50e'
13
13
```
14
14
15
15
For example, to set the base URL of the notebook server, you can run the following:
16
16
17
-
```
17
+
```bash
18
18
docker run -d -p 8888:8888 jupyter/base-notebook start-notebook.sh --NotebookApp.base_url=/some/path
19
19
```
20
20
@@ -54,7 +54,7 @@ script for execution details.
54
54
55
55
You may mount SSL key and certificate files into a container and configure Jupyter Notebook to use them to accept HTTPS connections. For example, to mount a host folder containing a `notebook.key` and `notebook.crt` and use them, you might run the following:
56
56
57
-
```
57
+
```bash
58
58
docker run -d -p 8888:8888 \
59
59
-v /some/host/folder:/etc/ssl/notebook \
60
60
jupyter/base-notebook start-notebook.sh \
@@ -64,7 +64,7 @@ docker run -d -p 8888:8888 \
64
64
65
65
Alternatively, you may mount a single PEM file containing both the key and certificate. For example:
@@ -85,13 +85,13 @@ For additional information about using SSL, see the following:
85
85
86
86
The `start-notebook.sh` script actually inherits most of its option handling capability from a more generic `start.sh` script. The `start.sh` script supports all of the features described above, but allows you to specify an arbitrary command to execute. For example, to run the text-based `ipython` console in a container, do the following:
87
87
88
-
```
88
+
```bash
89
89
docker run -it --rm jupyter/base-notebook start.sh ipython
90
90
```
91
91
92
92
Or, to run JupyterLab instead of the classic notebook, run the following:
93
93
94
-
```
94
+
```bash
95
95
docker run -it --rm -p 8888:8888 jupyter/base-notebook start.sh jupyter lab
96
96
```
97
97
@@ -107,7 +107,7 @@ The default Python 3.x [Conda environment](http://conda.pydata.org/docs/using/en
107
107
108
108
The `jovyan` user has full read/write access to the `/opt/conda` directory. You can use either `conda` or `pip` to install new packages without any additional permissions.
109
109
110
-
```
110
+
```bash
111
111
# install a package into the default (python 3.x) environment
Copy file name to clipboardExpand all lines: docs/using/recipes.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ orchestrator config.
17
17
18
18
For example:
19
19
20
-
```
20
+
```bash
21
21
docker run -it -e GRANT_SUDO=yes --user root jupyter/minimal-notebook
22
22
```
23
23
@@ -75,7 +75,7 @@ Python 2.x was removed from all images on August 10th, 2017, starting in tag `cc
75
75
add a Python 2.x environment by defining your own Dockerfile inheriting from one of the images like
76
76
so:
77
77
78
-
```
78
+
```dockerfile
79
79
# Choose your desired base image
80
80
FROM jupyter/scipy-notebook:latest
81
81
@@ -103,7 +103,7 @@ Ref:
103
103
The default version of Python that ships with conda/ubuntu may not be the version you want.
104
104
To add a conda environment with a different version and make it accessible to Jupyter, the instructions are very similar to Python 2.x but are slightly simpler (no need to switch to `root`):
### Use jupyter/all-spark-notebooks with an existing Spark/YARN cluster
414
414
415
-
```
415
+
```dockerfile
416
416
FROM jupyter/all-spark-notebook
417
417
418
418
# Set env vars for pydoop
@@ -488,21 +488,21 @@ convenient to launch the server without a password or token. In this case, you s
488
488
489
489
For jupyterlab:
490
490
491
-
```
491
+
```bash
492
492
docker run jupyter/base-notebook:6d2a05346196 start.sh jupyter lab --LabApp.token=''
493
493
```
494
494
495
495
For jupyter classic:
496
496
497
-
```
497
+
```bash
498
498
docker run jupyter/base-notebook:6d2a05346196 start.sh jupyter notebook --NotebookApp.token=''
499
499
```
500
500
501
501
## Enable nbextension spellchecker for markdown (or any other nbextension)
502
502
503
503
NB: this works for classic notebooks only
504
504
505
-
```
505
+
```dockerfile
506
506
# Update with your base image of choice
507
507
FROM jupyter/minimal-notebook:latest
508
508
@@ -521,7 +521,7 @@ Ref:
521
521
522
522
Using `auto-sklearn` requires `swig`, which the other notebook images lack, so it cant be experimented with. Also, there is no Conda package for `auto-sklearn`.
Copy file name to clipboardExpand all lines: examples/docker-compose/README.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ See the [installation instructions](https://docs.docker.com/engine/installation/
12
12
13
13
Build and run a `jupyter/minimal-notebook` container on a VirtualBox VM on local desktop.
14
14
15
-
```
15
+
```bash
16
16
# create a Docker Machine-controlled VirtualBox VM
17
17
bin/vbox.sh mymachine
18
18
@@ -28,7 +28,7 @@ notebook/up.sh
28
28
29
29
To stop and remove the container:
30
30
31
-
```
31
+
```bash
32
32
notebook/down.sh
33
33
```
34
34
@@ -39,14 +39,14 @@ notebook/down.sh
39
39
40
40
You can customize the docker-stack notebook image to deploy by modifying the `notebook/Dockerfile`. For example, you can build and deploy a `jupyter/all-spark-notebook` by modifying the Dockerfile like so:
41
41
42
-
```
42
+
```dockerfile
43
43
FROM jupyter/all-spark-notebook:55d5ca6be183
44
44
...
45
45
```
46
46
47
47
Once you modify the Dockerfile, don't forget to rebuild the image.
48
48
49
-
```
49
+
```bash
50
50
# activate the docker machine
51
51
eval"$(docker-machine env mymachine)"
52
52
@@ -57,14 +57,14 @@ notebook/build.sh
57
57
58
58
Yes. Set environment variables to specify unique names and ports when running the `up.sh` command.
59
59
60
-
```
60
+
```bash
61
61
NAME=my-notebook PORT=9000 notebook/up.sh
62
62
NAME=your-notebook PORT=9001 notebook/up.sh
63
63
```
64
64
65
65
To stop and remove the containers:
66
66
67
-
```
67
+
```bash
68
68
NAME=my-notebook notebook/down.sh
69
69
NAME=your-notebook notebook/down.sh
70
70
```
@@ -78,7 +78,7 @@ The `up.sh` creates a Docker volume named after the notebook container with a `-
78
78
79
79
Yes. Set the `WORK_VOLUME` environment variable to the same value for each notebook.
To run the notebook server with a self-signed certificate, pass the `--secure` option to the `up.sh` script. You must also provide a password, which will be used to secure the notebook server. You can specify the password by setting the `PASSWORD` environment variable, or by passing it to the `up.sh` script.
89
89
90
-
```
90
+
```bash
91
91
PASSWORD=a_secret notebook/up.sh --secure
92
92
93
93
# or
@@ -103,15 +103,15 @@ This example includes the `bin/letsencrypt.sh` script, which runs the `letsencry
103
103
104
104
The following command will create a certificate chain and store it in a Docker volume named `mydomain-secrets`.
Be aware that Let's Encrypt has a pretty [low rate limit per domain](https://community.letsencrypt.org/t/public-beta-rate-limits/4772/3) at the moment. You can avoid exhausting your limit by testing against the Let's Encrypt staging servers. To hit their staging servers, set the environment variable `CERT_SERVER=--staging`.
0 commit comments