Using Plotly with AWS Sagemaker (installing Orca problem)

Hello Friends,

I am trying to launch a .ipynb on sagemaker that has some charts generated by plotly offline, but I run into issues when it comes to installing Orca.

I did the correct installation using conda install, but keep coming across this error:

ValueError:
The orca executable is required to export figures as static images,
but it could not be found on the system path.

Searched for executable ‘/path/to/orca’ on the following path:
/home/ec2-user/anaconda3/envs/amazonei_mxnet_p36/bin
/usr/libexec/gcc/x86_64-amazon-linux/4.8.5
/usr/local/cuda/bin
/usr/local/bin
/opt/aws/bin
/usr/local/mpi/bin
/usr/libexec/gcc/x86_64-amazon-linux/4.8.5
/opt/amazon/openmpi/bin
/opt/amazon/efa/bin/
/usr/libexec/gcc/x86_64-amazon-linux/4.8.5
/home/ec2-user/anaconda3/bin/
/usr/local/cuda/bin
/usr/local/bin
/opt/aws/bin
/usr/local/mpi/bin
/usr/libexec/gcc/x86_64-amazon-linux/4.8.5
/usr/local/cuda/bin
/usr/local/bin
/opt/aws/bin
/home/ec2-user/src/cntk/bin
/usr/local/mpi/bin
/opt/aws/neuron/bin
/home/ec2-user/anaconda3/envs/JupyterSystemEnv/bin
/home/ec2-user/anaconda3/bin/
/usr/libexec/gcc/x86_64-amazon-linux/4.8.5
/usr/local/cuda/bin
/usr/local/bin
/opt/aws/bin
/usr/local/mpi/bin
/usr/libexec/gcc/x86_64-amazon-linux/4.8.5
/opt/amazon/openmpi/bin
/opt/amazon/efa/bin/
/usr/local/bin
/bin
/usr/bin
/usr/local/sbin
/usr/sbin
/sbin
/opt/aws/bin
/opt/aws/bin

If you haven’t installed orca yet, you can do so using conda as follows:

$ conda install -c plotly plotly-orca

Alternatively, see other installation methods in the orca project README at

After installation is complete, no further configuration should be needed.

If you have installed orca, then for some reason plotly.py was unable to
locate it. In this case, set the plotly.io.orca.config.executable
property to the full path of your orca executable. For example:

>>> plotly.io.orca.config.executable = '/path/to/orca'

Is there any way to use it with Sagemaker, or is it incompatible