Write Permissions in Paperspace Python/Jupyter

Greetings, I am new to Fast.ai, Paperspace, and cloud computing in general. I am struggling to get Paperspace to work for me.

Specifically, I would like to train a classifier from my own dataset using the deep learning lesson 1 notebook as my framework, however, I am frequently running into permission problems. I cannot programmatically write to my Paperspace VM.

The pipeline I would like to setup is one in which I:

1)Download google images to my Paperspace VM via https://github.com/hardikvasa/google-images-download
2) Train a classifier via lesson 1 notebook, specifying the path to my images

I am repeatedly failing at step 1 due to permission errors within python scripts.

A simple os.mkdir() call yields permission denied. I can do sudo mkdir within terminal, but this is not very efficient. How can I rectify this?

Hi @mossCoder! You can execute your python script with sudo permissions, like:
sudo python yourscript.py

In terminal you probably don’t need to execute sudo mkdir, just typing mkdir should be enough.

The reason for this can be found on StackOverflow: https://stackoverflow.com/a/5231994/632604
or Python documentation: https://docs.python.org/2/library/os.html#os.mkdir