colab

Accessing extracted zip file in Colab

微笑、不失礼 提交于 2020-12-14 11:43:56
问题 Some case study here. I am trying to play with PIL library in Google Colab, and can't get ImageFont to read my originally zipped file. The code: import requests, zipfile, io r3 = requests.get('https://sources.archlinux.org/other/community/ttf-roboto/ttf-roboto-hinted-2.138.zip') z3 = zipfile.ZipFile(io.BytesIO(r3.content)) z3.extractall() So far so good, and if I browse my directory with ls, it shows me the elements: ls Shows: LICENSE RobotoCondensed-Regular.ttf __MACOSX/ Roboto-Italic.ttf

Accessing extracted zip file in Colab

放肆的年华 提交于 2020-12-14 11:40:50
问题 Some case study here. I am trying to play with PIL library in Google Colab, and can't get ImageFont to read my originally zipped file. The code: import requests, zipfile, io r3 = requests.get('https://sources.archlinux.org/other/community/ttf-roboto/ttf-roboto-hinted-2.138.zip') z3 = zipfile.ZipFile(io.BytesIO(r3.content)) z3.extractall() So far so good, and if I browse my directory with ls, it shows me the elements: ls Shows: LICENSE RobotoCondensed-Regular.ttf __MACOSX/ Roboto-Italic.ttf

Accessing extracted zip file in Colab

怎甘沉沦 提交于 2020-12-14 11:40:17
问题 Some case study here. I am trying to play with PIL library in Google Colab, and can't get ImageFont to read my originally zipped file. The code: import requests, zipfile, io r3 = requests.get('https://sources.archlinux.org/other/community/ttf-roboto/ttf-roboto-hinted-2.138.zip') z3 = zipfile.ZipFile(io.BytesIO(r3.content)) z3.extractall() So far so good, and if I browse my directory with ls, it shows me the elements: ls Shows: LICENSE RobotoCondensed-Regular.ttf __MACOSX/ Roboto-Italic.ttf