Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Tobias Edwards
14,458 PointsUsing flask on Python IDLE
How would I follow along with this series using Python IDLE?
2 Answers

Eric Hodgins
29,207 PointsThe way I ran it in a browser if you're not using workspaces is by doing this:
- Run "python simpleApp.py" in the terminal
- Type this as the url "http://localhost:8000"
If you want other devices on your network to view the webpage try this as the url: You'll need to know the local ip address of the computer running simpleApp.py. http://"ip address":8000
Hopefully that helps someone out.

Kenneth Love
Treehouse Guest TeacherYou should be able to follow along using IDLE if you want, you'll just need to make sure that the required packages are installed. For the Flask course, that should just be the flask
package, which you'll install with pip install flask
.

Tobias Edwards
14,458 PointsI was doing that, but how could I could I open up the webpages as you do in workspaces in Python IDLE? Thanks

Kenneth Love
Treehouse Guest TeacherWriting the code should be exactly the same. Write it in IDLE's text editor. Actually, the running part should be fine in IDLE, too, except if you're using a virtualenv. I'm not sure how well IDLE plays with that.
Can you use a terminal program for the running and virtualenv, if you're using one, and IDLE as the editor?