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: README.md
+22-6Lines changed: 22 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -39,14 +39,22 @@ The Binder button above allows you to explore and run the notebook in a shared c
39
39
40
40
4. From the terminal window, launch the docker container using the following command, replacing [path/notebook_folder] with your path and notebook folder name:
41
41
42
-
43
42
```bash
44
43
docker run --name tutorials -p 8888:8888 -v [path/notebook_folder]:/home/jovyan/work nsidc/tutorials
45
44
```
45
+
46
46
Example:
47
+
47
48
```bash
48
49
docker run --name tutorials -p 8888:8888 -v /Users/name/Desktop/NSIDC-Data-Tutorials:/home/jovyan/work nsidc/tutorials
49
50
```
51
+
52
+
Or, with docker-compose:
53
+
54
+
```bash
55
+
docker-compose up -d
56
+
```
57
+
50
58
If you want to mount a directory with write permissions, you need to grant the container the same permissions as the one on the directory to be mounted and tell it that has "root" access (within the container). This is important if you want to persist your work or download data to a local directory and not just the docker container. Run the example command below for this option:
or http://127.0.0.1:8888/?token=f002a50e25b6f623aa775312737ba8a23ffccfd4458faa6f
64
72
```
65
73
66
-
5. Open up a web browser and copy one of the URLs as instructed above.
74
+
5. Open up a web browser and copy one of the URLs as instructed above.
67
75
68
76
6. You will be brought to a Jupyter Notebook interface running through the Docker container. The left side of the interface displays your local directory structure. Navigate to the **`work`** folder of the `NSIDC-Data-Tutorials` repository folder. You can now interact with the notebooks to explore and access data.
69
77
@@ -79,7 +87,7 @@ To access the notebook, open this file in a browser:
79
87
5. From the terminal window, launch the docker container using the following command, replacing [path\notebook_folder] with your path and notebook folder name:
80
88
81
89
```bash
82
-
docker run --name tutorials -p 8888:8888 -v [path\notebook_folder]:/home/jovyan/work nsidc/tutorials
90
+
docker run --name tutorials -p 8888:8888 -v [path\notebook_folder]:/home/jovyan/work nsidc/tutorials
83
91
```
84
92
85
93
Example:
@@ -88,10 +96,18 @@ Example:
88
96
docker run --name tutorials -p 8888:8888 -v C:\notebook_folder:/home/jovyan/work nsidc/tutorials
89
97
```
90
98
99
+
Or, with docker-compose:
100
+
101
+
```bash
102
+
docker-compose up -d
103
+
```
104
+
91
105
If you want to mount a directory with write permissions you need to grant the container the same permissions as the one on the directory to be mounted and tell it that has "root" access (within the container)
7. You will now see the NSIDC-Data-Tutorials repository within the Jupyter Notebook interface. Navigate to **/work** to open the notebooks.
124
+
7. You will now see the NSIDC-Data-Tutorials repository within the Jupyter Notebook interface. Navigate to **/work** to open the notebooks.
109
125
110
126
8. You can now interact with the notebooks to explore and access data.
111
127
@@ -137,7 +153,7 @@ Launch the notebook locally with the following command:
137
153
jupyter lab
138
154
```
139
155
140
-
This should open a browser window with the JupyterLab IDE, showing your current working directory on the left-hand navigation. Navigate to the tutorial folder of choice and click on their associated *.ipynb files to get started.
156
+
This should open a browser window with the JupyterLab IDE, showing your current working directory on the left-hand navigation. Navigate to the tutorial folder of choice and click on their associated *.ipynb files to get started.
141
157
142
158
> **NOTE:** Some times Conda environments change(break) even with pinned down dependencies, if you run into an issue with dependencies for the tutorials please open an issue and we'll try to fix it as soon as possible.
0 commit comments