Skip to main content

A utility to make CodePens out of Plotly.py figures

Project description

fig2pen

Installation

pip install -U fig2pen

Usage

import fig2pen

fig2pen.single(fig)
fig2pen.react_multi([fig_state1, fig_state2])

# default behaviour is to erase fig.layout.template
fig2pen.single(fig, template=True) # don't strip out layout.template

# default Plotly.js version is the same one as is built into active Plotly.py
fig2pen.single(fig, cdn_version="1.58.4") # use specific JS version
fig2pen.single(fig, branch="plotly.js_branch_name") # use specifc CircleCI artifact

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

fig2pen-0.4.0.tar.gz (2.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page