Last answered:

03 Nov 2022

Posted on:

02 Nov 2022

1

I am not able to clear console in newly installed anaconda spyder

I tried Clear command to clear the console but it is giving error in new version of spyder.  Is that changed now?  I tried Ctrl L and it worked but not sure if it is the same..

Error:
Clear
*** NameError: name 'Clear' is not defined
 %clear can be used to clear the new spyder console.

4 answers ( 0 marked as helpful)
Instructor
Posted on:

03 Nov 2022

0

Hey Sandesh,

Thank you for reaching out!

The Ctrl + L command would clear the console but you would still have the variables stored in the memory of the computer. If you want to remove the variable definitions as well, you would need to restart the kernel.

Kind regards,
365 Hristina

Posted on:

03 Nov 2022

0

but why is this "Clear" command not working in new Spyder?  it is giving the error as mentioned above. Do i need to add anything to make it work in new Spyder?

Instructor
Posted on:

03 Nov 2022

0

Hey again Sandesh,

Referring to Spyder's documentation, it's possible that there might not be an equivalent command in the new version of Spyder. I myself am not aware of such a command.

Kind regards,
365 Hristina

Posted on:

03 Nov 2022

0

thanks Hristina!

Submit an answer