简体   繁体   中英

Why can't I see graphs created with the plotly library on GitHub?

When I see the visualization displayed with the help of plotly, I would like to save it in a *.png file, eg with the help of a screenshot, and then in the readme file put a link to this file so that the image is displayed in the description of the repository. This is an example of such a reference in a readme file:

<img src="https://github.com/OliverWisn/data_visualization/blob/master/squares_plot.png?raw=true"/>

However, the image does not display. The image from the Matplotlib library displays excellently. I readed that GitHub performs a static render and it doesn't include the embedded HTML/JavaScript that makes up a plotly graph. I use python 3.7.9 and the Sublime Text 4. Or does anyone have an idea how to do it?

If you edit your README.md using GitHub's online editor, you can just paste the image you want to display. The editor will take care of saving it and linking to it.

Alternatively, you can save it manually as part of your repository alongside the README.md and then reference it like this:

![Your Image Title](your_image_name.png)

See also the official guide .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM