✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🏦 Standard & Poor's chooses Dash Enterprise for ESG analysis. Learn why, sign up for the June 23 Webinar here!

Any luck using html.Script for GitHub Gists

Hi there - -model_view_bert.ipynb · GitHub

I have a gist and I am trying to use it in the script html component function, a few hours I have given up. Let me know if anyone hase any luck?

Hi @chriddyp, do you know if this has been attempted before? I am sure more and more people would like to embed jupyter notebooks inside dash notebooks - is there another way to do this?

This would be a nice function as it would allow us to make Google Colab snippets appear in Dash.

I have looked around on the forum, and I don’t think that this has been answered yet. I wonder what the solution will be.

In the past I’ve seen issues where github links don’t have the correct “content-type” - they set the content type to text/plain or html, rather than e.g. javascript.

I used to use rawgit to get around this. Looks like it has since been discontinued, but the mentioned some other alternatives. See: