Last active
November 4, 2019 16:32
-
-
Save misterhay/97119a75d67c0070481a747176dd108b to your computer and use it in GitHub Desktop.
Create a Colab link for notebook from GitHub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){var url=location.href;var res=url.split("github.com/");var site=res[1];colabGitUrl="https://colab.research.google.com/github/"+site;window.prompt("Colab gitpuller link",colabGitUrl);})(); |
If you prefer a bookmarklet that just opens the notebook in Colab:
javascript:(function(){var url=location.href;var res=url.split("github.com/");var site=res[1];colabGitUrl="https://colab.research.google.com/github/"+site;window.open(colabGitUrl);})();
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
var url = location.href;
var res = url.split("github.com/");
var site = res[1];
colabGitUrl = "https://colab.research.google.com/github/" + site;
window.prompt("Colab gitpuller link",colabGitUrl);