SyntaxError when using Jupyter on Python
To start jupyter just type (as you did):
jupyter notebook
In any terminal of your choice.
For example, in Windows, go to the Command Prompt, which looks like this:
(as you are in Windows 10 just search cmd with the start menu and press enter)
...and type that, you don't use IDLE (Python) or any other IDE to start it.
If you don't want to go to the cmd each time you want to open the jupyter notebook, just create a shortcut, and when this window comes up:
... you have to type jupyter notebook
and then next, then it will ask you to give the shortcut a name, call it whatever you want and finish. And now you will be able to double click an icon and your browser will come up as it should.
Ccile
Updated on June 13, 2022Comments
-
Ccile almost 2 years
I installed jupyter package for Python but when I try to use it, I get SyntaxError : invalid syntax.
I tried to remove Python and reinstall it but I got the same result.
I use Windows 10, and Python 2.7.13 If more information are needed, please, ask.
Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import jupyter >>> jupyter notebook File "<stdin>", line 1 jupyter notebook ^ SyntaxError: invalid syntax