Skip to main content

PlotlyShare v2 (🚀 -> 🌥)

Downloads

The purpose of this package is to provide a seamless way to share interactive plotly plots, providing a similar experience to google docs/etc.

The idea is to preserve the interactivity and responsiveness of plotly plots with the ease of link-based sharing and without all the hassle of sending an html file, or worse, a static image/document. Two examples:

Installation

uv add "plotlyshare>=2"
pip install "plotlyshare>=2"

First Time Setup

To use this, run uv run -m plotlyshare setup/python -m plotlyshare setup and set your ==CLI Token== as follows:

Log in to https://plotlyshare.pages.dev

Click on your profile icon, here you will see a ==CLI Token== section. Click on that to reveal it and copy the token with the copy button.

Enter that value for the CLI_TOKEN in the setup prompt, then it will test the connection and report back.

Usage

And then whenever making a plot, simply import plotlyshare (import order doesn't matter) and set renderer='plotlyshare' when calling fig.show() like below:

With plotly.express

With plotly.graph_objects

import plotly.express as px
import plotlyshare
...
fig = px.line(...)
...
fig.show(renderer='plotlyshare')
import plotly.graph_objects as go
import plotlyshare
...
fig = go.Figure(...)
...
fig.show(renderer='plotlyshare')

And that's it, the package will upload your plot to plotlyshare and assign it a randomly generated name with a date like mushy pancake 24th Jul. It will display the name and the direct link to the plot, ready to share with anyone. Additionally, it also tells you how big the plot was so you can keep track of storage (unlikely to be a problem).

Plots are private by default and you can change the privacy for each plot from the dashboard.

Misc

Change your plot's name:

To add a title to your plot (instead of the default randomly generated one), you can edit it from

  1. your online dashboard
  2. the plot's page
  3. or even set it directly when uploading:
fig.show(renderer='plotlyshare', plot_name='this plot has a fancy name')

Screenshots:

image

Metadata

Release files for plotlyshare 2.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plotlyshare 2.0.1
File Size Uploaded Provenance Actions
plotlyshare-2.0.1.tar.gz 7.0 kB Without provenance Details for plotlyshare-2.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 15.1 kB

Release files / plotlyshare-2.0.1.tar.gz

Download URL plotlyshare-2.0.1.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3893a66710677fcffa30da1c96ddd72d54f4e674b563c726bc8f4d8697f9a69f
BLAKE2b-256 checksum
How to use checksums
6b662c177b16cf743383222e7039253ecbe0b6cd579a3ca1d9c632f9978d2120
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.2

Release files / plotlyshare-2.0.1-py3-none-any.whl

Download URL plotlyshare-2.0.1-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a940dcb79918e7bc7ac65ca8bd29f1e4958f8e270230e75933823c7715d05d7
BLAKE2b-256 checksum
How to use checksums
088e21ad40879a5cda01fe4a3d75edb22fbc033b2d7c44db0d9108057024ad2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.2

Security for plotlyshare 2.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files No provenance

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