Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐞 :beetle: |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐞 :beetle: |
import sys | |
import io | |
import os | |
from IPython.nbformat.current import read, write | |
def remove_outputs(nb): | |
"""remove the outputs from a notebook""" | |
for ws in nb.worksheets: | |
for cell in ws.cells: | |
if cell.cell_type == 'code': |
### Download a file to Local System from Colab | |
from google.colab import files | |
with open('example.txt', 'w') as f: | |
f.write('some content') | |
files.download('example.txt') | |
#====================================================================================================== | |
#upload file to Colab from Local System | |
from google.colab import files | |
uploaded = files.upload() |