Hi,
I am trying to save an image to local using .write_image() which is giving error. Below are the two errors for two different engines.
ORCA-
ValueError:
The orca executable is required to export figures as static images,
but it could not be found on the system path.
I have already installed orca and set the config executing below command:
plotly.io.orca.config.executable = โC:\Users\mchaudhary\AppData\Local\anaconda3\Lib\site-packages\orcaโ
KALEIDO-
ValueError:
Image export using the โkaleidoโ engine requires the kaleido package,
which can be installed using pip:
$ pip install -U kaleido
I have also installed kaleido on my system executing below command:
python -m pip install --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.org install kaleido-0.1.0.post1-py2.py3-none-win_amd64.whl
Below is my code:
fig = px.bar(dv01_exp_by_tenure_graph_data, x="level_0", y="Value", color="Asset Class",
hover_data=['Value'], barmode = 'stack', text_auto=True)
fig.write_image("dv01_plotly.png")