Skip to main content

Python library for interactive topic model visualization. This is a port of the fabulous R package by Carson Sievert and Kenny Shirley.

LDAvis icon

pyLDAvis is designed to help users interpret the topics in a topic model that has been fit to a corpus of text data. The package extracts information from a fitted LDA topic model to inform an interactive web-based visualization.

The visualization is intended to be used within an IPython notebook but can also be saved to a stand-alone HTML file for easy sharing.

Note: LDA stands for latent Dirichlet allocation.

version status build status docs

Installation

  • Stable version using pip:

pip install pyldavis
  • Development version on GitHub

Clone the repository and run python setup.py

Usage

The best way to learn how to use pyLDAvis is to see it in action. Check out this notebook for an overview. Refer to the documentation for details.

For a concise explanation of the visualization see this vignette from the LDAvis R package.

Video demos

Ben Mabey walked through the visualization in this short talk using a Hacker News corpus:

Carson Sievert created a video demoing the R package. The visualization is the same and so it applies equally to pyLDAvis:

More documentation

To read about the methodology behind pyLDAvis, see the original paper, which was presented at the 2014 ACL Workshop on Interactive Language Learning, Visualization, and Interfaces in Baltimore on June 27, 2014.

Metadata

Release files for pyLDAvis 3.4.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 pyLDAvis 3.4.0
File Size Uploaded Provenance Actions
pyLDAvis-3.4.0.tar.gz 3.9 MB Without provenance Details for pyLDAvis-3.4.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pyLDAvis 3.4.0
File Interpreter ABI Platform Actions
pyLDAvis-3.4.0-py3-none-any.whl Python 3 none any Details for pyLDAvis-3.4.0-py3-none-any.whl
pyLDAvis-3.4.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for pyLDAvis-3.4.0-py2.py3-none-any.whl

Total release size: 9.1 MB

Release files / pyLDAvis-3.4.0.tar.gz

Download URL pyLDAvis-3.4.0.tar.gz
Size 3.9 MB
Tags Source
SHA-256 checksum
How to use checksums
c9eb2f49d1b0ec0cedefb391a0420c9fd85a355b212fca30884499c97ed05d72
BLAKE2b-256 checksum
How to use checksums
c887c25ac784d4da5f63a7d8b4b9a51c931e9392a4984bec631ebb8cf5de8da6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / pyLDAvis-3.4.0-py3-none-any.whl

Download URL pyLDAvis-3.4.0-py3-none-any.whl
Size 2.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f5be141e6be890e1df2b418fc825152cb8a36a5408fb774f74496c26cbd48afd
BLAKE2b-256 checksum
How to use checksums
04fdd5cad339072edc65b204729cc19f2c6f45e03c7393f9732d6b41ce9cf338
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / pyLDAvis-3.4.0-py2.py3-none-any.whl

Download URL pyLDAvis-3.4.0-py2.py3-none-any.whl
Size 2.6 MB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
ade3acaf6ebc86f539e6b39998e949ed9ee5a02d4f7131e693035956bdeba1db
BLAKE2b-256 checksum
How to use checksums
e7e1ee863ea082527d2d60202d186eba7dd83c1bdaae31f71f8a3d854bca1d0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Security for pyLDAvis 3.4.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