isdsucph / isds2022

Introduction to Social Data Science 2022 - a summer school course https://isdsucph.github.io/isds2022/
MIT License
21 stars 23 forks source link

Opening jupyter notebook or lab through the shell #1

Open Laurits00 opened 2 years ago

Laurits00 commented 2 years ago

When I try opening the jupyter notebook or the jupyter lab through the shell, I get this message:

File "", line 1 jupyter notebook ^ SyntaxError: invalid syntax

Shell

I can open the notebook and lab through the anaconda navigator, so I assume that it's no problem. I just wonder why it doesn't work.

Fraekfyr91 commented 2 years ago

Hi there.

It looks like you have entered the python environment on the commando prompt, the computer therefore read the command as pythob code and the error is just syntax. Maybe it will work if you exit the python environment.

Kind regards Lasse.

Laurits00 commented 2 years ago

Thank you! Is there any reason to open the notebook this way instead of through the Anaconda Navigator?

Another thing: I can't download ipynb files on my computer. I have downloaded assignment 0 on my computer, but when I try to open the actual file, my computer just asks: "How would you like to open this file?". As if I don't have the right application to open it.

Fraekfyr91 commented 2 years ago

No problem! Personally i only use the promtp if someone's looking.

The assingment is in the .ipynb format and you can open and edit it via jupyter notebook.

See maybe this guide: https://numeconcopenhagen.netlify.app/guides/jupyterlab/