Skip to main content

A wrapper of Plotly Python for lightweight plots

Project description

PyPI version License

plotly_light

A wrapper of Plotly Python aiming for lightweight plots.

Main features

:heavy_check_mark: [SMALLER PLOT SIZE] Plotly Light does not keep all raw data for a bar plot including a histogram, meaning you can keep the file size of a Jupyter Notebook file or a HTML file containing the plot very small even when drawing a histogram with a huge dataset.

:heavy_check_mark: [SEPARATE DIRECTORY FOR HTML PLOTS] By default, each plot drawn by Plotly Light in a Jupyter Notebook is saved as a HTML file in a directory named <notebook-basename>.iframe_figures/, enabling us to keep the file size of a Notebook small and to easily obtain a single HTML file only of a plot. This feature can be disabled.

:heavy_check_mark: [COMPREHENSIBLE FUNCTION ARGUMENTS] All positional and optional arguments of the functions in Plotly Light are explicitly written (without using *args nor **kwargs), meaning you can easily find an argument you want by peeking the definition and docstring of a function (which is a feature typically provided by Jupyter Notebook and other editors).

:x: [LIMITED FEATURES AVAILABLE] We provide only basic plotting functions and features, meaning not everything you can do with the original Plotly can be done with Plotly Light. However, Plotly Light is usually sufficient for most of the simple purposes.

Requirements

  • Python 3
  • Plotly Python >=6
  • Jupyter Notebook >= 7 (required by Plotly Python)

How to install

1. Via PyPI

$ pip install plotly-light

2. Via this GitHub repository

$ git clone https://github.com/yoshihikosuzuki/plotly_light
$ cd plotly_light
$ pip install .

How to use

See Reference.

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

plotly_light-2.0.1.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

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

plotly_light-2.0.1-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

Details for the file plotly_light-2.0.1.tar.gz.

File metadata

  • Download URL: plotly_light-2.0.1.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for plotly_light-2.0.1.tar.gz
Algorithm Hash digest
SHA256 7b789449a163a1ade7f4f504e5c241ed8936f48ad2198f5f2429439070515a14
MD5 5249f58b83f36a5801a29cc82df92f0c
BLAKE2b-256 5564e8ad18188706f5075eb7484f8cd52953a75c6e1cc5122daf10ccc5ee1987

See more details on using hashes here.

File details

Details for the file plotly_light-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: plotly_light-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 23.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for plotly_light-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ea6e5d3694a2c192ae3f149dd49363081ab4e94c245f4645605509f52e2d2b10
MD5 b46874fde4a05b6e74376c8b8e4f1311
BLAKE2b-256 20ef62e098c2a3270b3d896b39c7384f481b2ed2917784e11998cf7fc6f54d0f

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