Skip to content

Commit 4a54f5f

Browse files
authored
Merge pull request #56 from dandi/submission_instructions
add submission instructions to README.md
2 parents cd963a3 + ff8b74a commit 4a54f5f

File tree

1 file changed

+28
-3
lines changed

1 file changed

+28
-3
lines changed

Diff for: README.md

+28-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,35 @@
22

33
This repository contains example notebooks associated with datasets, conference tools, or more generally notebooks that illustrate the use of data on DANDI. This repository is cloned into the [DANDI JupyterHub environment](https://hub.dandiarchive.org). Please note that you will need to visit https://dandiarchive.org and sign in once to get access to the JupyterHub.
44

5-
To add a new notebook, please send a PR. For specific dandiset related analysis, place your notebooks or other code into:
5+
## Submission instructions
6+
To add new notebooks, please send a Pull Request. Submissions should use the following file structure:
67

7-
`<dandiset id>/<org or lab name>/<mnemonic for paper or analysis>/<code>`
8+
```
9+
example-notebooks/
10+
└── <dandiset id>/
11+
└── <org or lab name>/
12+
└── <mnemonic for paper or analysis>/
13+
├── environment.yml
14+
├── README.md
15+
├── <analysis 1>.ipynb
16+
├── <analysis 2>.ipynb
17+
├── ...
18+
└── <analysis n>.ipynb
19+
```
20+
21+
For example, [000055/bruntonlab/peterson21](./000055/BruntonLab/peterson21)
22+
23+
The `README.md` file should explain the goal of the submission, provide links to relevant scientific publications, and explain the purpose of each notebook file.
24+
25+
The `environment.yml` file should define the dependencies of the environment required for the notebooks to be executed. `environment.yml` files are like `requirements.txt` files, but are designed to work with `conda`. To create this file, follow these steps:
26+
27+
1. Create a new environment: `conda create -n <env-name> -python <python-version>`
28+
2. Switch into that environment: `conda activate <env-name>`
29+
3. Use `conda install <pkg>` and `pip install <pkg>` to install the necessary dependencies until the notebook(s) run through successfully.
30+
4. Confirm that all the notebooks can be run without error.
31+
5. Export the environment: `conda env export > environment.yml`.
32+
33+
See [detailed instructions](https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#sharing-an-environment) for creating a `environment.yml` file.
834

9-
For example, [000055/bruntonlab/peterson21](https://github.com/dandi/example-notebooks/tree/9b1fb88667595a3abcdefda46bbe08e538dcbf0f/000055/BruntonLab/peterson21)
1035

1136
Feel free to reach out on the [DANDI helpdesk](https://github.com/dandi/helpdesk/issues/new/choose) with any questions.

0 commit comments

Comments
 (0)