Before uploading code, you will need to create a compute capsule to contain it.
After logging in, head to https://codeocean.com/dashboard, where you will find the New Compute Capsule button. Clicking this will take you to a new private workspace where you can configure your computational environment, upload and run your code, and, when you are ready, publish your capsule.