question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Distributing this thing

See original GitHub issue

On top of the @plotly/image-exporter npm package , we’ll add standalone Mac, Linux and Window binaries to the release section after every release similar to what’s done currently in plotly-database-connector.

Standalone binaries ship with node.js and electron bundled up, but without the fonts we use on prod (if users want the fonts, they’ll have to install them locally or use docker). We’ll probably use electron-packager same as plotly-database-connector for this task, although there are other options. This part is easy.

Now, we need to figure how to distribute image-exporter to python and R API users. We’ll also need to write (thin) python and R wrapper around the plotly-graph-exporter CLI command e.g in python:

from subprocess import call
import json

fig = {"data": [{"y": [1,2,1]}]}
call(['plotly-graph-exporter', json.dumps(fig)])

For distributing, I can think of three different options:

  1. Include the image-exporter standalone binaries in plotly.py and plotly.R packages and write the wrapper there, similar to what we currently do with the plotly.js bundle for offline. Potential problems, we’ll have to make platform-dependent installs - is that possible with pip and CRAN? Download times might increase significantly too.
  2. Make new plotly-image-exporter py/pip and R/CRAN packages from this repo - which would include the py/R wrappers. This option would require platform-specific install too.
  3. Make users download and install the standalone binaries from this repo’s release section, add wrapper code to plotly.py and plotly.R and make them spit out errors if called when plotly-graph-exporter isn’t installed.

cc @chriddyp @cpsievert @jackparmer

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:16 (15 by maintainers)

github_iconTop GitHub Comments

3reactions
etpinardcommented, May 17, 2018

Orca v1.0.0 is out:

Please see the installations instructions here.

Our release process is far from perfect, but good enough I’d say to close this issue closed.

1reaction
mungojamcommented, Sep 28, 2018

It would be useful for my workplace if this was bundled in a python package as we don’t currently have a good internal way to distribute anything else like node packages as we are python focused. You can make OS dependent wheel files as other projects do

Read more comments on GitHub >

github_iconTop Results From Across the Web

Distribute Definition & Meaning - Merriam-Webster
distribute implies an apportioning by separation of something into parts, units, or amounts. distributed food to the needy. dispense suggests ...
Read more >
Distribute definition and meaning | Collins English Dictionary
1. transitive verb. If you distribute things, you hand them or deliver them to a number of people. Students shouted slogans and distributed...
Read more >
Distributing Content - YouTube
Distributing Content. 17 views 2 years ago. Jenallee. Jenallee. 1.31K subscribers. Subscribe. 0. I like this. I dislike this.
Read more >
TWICE - The Best Thing I Ever Did (Line Distribution + Lyrics ...
Requested by Patreon Supporter: G.Y.O.RSupport me on Patreon: patreon.com/random_kChannel for Japanese releases: ...
Read more >
Sure Thing (Cover) Line Distribution (Color Coded) - YouTube
What is the line distribution like for BLACKPINK's cover of Miguel's Sure Thing ?Facebook: facebook.com/hexa6onkpopTwitter ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found