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 Basics (2015) Python for Beginners Running Python Scripts

Per-Anton Larsson
Per-Anton Larsson
315 Points

Can't edit hello_world.py, only says "No preview available for the file"

When I have created the new file "hello_world.py" above the console, where I'm suppose to be able to edit and type, there is only a line saying: "No preview available for the file: X" X was the name of the old file, which i removed.

2 Answers

Thomas Duff
Thomas Duff
3,112 Points

Please try deleting the 'hello_world.py' file, closing Workspaces, reopening Workspaces and recreating the 'hello_world.py' file.

Per-Anton Larsson
Per-Anton Larsson
315 Points

That worked fine! Many thanks Thomas.