Skip to main content

The dm and penfold standard libraries for coppertop and bones

Project description

dm

Includes:

  • the dm core library for coppertop and bones
  • Jupyter notebooks and Python code examples using coppertop, bones and dm

Use this - https://nbviewer.jupyter.org - if github doesn't render properly.

E.g. https://nbviewer.jupyter.org/github/DangerMouseB/coppertop-bones-demo/blob/main/jupyter/think%20bayes/Ch%201%2C2%2C3%20-%20models.ipynb


Notebook dependencies and coppertop

I have matplotlib, plotnine, numpy, pandas, scipy, pymc3, etc, installed.

Install coppertop-bones-demo via python -m pip install coppertop-bones-dm. This also installs coppertop-bones.

Alternatively clone https://github.com/coppertop-bones/coppertop-bones and https://github.com/coppertop-bones/dm and ensure your PYTHONPATH is set to include the src folders, for example:

/Users/david/repos/github/coppertop-bones/coppertop/src 
/Users/david/repos/github/coppertop-bones/dm/src

Alternatively, you can manually set sys.path to include the coppertop-bones/src folder and then at the top of a notebook you can do the following:

from coppertop.core import ensurePath
'/Users/david/repos/github/coppertop-bones/dm/src' >> ensurePath       # <= set this to your path

The notebook should be good to go.

Project details


Download files

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

Source Distribution

coppertop_bones_libs-2025.6.8.tar.gz (62.8 kB view details)

Uploaded Source

File details

Details for the file coppertop_bones_libs-2025.6.8.tar.gz.

File metadata

  • Download URL: coppertop_bones_libs-2025.6.8.tar.gz
  • Upload date:
  • Size: 62.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0

File hashes

Hashes for coppertop_bones_libs-2025.6.8.tar.gz
Algorithm Hash digest
SHA256 345b86913400c35c039c6b91d65ae0322d4e73454b78f8b060ba33df401d945e
MD5 3ece35c15957bbc181f57ab8438c3ef3
BLAKE2b-256 dfc2860b4086061bcdb34c41ac8a841aabe58267c93254be5f496270fa1827fa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page