Skip to content

gautier-laurent/PyPho_binder

Repository files navigation

PyPho_notebooks

This repository is to make the PyPho illustrating PyPho available on Binder.
The notebooks can be used directly online without installation thanks to Binder.

Notebooks

  1. Minimal Example: Binder

Devnotes:

This repository was created with cookiecutter and pyvsita cookie cutter

  1. go to folder cd where_to_crete_repo
  2. New env conda create -n pypho_binder python=3.12 pipx
  3. activate conda activate pypho_binder
  4. add path to git: set PATH=%PATH%;Path_to_Git\Git\bin
  5. run the cookiecutter pipx run cookiecutter gh:pyvista/cookiecutter-pyvista-binder
  6. Publish the created repo to Github

Remove local information from the versionning

.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 = {} \
		'"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published