Skip to content

Commit

Permalink
update readme; add output from nbconvert
Browse files Browse the repository at this point in the history
  • Loading branch information
sunu committed May 29, 2024
1 parent a2fb575 commit 1e9e423
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Pangeo Notebook Veda Image

Docker container based on pangeo-notebook used on VEDA JupyterHub.

## Testing the image

The notebooks in `image-tests/` folder are used to test the docker image. They are run by `repo2docker` github action during the build process and the output is compared to the existing notebooks.
Expand All @@ -8,5 +10,5 @@ To add new tests, create new notebooks or add to the existing notebooks in `imag

```bash
docker build -t pangeo-notebook-veda .
docker run -v image-tests:/home/jovyan/image-tests pangeo-notebook-veda jupyter nbconvert --to notebook --inplace --execute image-tests/*.ipynb
docker run -v ./image-tests:/home/jovyan/image-tests pangeo-notebook-veda jupyter nbconvert --to notebook --inplace --execute image-tests/*.ipynb
```
20 changes: 10 additions & 10 deletions image-tests/test-notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"metadata": {
"execution": {
"iopub.execute_input": "2024-05-29T10:52:27.214148Z",
"iopub.status.busy": "2024-05-29T10:52:27.213708Z",
"iopub.status.idle": "2024-05-29T10:52:27.233214Z",
"shell.execute_reply": "2024-05-29T10:52:27.232397Z"
}
},
"outputs": [
{
"data": {
Expand All @@ -17,15 +24,8 @@
}
],
"source": [
"2 + 2"
"2+2"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand All @@ -44,7 +44,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.16"
"version": "3.11.8"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 1e9e423

Please sign in to comment.