Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

Applications like workspaces for coding offline

Is there any single application that I can use to code? I know there are many code editors, but I don't think there are any where I can run the file in the console as easily as you can in workspaces (since most require you to have external compilers like Cygwin). Does anyone know any editors or other applications similar to workspaces?

4 Answers

if you're not planning on using version control you easily just ignore that for now and install it later if you want to.

What is version control? And about running the script?

no, it is for keeping track of the different changes you make to your code during a project, can be stored and maintained at a site like github.com. It's so that you can see the changes that have been made over time, can also be used for backups, and collaborating with a team.

to run the script from the terminal window at bottom of the screen from vs code, click on Debug at top of the menu bar, and then select 'Start without debugging', or just hit Ctrl + F5, then choose Python when the next window pops up, will run it in the editor at terminal on bottom of screen

When I start the debugging, it gives me an error message in the terminal:

c:\Users\Kailash Seshadri 1\Desktop>cd "c:\Users\Kailash Seshadri 1\Desktop" && cmd /C "set "PYTHONIOENCODING=UTF-8" && set "PYTHONUNBUFFERED=1" && python "c:\Users\Kailash Seshadri
1\.vscode\extensions\ms-python.python-2018.6.0\pythonFiles\PythonTools\visualstudio_py_launcher_nodebug.py" "c:\Users\Kailash Seshadri 1\Desktop" 1442 34806ad9-833a-4524-8cd6-18ca4aa74f14 RedirectOutput,RedirectOutput "c:\Users\Kailash Seshadri 1\Desktop\hello.py" "
'python' is not recognized as an internal or external command,
operable program or batch file.

What am I doing wrong, or what have I not done?

https://gyazo.com/64004a0f89c58df13458b78ab45aed4a

Other than that all terminal commands work in the terminal directly, like clear to clear the screen and so on.

I like VS Code it is lightweight and fast, and by simply clicking on the extensions tab on the lefthand sidebar and typing in Python Extension pack in the search bar and downloading it right in the editor, it gives you the ability to run your code in a terminal on the bottom of the screen like in workspaces, and many other python tools as well.

VS Code wants me to install Git, should I do it, or ignore that and just download the extension?

And what is the command for executing a file? When I specify the directory to the file, nothing happens: SCs: https://gyazo.com/6bc55f197fff7db5944a3e158dbd863f https://gyazo.com/0fac6de0df5b6918d4c4a1e2fcfa5c9e