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

Kerrick Hahn
Kerrick Hahn
5,728 Points

If I'm trying to run the Flask App script locally, how can I use a port or visually see some representation of my script

Hi there,

In the Flask Basics > First Steps video, Kenneth points to the workspaces feature in which you can preview your app script via the "eye" icon in the top right that links to a port number.

I am trying to write and run this Flask App locally, off of workspaces. Is there any quick and easy way that I can get this same feature while I write my script on my atom IDE.

Thanks, Kerrick

2 Answers

Hey, Kerrick Hahn! In the terminal, if you run your file you should get a link that shows up that has your IP. If you ctrl-click that link it'll open up a web page. Here I created a screen capture of what it should look like :D

Hope this helps!

Kerrick Hahn
Kerrick Hahn
5,728 Points

Mel Rumsey Thank you so much! What a thoughtful answer!

This worked perfectly - you're the best!