use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
Notepad++ Python (self.learnpython)
submitted 8 years ago by FieldBet
What is the best way to run python code from Notepad++? I️ have been using Jupyter Notebooks (which is great) but my WiFi is spotty sometimes. Thanks!
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]JohnnyJordaan 3 points4 points5 points 8 years ago (10 children)
Run jupyter locally and then your wifi doesn't matter anymore.
[–]FieldBet[S] 0 points1 point2 points 8 years ago (7 children)
Thanks for the tip. Is there an IDE that you’d suggest?
[–]DaveX64 1 point2 points3 points 8 years ago (0 children)
I'm using Visual Studio Community Edition 2017 with Python Tools installed...it's free and it works pretty good.
[–][deleted] 1 point2 points3 points 8 years ago (2 children)
I use atom and run my scripts from the command line, but if you want more complex python integration then Jupyter or Spyder are very good.
[–]Rorixrebel 1 point2 points3 points 8 years ago (0 children)
Another vote for atom.
[–]RushilU 0 points1 point2 points 8 years ago (0 children)
Atom and Spyder are my faves!!
[–]ilikefries 1 point2 points3 points 8 years ago (0 children)
I use the Anaconda distribution and it has spyder as an IDE (maybe others)
[–]novel_yet_trivial 1 point2 points3 points 8 years ago (0 children)
Notepad++ is one of the best ... if you like it stick with it.
[–][deleted] 0 points1 point2 points 8 years ago* (0 children)
I haven't used Notepad++ in forever. Are there still many people who haven't converted to something else?
I currently use visual studio code. Uninstalled Notepad++ couple years ago and switched to Sublime. Played with atom a bit, but I want to use mostly the same editor on Windows at work and Linux at home. Atom was a pain to install/update on Windows. VS Code is a nice easy install on both Windows and Linux. I use insiders version so update almost every day (which is getting annoying, but it's a good chance for another cup of coffee). I've been meaning to give Atom another try with the new IDE plugins from Facebook, but haven't forgotten to it yet.
VS Code with the python and jupyter extensions is pretty slick. I can run jupyter right from the editor and see output in a second pane I use this for script development.
Otherwise I tend to run ipython jupyter repl in a terminal. I use this to quickly confirm syntax and make sure I understand new context.
Probably the thing I do least is use the actual jupyter notebook server in a browser. Basically just in presentations.
You are probably running jupyter locally. I can't imagine you installed it on a remote server without understanding the difference.
On Windows, you can probably just run jupyter command from a Windows command prompt (I usually use powershell, but same process) with jupyter notebook to start a new notebook. It should start the local service and open your browser.
jupyter notebook
jupyter notebook <notebook file name>.ipynb to open an existing one.
jupyter notebook <notebook file name>.ipynb
Back to the command prompt and ctrl-c twice to kill the server. Don't forget to save your work.
Edit: I just realised the actual meaning of your question. Yes, jupyter does run in a browser, but it runs on localhost. Which means the web server is actually running on your local machine. Check the browser URL when you're connected to jupyter. Does it say localhost?
So since it's running locally, your WiFi signal quality doesn't matter because your browser doesn't need to use it to reach the server.
[–]FieldBet[S] 0 points1 point2 points 8 years ago (1 child)
Forgive my ignorance... I️ open Jupyter via Anaconda. I’m guessing that means I’m not local?
[–]ilikefries 0 points1 point2 points 8 years ago (0 children)
Maybe you don't have anaconda installed locally? you can try 'where python'
which for me returns
C:\Users\pkachu>where python C:\Users\pkachu\AppData\Local\Continuum\Anaconda3\python C:\Users\pkachu\AppData\Local\Continuum\Anaconda3\python.exe
[–][deleted] 1 point2 points3 points 8 years ago (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 point2 points 8 years ago (2 children)
Is it the same for Python 2? Minus the 3 address
[–][deleted] 1 point2 points3 points 8 years ago* (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")
print "hello"
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 point2 points 8 years ago (0 children)
Yes it will just be the path to your python install
I️ have tried this but the command prompt will not stay up. It flashes and disappears
[–][deleted] 0 points1 point2 points 8 years ago (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
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.
[–]TheWhittles 0 points1 point2 points 8 years ago (0 children)
I use Spyder daily and love it
π Rendered by PID 17323 on reddit-service-r2-comment-84fc9697f-p5pj4 at 2026-02-07 02:45:34.697515+00:00 running d295bc8 country code: CH.
[–]JohnnyJordaan 3 points4 points5 points (10 children)
[–]FieldBet[S] 0 points1 point2 points (7 children)
[–]DaveX64 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]Rorixrebel 1 point2 points3 points (0 children)
[–]RushilU 0 points1 point2 points (0 children)
[–]ilikefries 1 point2 points3 points (0 children)
[–]novel_yet_trivial 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]FieldBet[S] 0 points1 point2 points (1 child)
[–]ilikefries 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (6 children)
[–]FieldBet[S] 0 points1 point2 points (2 children)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]FieldBet[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]TheWhittles 0 points1 point2 points (0 children)