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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Wilfredo Casas](https://uploads.teamtreehouse.com/production/profile-photos/5619632/micro_3fe9d5b9-d77c-4d45-a9be-42a20ab73216.jpg)
Wilfredo Casas
6,174 PointsI can't see my code in the browser: workspace unavailable?
I tried to run my first Flask code in the browser but this message appeared:
Workspace Unavailable This is a preview link for a Treehouse Workspace that is not currently active. If you are the workspace owner, you can launch it again via the Treehouse site.
What is happening? This is my code:
from flask import Flask
app = Flask(__name__)
@app.route('/mynewroute')
def index():
return "Hello Treehouse"
app.run(debug=True, port=8000, host:'0.0.0.0')
![Chris Freeman](https://uploads.teamtreehouse.com/production/profile-photos/1153532/micro_image.jpg)
Chris Freeman
Treehouse Moderator 68,425 PointsWhat command was used in the console window to launch the flask server app? Can you post the console output?
1 Answer
![Wilfredo Casas](https://uploads.teamtreehouse.com/production/profile-photos/5619632/micro_3fe9d5b9-d77c-4d45-a9be-42a20ab73216.jpg)
Wilfredo Casas
6,174 PointsI solved the problem, it was for not writing the name of the file on the terminal.
![Chris Freeman](https://uploads.teamtreehouse.com/production/profile-photos/1153532/micro_image.jpg)
Chris Freeman
Treehouse Moderator 68,425 PointsGreat! Moved comment to Answer.
![Joseph Martin Nograles](https://secure.gravatar.com/avatar/835aa58e6c5b95fd6db8267b0863d142?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Joseph Martin Nograles
4,696 PointsI have this same problem. How did you fix it?
![Anders Axelsen](https://secure.gravatar.com/avatar/8d7b6d9761b032dc31e188e1e7f78e63?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Anders Axelsen
3,471 PointsJoseph Martin Nograles, in console, type python + the name of your project.py.
My command is:
python simple_app.py
This sends the new information and the new code to the door.
Chris Freeman
Treehouse Moderator 68,425 PointsChris Freeman
Treehouse Moderator 68,425 PointsSometimes helps to try a different port such as 8080 instead of 8000.