This repository is to make the PyPho illustrating PyPho available on Binder.
The notebooks can be used directly online without installation thanks to Binder.
This repository was created with cookiecutter and pyvsita cookie cutter
- go to folder
cd where_to_crete_repo
- New env
conda create -n pypho_binder python=3.12 pipx
- activate
conda activate pypho_binder
- add path to git:
set PATH=%PATH%;Path_to_Git\Git\bin
- run the cookiecutter
pipx run cookiecutter gh:pyvista/cookiecutter-pyvista-binder
- Publish the created repo to Github
.gitattributes
is setting up a jq
filter nbstrip
to remove metadata and execution counts from notebooks before commit.
To be effective, you must add the following piece of script in the .git/config:
[filter "nbstrip"]
clean = "jq --indent 1 \
'(.cells[] | select(has(\"execution_count\")) | .execution_count) = null \
| .metadata = {\"language_info\": {\"name\": \"python\", \"pygments_lexer\": \"ipython3\"}} \
| .cells[].metadata = {} \
'"