I am currently trying to get the Python Plotly package to play nicely with serverless computing. This works perfectly apart from when I try to export an image using Orca.
Since it is difficult to install Orca inside of the container than runs my serverless function, I want to be able to run Orca in another container. This way, I can use the default container from the Orca repository quay.io/plotly/orca and simply start it together with the container for my function app.
Therefore, I need to be able to let the
plotly.io module know that I have a running Orca server and it should use the running one instead of starting up one locally.
I have looked into the code of the
plotly.io module and tried to set the
pio.orca.config.port variable to the port that is exposed by my local container and the Orca server runs behind. However, currently the
plotly.io module does not seem to check whether we already have a running server behind the given port and start one up anyway.
Am I able to change this behaviour in any way? I did not find anything in the code but I could have missed something.