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.5.tar.gz (626.3 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.5-py3-none-any.whl (46.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vscodenb-1.0.5.tar.gz
  • Upload date:
  • Size: 626.3 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.5.tar.gz
Algorithm Hash digest
SHA256 a3266bb78764f25e4c5896c9fe53e82e8de088708f2ba2d78008837bd9f16fc1
MD5 9a6e5f525963d6a900fed7ab9d121421
BLAKE2b-256 73a68273ddf258d9b6a0f4accdff8daae034f58f912b63a5438fe6eee2160255

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vscodenb-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 46.9 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d8d52750c73ff1def513560ece586f6ee691caaf0b4131778f1ace59abcef5d7
MD5 018b3331634beb881d76ce1aa6d7717b
BLAKE2b-256 0ef2ed23c5820b6d52d7fc607a9672e3fc05dabf0ad45614ba226bcd747b992b

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.7

2 files

This release

1.0.5 This release

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