server_url: The URL to an externally running instance of Orca.In addition to the executable property, the plotly.io.nfig object can also be used to configure the following options:
If this happens, follow the instructions in the error message and specify the full path to you orca executable using the plotly.io. configuration property.
If you're still having trouble, feel free to ask for help on the forums at Will be applied automatically in future sessions. If it is successful then you may want to save this configuration so that it > plotly.io. = '/path/to/orca'Īfter updating this executable property, try the export operation again.
Property to the full path to your orca executable. If you have installed orca, then for some reason plotly.py was unable to
$ conda install -c plotly plotly-orca=1.2.1Īlternatively, see other installation methods in the orca project README atĪfter installation is complete, no further configuration should be needed. If you haven't installed orca yet, you can do so using conda as follows: Searched for executable 'orca' on the following path: The orca executable is required in order to export figures as static images,īut it could not be found on the system path. If plotly.py is unable to find the executable, you'll get an error message that looks something like this:. Using the conda package manager, you can install these dependencies in a single command:$ conda install -c plotly plotly-orca=1.2.1 psutil requestsīy default, plotly.py searches the PATH for an executable named orca and checks that it is a valid plotly orca executable. There are 3 general approaches to installing orca and its Python dependencies. Because of this, the first image export operation in an interactive session will typically take a couple of seconds, but then all subsequent export operations will be significantly faster, since the server is already running. See for more information.īy default, plotly.py launches the orca server process the first time an image export operation is performed, and then leaves it running until the main Python process exits. In order to provide the fastest possible image export experience, plotly.py launches orca in server mode, and communicates with it over a local port. Orca can run as a command-line utility or as a long-running server process. Orca is an Electron application that inputs plotly figure specifications and converts them into static images. Please refer to the Static Image Export section for general information on creating static images from plotly.py figures. We now recommend Kaleido, as described in the Static Image Export section. Run orcaflex from within an activated conda environment.This section covers the lower-level details of how plotly.py can use orca to perform static image generation.Īs of plotly version 4.9, Orca is no longer the recommended way to do static image export. In the prompt, navigate to the orcaflex api folder and run the install script Not sure if this is still needed
Go the the "anaconda" or "miniconda" prompt.Īctivate your environment, for example: activate my_env
Windows Registry Editor Version orcaflex python api
Replace c:\\_python_miniconda_or_anaconda_folder_\\envs\\_env_name_\\ with the installation path of anaconda.replace 3.8 and p圓8 with the python version that you are usingįirst of all consider to use environments.Means you'd have to replace by Users\\Ruben\\miniconda3 or whatever your user-name is. By default anaconda installs in the user-path which replace _python_miniconda_or_anaconda_folder_ with the location where you installed python.replace _env_name_ with the name of your environment.copy the contents below into a text-file.This is done by adding a few entries to the windows registry. Now we need to tell orcaflex where to find python. Which is a shame because I do not know many people who do NOT use it. Orcaflex has issues supporting python installed using anaconda or miniconda.