Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add submission instructions to README.md #56

Merged
merged 5 commits into from
Sep 12, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 27 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,35 @@

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.

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

`<dandiset id>/<org or lab name>/<mnemonic for paper or analysis>/<code>`
```
example-notebooks/
└── <dandiset id>/
└── <org or lab name>/
└── <mnemonic for paper or analysis>/
├── environment.yml
├── README.md
├── <analysis 1>.ipynb
├── <analysis 2>.ipynb
├── ...
└── <analysis n>.ipynb
```

For example, [000055/bruntonlab/peterson21](https://github.com/dandi/example-notebooks/tree/9b1fb88667595a3abcdefda46bbe08e538dcbf0f/000055/BruntonLab/peterson21)
bendichter marked this conversation as resolved.
Show resolved Hide resolved

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.

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:

1. Create a new environment: `conda create -n <env-name> -python <python-version>`
2. Switch into that environment: `conda activate <env-name>`
3. Use `conda install <pkg>` and `pip install <pkg>` to install the necessary dependencies until the notebook runs through successfully.
bendichter marked this conversation as resolved.
Show resolved Hide resolved
4. Confirm that all the notebooks can be run without error.
5. Export the environment: `conda env export > environment.yml`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a note that eventually dependabot might get support for conda (not yet: dependabot/dependabot-core#2227) so we might would want to skip it too (see #57 )


See detailed instructions for creating a `environment.yml` file [here](https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#sharing-an-environment).
bendichter marked this conversation as resolved.
Show resolved Hide resolved


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