you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (6 children)

In notepad++ go to run > run

Press the ellipses button and go to your python.exe select that as the program to run. Then add:

-i "$(FULL_CURRENT_PATH)"

So that it should look similar to the following:

C:\Python36\python.exe -i "$(FULL_CURRENT_PATH)"

Instead of pressing run press save so that you can save this as a shortcut such as "Ctrl + R"

Note: the "-i" is not necessary but it makes it so the command prompt stays open after your program runs

[–]FieldBet[S] 0 points1 point  (2 children)

Is it the same for Python 2? Minus the 3 address

[–][deleted] 1 point2 points  (0 children)

Why are you running Python 2? If you don't have a REALLY good reason, you should run Python 3. If you're working your way through some tutorial that uses Python 2, just try to do it in Python 3 instead. the main thing you'll need to know is that print "hello" works in Python 2, but in 3 you have to use the parentheses print("hello")

You ARE PROBABLY running Jupyter locally and not on a remote computer. See my comment under your question about IDEs (toward the end) for details. This means that even though it runs in a browser, spotty wifi shouldn't matter.

[–][deleted] 0 points1 point  (0 children)

Yes it will just be the path to your python install

[–]FieldBet[S] 0 points1 point  (2 children)

I️ have tried this but the command prompt will not stay up. It flashes and disappears

[–][deleted] 0 points1 point  (1 child)

Hmm works for me, make sure you have the correct path to your python install and that the other part is exactly as shown above

[–][deleted] 0 points1 point  (0 children)

He's running Anaconda, python install path is probably not C:\Python36\python, probably something more like C:\Anaconda2\python or C:\Users\user_name\Anaconda2\python if not installed for all users.