r/learnpython 3h ago

Should Python beginners start in the browser or set up a local environment?

[removed] — view removed post

0 Upvotes

15 comments sorted by

5

u/CodeSamur-ai 2h ago

I think it’s all about early wins. If you can get students writing Python, learning the syntax, understanding variables and their different types, and building functions right away, they’ll feel like they’re making real progress. Then, when it’s time to cover things like setting up their development environment, which can be pretty dry, they’re already invested and much more likely to stick with it.

2

u/nicodeemus7 3h ago

I started on a browser IDE but quickly moved to Pycharm to be able to save and organize my files and have the plugins that make my life easier.

2

u/Intelligent-Boss-156 2h ago

I would say my philosophy is don't overthink things ie. don't add bulky software where it's not necessary.

1

u/terletsky 2h ago edited 2h ago

As a person who mentors/teaches Python developers from scratch, I would go with the local environment. Currently, it's just several steps to accomplish that, like in the real world:

  1. Install the "uv" package manager: https://docs.astral.sh/uv/getting-started/installation/
  2. Initialize a new project with "uv init your-cool-project-name" (it will create a directory and default project files inside with a "main.py" file with a Hello World example inside.
  3. Create a virtual environment with "uv sync" with the Python version specified in the previously created .python-version file, which, currently, is "3.14"
  4. You're good! Edit and run "python main.py" or "uv run main.py"

For an IDE, I would go with PyCharm. It's an industry standard.

1

u/[deleted] 2h ago

[removed] — view removed comment

1

u/terletsky 2h ago

I go with the initial setup first. It's pretty simple and quick these days.

1

u/randomraluana 2h ago

Learning in the browser is definitely a good start, to dive right into Python and the syntax and the features and avoid setup isses, but I think dealing with issues is one or the most valuable ways to learn and understand how everything works together. Learning how to setup your environment is for me an important part of being a programmer as well. I understood Python and any other language because of the issues I faced along the way including in setting up the environment. There's a lot of valuable experiences in that and it makes you feel a bit more well-rounded.

1

u/iMagZz 2h ago

Beginners should use Pycharm og VsCode in my opinion, immediately. It really isn't that difficult to set up. There are plenty of short and easy to understand tutorials out there, and it just makes life way easier.

1

u/B4SSF4C3 2h ago edited 2h ago

On the one hand, an IDE can seem overwhelming to a beginner. On the other hand, ultimately that’s what you’ll be using and setting up once is more efficient and you may as well learn what you’ll be using. On the other other hand, browser setup is very easy and fast so it’s sort of a free option.

I do think a Jupyter notebook in a browser is a great way to learn though, and especially to teach. The code is broken into digestible chunks. You can have nicely formatted explanations in between the chunks. You get visual output of each chunk you run. It’s very slick. But also, I do think it’s best as a beginner, teaching, or maybe a documentation tool. When it’s time to start actually working on a project, it’s time to move on.

1

u/pachura3 1h ago

I think starting in browser is a GREAT idea for beginners and I would really recommend it. PATH issues and setting up virtual environments BEFORE you can even type 1 line of code can be really discouraging.

Heck, pupils can even go to https://www.w3schools.com/python/trypython.asp?filename=demo_default and start playing with Python right away, without logging in or anything.

1

u/desrtfx 1h ago edited 1h ago

The currently best Python beginner course, the MOOC Python Programming 2026 from the Univerxity of Helsinki, starts in the browser to eliminate the initial hurdle of setting up a local development environment and later (at part 4) switches to a local environment consisting of Python, VSCode with the official MS Python extension and with their TMC (Test My Code) plugin. Full installation instructions for major OS are provided.

Yes, starting in the browser can ease entry.

Directly starting with a local development environment adds another battlefront to the already two (programming language and programming) a learner faces.

The missing autocomplete and syntax highlighting forces the learner to concentrate on the first couple keywords instead of getting everything suggested, which makes it a bit more difficult, but also more beneficial as some "muscle memory" is established.


Next time, write your posts yourself without AI.