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 Introducing Lists Using Lists Iteration

Paige Willis
Paige Willis
1,613 Points

clear console

How do I clear the console in the "launch_workspace?"

4 Answers

Oskar Lundberg
Oskar Lundberg
9,534 Points

press Ctrl + L to clear the Console.

ctrl + L is what I use most often.

Dear Paige, clear() command help you to clear the work space.

Linda Larson-Prior
Linda Larson-Prior
446 Points

This actually returns a traceback error for me (a nameerror as 'clear' is not defined). I think what has to happen is that I need to "pop" out of interactive mode at which point clear WIlL work. How do I exit interactive mode?

Another if you'd like is just typing "clear" in the console.

I didn't know you could type clear() such as Afrid Mondal mentioned which is pretty cool.

"clear" also only works outside the REPL ^ in case that causes any confusion