How to display both in GitHub (as svg) and local without sacrificing interactive?

My goal is to display interactive charts. The problem is GitHub does not support it, the charts are not displayed. So, I am looking for the 2nd best option, that is non-interactive in GitHub and interactive in local.

The problem is that does not do that.

What I’ve tried:

  1."svg+plotly_mimetype+notebook") → interactive in local. not shown in GitHub.
  2."svg") → not interactive in local, shown in GitHub.
  3. iplot(fig) → interactive in local, not shown in GitHub.

I am confused.