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 details)

Uploaded Source

File details

Details for the file fig2pen-0.4.0.tar.gz.

File metadata

  • Download URL: fig2pen-0.4.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.7

File hashes

Hashes for fig2pen-0.4.0.tar.gz
Algorithm Hash digest
SHA256 d36849fdf7cc27b7d56a118673f9e2cd0e30dc9c7cbcef35e56e9140c821191c
MD5 b94737e5a1b7e5f1e79210946b0fc345
BLAKE2b-256 a41352e92072a7dd198700fa078e01aa9ee9a904bd0c013cd363ecb23dbf9f6d

See more details on using hashes here.

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