Skip to main content

carlo

Named after the Monte Carlo algorithm, this module displays interactive histograms of streaming/online data. It's meant for quickly visualizing distributions, and it'll keep refining its histogram as new data comes in.

Accepts lists, generators, numbers from stdin, or a function to be repeatdly evaluated. Displays data as histograms with automagic bin allocation, and extra statistics in legends.

Example 1

Compare samples from one 20-sided dice vs three 6-sided dices.

Imported:

from carlo import plot, d
plot(lambda: d(20), lambda: d(6)+d(6)+d(6))

Or as standalone module (where d(n) simulates the roll of a n-sided dice):

carlo "d(20)" "d(6)+d(6)+d(6)"

example screenshot showing two histograms superimposed

Example 2

Sample values from max(0.5, random()**0.2).

Imported:

from carlo import plot
from random import random
plot(lambda: max(0.5, random()**0.2))

Or as standalone module (all functions from the random module are automatically available).

carlo "max(0.5, random()**0.2)"

example screenshot showing a skewed-looking histogram

Download files

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

Source Distribution

carlo-0.1.9.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

carlo-0.1.9-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file carlo-0.1.9.tar.gz.

File metadata

  • Download URL: carlo-0.1.9.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for carlo-0.1.9.tar.gz
Algorithm Hash digest
SHA256 b4fd780933ba84aba83e3e1fc52ba1d05f75f6c92f0d35a211f7c5241bc1b8bf
MD5 8e7dd4a7e250653231d65729c96e1a82
BLAKE2b-256 966fc15cb1d16ab6083abbb208a754f491bd64d0a07ba99a0e8e4e535d8c2ea7

See more details on using hashes here.

File details

Details for the file carlo-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: carlo-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for carlo-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 92d679f49ecffd27c9e81a121f6046ad3e5697f297e9c46c9b914cb3e6562359
MD5 24dba5af3f639335aa7664960714dfaa
BLAKE2b-256 be60b51a5f7fb191e204c8ff95a2d4847d68d3a74b302a89ddfd8903abcd9a5b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

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