Skip to main content

Template repository for a library project

Initial set up

  • In the link above, replace libraryname with your library's name.
  • Rename the libraryname folder to the name of your library, do not use hyphens, '-', in the name.
  • Replace all instances of libraryname, vscodenb, and functionname for the names of/in your library (Shift-Cmd-F in VScode).

example event parameter

Development

In addition to any dependencies of your library, the development setup requires quarto the following packages:

conda-forge::jupyter conda-forge::nbconvert conda-forge::quartodoc conda-forge::gh conda-forge::git conda-forge::pip

Version

The only version you need to change is the one in setup.cfg.

Unit tests

Test are put in test/test_vscodenb.py. Run these and all other test_* files you create by running ./scripts/test.sh.

Creating docs

Use type hits (with the typing module) for code and add this to your settings.json in VScode.

"files.associations": {
    "*.qmd": "quarto"
},
"autoDocstring.docstringFormat": "numpy",
"autoDocstring.startOnNewLine": true,
"autoDocstring.customTemplatePath": "docs/autodoc.mustache",

That lets you can autogenerate doc-strings by typing """ at the top of your functions.

Publishing docs

Docs are published to your github pages site https://{user}.github.io/{libraryname}. The template is set up for the user munch-group, but you can substitute all its instances for your own github user name.

Run all documentation notebooks inplace by running ./docs-run-notebooks.sh. Build and render all documentation by running ./docs-build-render.sh.

Publishing conda package

Once pushed to github the library can be published as a conda package by running ./conda-release.sh.

Publishing the conda package to anaconda requires that you set up a github secret, ANACONDA_TOKEN, that you create on your anaconda.org account.

Library dependencies

Dependencies are managed in pyproject.toml and automatically read by conda-build/meta.yaml.

Entry points

Entry points are defined in pyproject.toml and automatically read by conda-build/meta.yaml.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vscodenb-1.0.7.tar.gz (626.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vscodenb-1.0.7-py3-none-any.whl (47.1 kB view details)

Uploaded Python 3

File details

Details for the file vscodenb-1.0.7.tar.gz.

File metadata

  • Download URL: vscodenb-1.0.7.tar.gz
  • Upload date:
  • Size: 626.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for vscodenb-1.0.7.tar.gz
Algorithm Hash digest
SHA256 3325a03d4a5d225eea2edcd6ad5c974f8ac8ce941736ac7b536fd3de091a10d1
MD5 8f794e8bb37881c22e3aeedaec437c52
BLAKE2b-256 ba8b805ff459d765b9f78291336b3a3e823f3f497bf503976b7a08d1506a12e1

See more details on using hashes here.

File details

Details for the file vscodenb-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: vscodenb-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 47.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for vscodenb-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 1bd4a1b755f92692c8c13aa7daa2730a685190d5c90e81b38a8a963252d6421f
MD5 982a94ee00d8357a9023c98df56c2d55
BLAKE2b-256 119b64dfb8e5c82a2e2b2e798f4e81a9bc48621a60b82504640f61192597604d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.7 This release

2 files

1.0.5

2 files

1.0.3

2 files

1.0.1

2 files

0.1.83

2 files

0.1.81

2 files

0.1.79

2 files

0.1.77

2 files

0.1.75

2 files

0.1.73

2 files

0.1.71

2 files

0.1.69

2 files

0.1.67

2 files

0.1.65

2 files

0.1.63

2 files

0.1.61

2 files

0.1.59

2 files

0.1.57

2 files

0.1.55

2 files

0.1.53

2 files

0.1.50

2 files

0.1.48

2 files

0.1.46

2 files

0.1.44

2 files

0.1.42

2 files

0.1.40

2 files

0.1.38

2 files

0.1.36

2 files

0.1.35

2 files

0.1.34

2 files

0.1.33

2 files

0.1.32

2 files

0.1.31

2 files

0.1.30

2 files

0.1.29

2 files

0.1.27

2 files

0.1.26

2 files

0.1.25

2 files

0.1.23

2 files

0.1.21

2 files

0.1.19

2 files

0.1.18

2 files

0.1.17

2 files

0.1.16

2 files

0.1.15

2 files

0.1.14

2 files

0.1.13

2 files

0.1.12

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page