Skip to main content

Plotlywrapper: pythonic plotly

Build Status rtd.io PyPI version PyPI codecov.io Code Health Scrutinizer Code Quality

News Tests are failing due to release of plotly v3. Need to reevaluate need of library, in the meantime it still works with plotly v2.

Plotlywrapper wraps plotly to make easy plots easy to make. Check out the docs!

https://cloud.githubusercontent.com/assets/86304/17239866/2c4c30b2-551c-11e6-9bb8-7ed467ebdacb.png

2D Brownian Bridge

Motivation

Compare the following code snippets which generate the same plot.

Plotly

Taken from https://plot.ly/python/getting-started/

import plotly
from plotly.graph_objs import Scatter, Layout
plotly.offline.plot({
"data": [
    Scatter(x=[1, 2, 3, 4], y=[4, 1, 3, 7])
],
"layout": Layout(
    title="hello world"
)
})

Plotlywrapper

import plotlywrapper as pw
plot = pw.line(x=[1, 2, 3, 4], y=[4, 1, 3, 7])
plot.title('hello world')
plot.show()

Install

To install the latest release:

pip install plotlywrapper

Demo

Try out the interactive demo here,

Binder

or view the notebook statically.

JupyterLab

Plotly doesn’t render in JupyterLab by default. You need to install the JupyterLab Plotly extension:

jupyter labextension install @jupyterlab/plotly-extension

Developed in this repo.

Testing

To test run:

make test

Metadata

Release files for plotlywrapper 0.1.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 plotlywrapper 0.1.0
File Size Uploaded
plotlywrapper-0.1.0.tar.gz 2.4 MB Details

Built distribution (wheel)

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

Total release size: 2.4 MB

Release files / plotlywrapper-0.1.0.tar.gz

Download URL plotlywrapper-0.1.0.tar.gz
Size 2.4 MB
Tags Source
SHA-256 checksum
How to use checksums
956d986e1162222e6dec97ae9f5f4134cd147b4a18e56ebdabaa685c0d7e6436
BLAKE2b-256 checksum
How to use checksums
5cb7cf169097b3d64e2046c10a71a57d2b044d53a6e8f448438e8ea2bf65c6c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / plotlywrapper-0.1.0-py3-none-any.whl

Download URL plotlywrapper-0.1.0-py3-none-any.whl
Size 32.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
caad8bb244a73d5761c2a2061ec6102b240aa49cf1912e019a8a6fd51eb32f3e
BLAKE2b-256 checksum
How to use checksums
f6e1c956743584543a7e3cc9d3c7ea45e6ca3957c036656610e3a0990cfa0a3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.29

2 release files

0.0.28

2 release files

0.0.27

1 release file

0.0.26

1 release file

0.0.25

1 release file

0.0.24

1 release file

0.0.23

1 release file

0.0.22

1 release file

0.0.21

1 release file

0.0.20

1 release file

0.0.19

1 release file

0.0.18

1 release file

0.0.17

1 release file

0.0.16

1 release file

0.0.15

1 release file

0.0.14

1 release file

0.0.13

1 release file

0.0.12

1 release file

0.0.11

1 release file

0.0.10

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

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