mwermelinger / Learn-to-code-for-data-analysis

Jupyter notebooks and datasets for this course
102 stars 226 forks source link

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

Open VanKeown opened 2 years ago

VanKeown commented 2 years ago

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.

mwermelinger commented 2 years ago

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.

VanKeown commented 2 years ago

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 commented 2 years ago

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.

mwermelinger commented 2 years ago

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.