Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simonw/datasette-seaborn
Statistical visualizations for Datasette using Seaborn
https://github.com/simonw/datasette-seaborn
datasette datasette-io datasette-plugin seaborn visualization
Last synced: 3 months ago
JSON representation
Statistical visualizations for Datasette using Seaborn
- Host: GitHub
- URL: https://github.com/simonw/datasette-seaborn
- Owner: simonw
- Created: 2020-09-11T13:43:08.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-22T01:49:36.000Z (almost 3 years ago)
- Last Synced: 2024-10-06T20:19:01.193Z (3 months ago)
- Topics: datasette, datasette-io, datasette-plugin, seaborn, visualization
- Language: Python
- Homepage: https://datasette-seaborn-demo.datasette.io/
- Size: 25.4 KB
- Stars: 11
- Watchers: 3
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# datasette-seaborn
[![PyPI](https://img.shields.io/pypi/v/datasette-seaborn.svg)](https://pypi.org/project/datasette-seaborn/)
[![Changelog](https://img.shields.io/github/v/release/simonw/datasette-seaborn?include_prereleases&label=changelog)](https://github.com/simonw/datasette-seaborn/releases)
[![Tests](https://github.com/simonw/datasette-seaborn/workflows/Test/badge.svg)](https://github.com/simonw/datasette-seaborn/actions?query=workflow%3ATest)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/datasette-seaborn/blob/main/LICENSE)Statistical visualizations for Datasette using Seaborn
## Installation
Install this plugin in the same environment as Datasette.
$ datasette install datasette-seaborn
## Usage
Navigate to the new `.seaborn` extension for any Datasette table.
The `_seaborn` argument specifies a method on `sns` to execute, e.g. `?_seaborn=relplot`.
Extra arguments to those methods can be specified using e.g. `&_seaborn_x=column_name`.
## Configuration
The plugin implements a default rendering time limit of five seconds. You can customize this limit using the `render_time_limit` setting, which accepts a floating point number of seconds. Add this to your `metadata.json`:
```json
{
"plugins": {
"datasette-seaborn": {
"render_time_limit": 1.0
}
}
}
```## Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-seaborn
python3 -mvenv venv
source venv/bin/activateOr if you are using `pipenv`:
pipenv shell
Now install the dependencies and tests:
pip install -e '.[test]'
To run the tests:
pytest