GEMDAT-repos / gemdat-notebooks

Notebooks used to explain GEMDAT
Apache License 2.0
2 stars 0 forks source link

Some notebooks take long to load #17

Open stefsmeets opened 3 weeks ago

stefsmeets commented 3 weeks ago

The plotly plots are very heavy, especially if we are rendering 70k points for ~80 atoms or having multiple in the same notebook. Consider setting the backend to matplotlib for some of the notebooks.

stefsmeets commented 3 weeks ago

The shape notebook has this solution for plotly:

img_bytes = fig.to_image(format="png")
display(Image(img_bytes))