question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Clear Console not working on Windows

See original GitHub issue

Description

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:closed
  • Created 4 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
dalthvizcommented, Apr 6, 2020

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 like ls:

image

Testing with IPython the clear magic cls works as expected

1reaction
ccordoba12commented, Nov 25, 2019

This happens when your current working directory is a network mount. So avoid that until we fix it.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found