Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static image export does not complete #112

Closed
dakenblack opened this issue Aug 11, 2021 · 4 comments
Closed

Static image export does not complete #112

dakenblack opened this issue Aug 11, 2021 · 4 comments

Comments

@dakenblack
Copy link

Hi,

As the title says static image export does not complete for ~10 minutes, I kill it at that point.

Here is my conda environment:

name: pytest
channels:
  - anaconda
  - defaults
dependencies:
  - brotlipy=0.7.0=py39h2bbff1b_1003
  - ca-certificates=2020.10.14=0
  - certifi=2021.5.30=py39haa95532_0
  - cffi=1.14.6=py39h2bbff1b_0
  - cryptography=3.4.7=py39h71e12ea_0
  - idna=2.10=py_0
  - openssl=1.1.1k=h2bbff1b_0
  - pip=21.2.2=py39haa95532_0
  - pycparser=2.20=py_2
  - pyopenssl=19.1.0=py_1
  - pysocks=1.7.1=py39haa95532_0
  - python=3.9.0=h6244533_2
  - setuptools=52.0.0=py39haa95532_0
  - six=1.15.0=py_0
  - sqlite=3.36.0=h2bbff1b_0
  - tzdata=2021a=h52ac0ba_0
  - urllib3=1.25.11=py_0
  - vc=14.2=h21ff451_1
  - vs2015_runtime=14.27.29016=h5e58377_2
  - wheel=0.36.2=pyhd3eb1b0_0
  - win_inet_pton=1.1.0=py39haa95532_0
  - wincertstore=0.2=py39h2bbff1b_0
  - pip:
    - kaleido==0.2.1
    - plotly==5.1.0
    - tenacity==8.0.1

I'm trying this on windows 10, let me know if there is any other environment details you would need.

Here is a reproducible example (just the plotly example with a write_image call)

import plotly.graph_objects as go
from datetime import datetime

fig = go.Figure()
fig.add_trace(go.Scatter(y=[2, 1, 4, 3]))
fig.update_layout(title = 'Hello Figure')

print('Trying to export at', datetime.now())

fig.write_image('chart.png')

print('Finished export at', datetime.now())

Not sure if this is relevant, but I have installed plotly and kaleido using pip because conda would return conflict errors when I tried to install plotly.

Thanks for your help.

@roydagan
Copy link

roydagan commented Sep 9, 2021

Also happened to me, waiting for an answer as well, thanks!

@nicolaskruchten nicolaskruchten transferred this issue from plotly/plotly.py Sep 9, 2021
@jonmmease
Copy link
Collaborator

Are you able to reproduce the issue from a python/ipython repl? If so, the instructions in this issue might yield some extra info that would be helpful (#36 (comment)).

@dakenblack
Copy link
Author

dakenblack commented Sep 10, 2021

Hi @jonmmease, Thanks for your response. I have read through the related issue and I have not made any progress. Disabling mathjax did not solve my problem, I am also unable to interrupt the repl when I've run the "write_image" call so I can't get the output through. I have tried inside Jupyter and inside the base python interface.

PS: disabling the internet does not fix it either.

@gvwilson
Copy link
Collaborator

Thanks for your interest in Kaleido. We are currently working on an overhaul that might address your issue - we hope to have news in a few weeks and will post an update then. Thanks - @gvwilson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants