plotly wrapper to make easy plots easy to make
Project description
Plotlywrapper wraps plotly to make easy plots easy to make. Check out the docs!
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,
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
plotlywrapper-0.0.30.tar.gz
(2.4 MB
view hashes)
Built Distribution
Close
Hashes for plotlywrapper-0.0.30-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0426f9402797d2ac0f3e11f63b968685831e5d240879b5e0ec7032f313b9a51 |
|
MD5 | e1d5500a9087bf26e2f4a53ea1575983 |
|
BLAKE2b-256 | 0f72df9c4a724c4f780912e8b9d27ffd58701be8e49fab7f7c1d396708633199 |