Skip to content

Commit

Permalink
Merge pull request #15 from jmarshrossney/qol/jupytext
Browse files Browse the repository at this point in the history
Markdown representations of Jupyter notebooks
  • Loading branch information
metazool authored Jul 30, 2024
2 parents 773f7a3 + 8f19139 commit 043c6a5
Show file tree
Hide file tree
Showing 8 changed files with 284 additions and 4,058 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
**/.ipynb_checkpoints/
**/__pycache__/
vectors/
*.ipynb
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,20 @@ Get started by cloning this repository and running

Experiment testing workflows by using [this plankton model from SciVision](https://sci.vision/#/model/resnet50-plankton) to extract features from images for use in similarity search, clustering, etc.

### Running Jupyter notebooks

The `notebooks/` directory contains Markdown (`.md`) representations of the notebooks.
To create Jupyter notebooks (`.ipynb`), run the following command with the conda environment activated:

```sh
jupytext --sync notebooks/*
```

If you modify the contents of a notebook, run the command after closing the notebook to re-sync the `.ipynb` and `.md` representations before committing.

For more information see the [Jupytext docs](https://jupytext.readthedocs.io/en/latest/).


### TBC (object store upload, derived classifiers, etc)


Expand Down
2 changes: 2 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ dependencies:
- pytest
- python-dotenv
- s3fs
- jupyterlab
- jupytext
- pip
- pip:
- scivision
Expand Down
Loading

0 comments on commit 043c6a5

Please sign in to comment.