Seems like the %install-location
does not work on Colab. It’s not important for the functioning of the notebook (it just makes it start up a bit faster), so you can fix this problem by deleting the %install-location
line. I’ll investigate and fix this eventually.
This is an error that you would get from running an older version of swift-jupyter that doesn’t have %install
. You probably accidentally switched to a different VM from the VM you ran the install notebook on. (There are a lot ways this can happen: using a different accelerator type, not unchecking the “reset all runtimes” box in the “warning this is not authored by google” dialog).
There is one additional problem that you will run into after you get around those problems. The fastai notebooks expect to read some dependencies from a copy of the fastai repo on the local filesystem. So you will need to download the fastai repo onto the VM’s local filesystem and move the dependencies into the right place. To do this, execute this code in a python colab:
!git clone https://github.com/fastai/fastai_docs.git
!mv fastai_docs/dev_swift/* /content