plotly / plotly/plotly.R

can we support export()-ing to a remote orca server?

Open
#1,905 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
2.7k
Forks
641
PR merge metrics
No merged PRs in 30d

Description

It looks like the orca_serve() function starts up a server and returns a method that I can use to export a graph to the server.

What if I already have a server running on another machine? I would like to be able to export a graph to that already running server without starting a new server.

The reason I ask for this feature: I want to export my graph inside of a Shiny app that is deployed in a containerized environment. Both my app and orca have really big dependency trees and I have spent a lot of time (so far unsuccessfully) trying to build a Docker image that can support both my app and orca.

If this feature existed, I would not need to create a new docker image. I could use the off-the-shelf orca container. I could use docker-compose to start up both my app and the orca server, and then in my app I could submit to the running orca server.

Is this something you would be interested in supporting? I imagine orca_serve() with a couple extra arguments, like hostname="localhost", start_server=TRUE which I could override to point to an already-running server on another host.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the orca_serve() function and the export method it returns, then trace how the current server is started and contacted. Define the change around exporting graphs to an already-running remote Orca server without starting another server, including the Shiny and Docker Compose use case described here.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, r
Domain
api, data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.