Learn-to-code-for-data-analysis icon indicating copy to clipboard operation
Learn-to-code-for-data-analysis copied to clipboard

Can't upload files from my home desktop to Jupyter...

Open VanKeown opened this issue 3 years ago • 4 comments

Hi, I'm totally new to coding! I have been following the instructions, which are not always so clear for someone who's totally new this -please forgive me if I'm mistinterpreting something! I've saved the work files to my desktop, opened Juptyer and clicked on 'upload', selected the files...it says uploading but nothing is happening! Please help. Tjx.

VanKeown avatar Jan 31 '22 19:01 VanKeown

Are you using Jupyter locally (eg with Anaconda) or remotely (eg with Cocalc)? If the latter, then indeed you must upload your files so that you can work with them remotely. I haven't looked at Cocalc for a long while but if I remember correctly you must create a project on Cocalc and then upload your local files to that project.

If you're using Jupyter on your machine, then there's nothing to upload. When you start Jupyter you will see a list of the files and folders where Jupyter started (normally your home folder). Keep clicking on folders until you navigate to the place where you stored your files. Then click on the notebook file you want to start with.

Notice that if e.g. Jupyter starts in your home folder C:\User\vankeown but you saved your files in say D:\Docs\LCDA then you won't be able to open them because Jupyter's file browser only allows to navigate to a sub(subsub...)folder of the start folder.

mwermelinger avatar Feb 01 '22 17:02 mwermelinger

Thanks. And apologies for the delayed response - I had to travel overseas so have just returned. Yes -I'm using Jupyter on my pc. And, I could see that once I installed the Ananconda software, I was able to launch the Jupyter notebok from there & with the files in situ. On I go!

VanKeown avatar Feb 14 '22 13:02 VanKeown

Hello! Can you help me with the data variable for in Excerise 7, dataframes. I've tried several ways to write the variable but none work: image

MANY THANKS.

VanKeown avatar Feb 15 '22 14:02 VanKeown

A name error means that the Python interpreter doesn't know what a name refers to. Either you've misspelled it or, in this case, you probably haven't run an earlier code cell that defines the data variable. As mentioned somewhere in the course, it's best to do a "run all cells" when opening a notebook, or do a "run all above" so that all cells before the current one are run.

mwermelinger avatar Feb 16 '22 09:02 mwermelinger