Skip to main content

langevitour for Python

PyPI - Version PyPI - Python Version

Python interface for langevitour a HTML widget that randomly tours projections of a high-dimensional dataset with an animated scatter-plot.

For more information see the langevitour Github repo or website.

Installation

pip install langevitour

Python usage

import numpy as np

from langevitour import Langevitour

# Generate a sample dataset
X = []
group = []
n = 20000

def r():
    return np.random.normal(0, 0.02)

for i in range(n):
    a = i/n * np.pi * 2
    X.append([
        10 + np.sin(a)/3 + r(),
        20 + np.sin(a*2)/3 + r(),
        30 + np.sin(a*3)/3,
        40 + np.sin(a*4)/3,
        50 + np.sin(a*5)/3
    ])
    group.append(int(i*4/n))

# Extra axes (specified as columns of a matrix)
extra_axes = [[1], [2], [0], [0], [0]]
extra_axes_names = ["V1+2*V2"]

tour = Langevitour(
    X,
    group=group,
    extra_axes=extra_axes,
    extra_axes_names=extra_axes_names,
    point_size=1,
)
tour.write_html("langevitour_plot.html")

langevitour also works in jupyter notebooks.

Metadata

Release files for langevitour 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langevitour 0.8.0
File Size Uploaded Provenance
langevitour-0.8.0.tar.gz 55.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for langevitour 0.8.0
File Interpreter ABI Platform
langevitour-0.8.0-py3-none-any.whl Python 3 none any Details

Total release size: 110.4 kB

Release files / langevitour-0.8.0.tar.gz

Download URL langevitour-0.8.0.tar.gz
Size 55.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c3a8bc150bdbd1e94645b5446244e40a4fd3f08d0c90e46ece606b038024d633
BLAKE2b-256 checksum
How to use checksums
d3e49cb6e52bc75a5f7c4367c6a8d9458c1cd36b969ae2d29f055d69913b3c51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.28.1

Release files / langevitour-0.8.0-py3-none-any.whl

Download URL langevitour-0.8.0-py3-none-any.whl
Size 55.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c5bfeb0664c4c4a9844f0fcd1b2254af8ca9810371ccc70c5a2f219031b7f1ed
BLAKE2b-256 checksum
How to use checksums
6e268eb41db046f9ed1f1334cdaa282c8d4a0d3127c6fd94b6bb4ee5d3324c2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.28.1

Security for langevitour 0.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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