Black Lives Matter. Please consider donating to Black Girls Code today.

How to display plotly graph on github pages?

I am trying to display a plotly graph on github page (not the static image)

On Stackoverflow I found this:

I generated the HTML file and set up _includes folder, but it didnt work for me, I couldn’t find any similar question on Google, please help

I did this in my repository. You need to enable Github Pages for the repo in the Settings but you don’t need to use Jekyll. You can commit the output files of write_html() and push it to the repository. After that you can access the graph by using URL in format <username><repository>/<filepath>.

This is an example of how I configure my repo: