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.3.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.3-py3-none-any.whl (46.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vscodenb-1.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 31177dd7a38485a46f0825d97f060c9fedd0d80f70a963699d99ae35698c1217
MD5 66ce48f0b4ee7bbd796bbbcd1985d5dc
BLAKE2b-256 c91d950afd9b3a87e068d5913b6884bcc74fdb56ee1988f480b64d710aca7b41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vscodenb-1.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 adacefd8320341c395eebf12f115e833a1673d37fc63321b3f92621c98eb837d
MD5 856a269352808d9ffb29d7bdc2d05043
BLAKE2b-256 26e595949dbb752d3cd380783b12d55c7e7eda6ce776b539b1db72578167d265

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.7

2 files

1.0.5

2 files

This release

1.0.3 This release

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