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

Python and Flask, Workspace unavailable?

I have been encountering issues with the Python Flask editor and Workspace.

No longer can I use the View feature in Workspace, I get this error on the page.

"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."

I have tried both Chrome and Firefox and I receive the same error.

In Workspaces my cursor gets locked in terminal most of the time as well.

When I work on a quiz for Flask, it will not accept my answers most of the time. I keep thinking I am doing things incorrectly but if I open a new browser window it will accept my response or if I delete all the fields and retype it.

Can any staff take a look at this? I don't know how to tag staff either...

1 Answer

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

The cursor locking happens to me too. Seems to be somet to do with the JS bridge we use for terminal mirroring.

The view feature, do you have the Flask server running?

Which quiz and question isn't answering correctly?

Hi Kenneth.

For the view feature, I have checked in console and it tells me "Flask==0.10.1" just like in your video.

For the questions, basically I have had issues with validating my answers from Request and View ARGS Through URL.

Kenneth Love
Kenneth Love
Treehouse Guest Teacher

Having Flask installed (which you always will in Workspaces) and having the Flask server running are two different things. The second is done with python app.py (assuming your app script is named app.py).

So it's code challenges and not quizzes that are giving you problems? Are these the same ones I've seen your other posts about?

Kenneth. My mistake on running the script, I forgot after I made new browser windows. Working properly.

Yes the other posts are what I was having trouble with. The advice John gave me I initially started with and the answers were being refused. When I erased and started over after incorrect attempts it worked, also when I entered the same information in a new browser.

The cursor locking quite annoying. It still locks now.