Clear Console not working on Windows
See original GitHub issueDescription
What steps will reproduce the problem?
%clear The system cannot find the path specified.
Versions
- Spyder version: 4.0.0b5
- Python version: 3.7.3
- Qt version: 5.9.6
- PyQt5 version: 5.9.2
- Operating System: Windows 10
Dependencies
cloudpickle >=0.5.0 : 1.2.1 (OK)
pygments >=2.0 : 2.4.2 (OK)
qtconsole >=4.5.5 : 4.5.5 (OK)
nbconvert >=4.0 : 5.5.0 (OK)
sphinx >=0.6.6 : 2.1.2 (OK)
pylint >=0.25 : 2.3.1 (OK)
psutil >=0.3 : 5.6.3 (OK)
qtawesome >=0.5.7 : 0.5.7 (OK)
qtpy >=1.5.0 : 1.8.0 (OK)
pickleshare >=0.4 : 0.7.5 (OK)
zmq >=17 : 18.0.0 (OK)
chardet >=2.0.0 : 3.0.4 (OK)
numpydoc >=0.6.0 : 0.9.1 (OK)
spyder_kernels >=1.5.0;<2.0.0: 1.5.0 (OK)
qdarkstyle >=2.7 : 2.7 (OK)
atomicwrites >=1.2.0 : 1.3.0 (OK)
diff_match_patch >=20181111 : 20181111 (OK)
watchdog : None (OK)
keyring : None (OK)
pexpect >=4.4.0 : 4.7.0 (OK)
pympler : None (OK)
sympy >=0.7.3 : 1.4 (OK)
cython >=0.21 : 0.29.12 (OK)
IPython >=4.0 : 7.6.1 (OK)
matplotlib >=2.0.0 : 3.1.0 (OK)
pandas >=0.13.1 : 0.24.2 (OK)
numpy >=1.7 : 1.16.4 (OK)
scipy >=0.17.0 : 1.2.1 (OK)
pyls >=0.28.2;<0.29.0 : 0.28.3 (OK)
rtree >=0.8.3 : 0.8.3 (OK)
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
How to Clear the Windows Command Prompt Screen - Lifewire
In Command Prompt, type: cls and press Enter. Doing this clears the entire application screen. Close and reopen Command Prompt.
Read more >Clear windows command prompt screen using keyboard ...
NO, But you can use CLS command to clear the whole screen, Esc (Escape) key will clear the input line. In addition, pressing...
Read more >Clearing the Screen - Windows Console | Microsoft Learn
The first method is to set your application up for virtual terminal output sequences and then call the "clear screen" command. C Copy....
Read more >c# - Console.Clear() doesn't clear the whole console window
Show activity on this post. The reason the Console. Clear() isn't really working is because of the do-while statement in the method. (Line...
Read more >cls in PowerShell and cmd.exe doesn't fully clear the Terminal ...
cls is a cmd-intrinsic, something that's directly built into cmd.exe. It uses the Console API to clear the screen buffer. This works as...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Doing some testing, and after reading more carefully the issue in IPython (where the user specifies he is using Spyder 3.3.1), seems like the issue is actually in QtConsole and it’s not only affecting the
clear
magic but also other magics likels
:Testing with IPython the clear magic
cls
works as expectedThis happens when your current working directory is a network mount. So avoid that until we fix it.