Snippets
Open in Colab for Github
[](https://colab.research.google.com/github/{{user_name}}/{{repo_name}}/blob/{{branch_name}}/{{notebook_name}}.ipynb)

Read Secrets in Google colab
from google.colab import userdata
project_id=userdata.get("GOOGLE_CLOUD_PROJECT_ID")
Convert .ipynb to HTML file
from google.colab import files
f = files.upload()
# Convert ipynb to html
import subprocess
file0 = list(f.keys())[0]
_ = subprocess.run(["pip", "install", "nbconvert"])
_ = subprocess.run(["jupyter", "nbconvert", file0, "--to", "html"])
# download the html
files.download(file0[:-5]+"html")