Opening Spyder appear a command window that does not closes itself - python-3.x

Today I have updated Anaconda Navigator to version 2.0.1 using this command: conda update --all.
Now, when I try to open Spyder (version 5.0.0), to work in Python, it opens and works correctly, but a command screen appears and it's idles with the cursor blinking.
It is supposed that the command window should closes itself, but I have waited for 1 hour and the command window still it is there.
Below you will find a screen shot:
The file spyder-out-1.txt it is blank (With no information inside).
The file spyder-err-1.txt have this: No QCoreApplication instance found. Application patches not applied. You have to call load_stylesheet function after instantiation of QApplication to take effect.
I use:
Anaconda 2.0.1, Spyder 5.0.0, Windows 10
I guess that this is an error, so, please provide me some information in order to avoid this malfunction.
Thanks in advance

Related

Jupyter Notebook Doesnt open

Im having troubles opening Jupyter or Anaconda Navigator.
Each time I click on the shortcut, the kernel black window opens and closes so fast that I just cant see what it shows and nothing happens.
In case of Anaconda Navigator, the black window appears and closes twice and nothing happens either.
Hope you can help me.
I already tried uninstalling and reinstalling. I wanted to do it again but now the Anaconda Uninstaller doesnt appear :(
did you try running it from the command line ? (cmd/bash)
You can use the command jupyter notebook and it should normally lunch the notebook if everything is correctly installed.

Spyder debugger freezes within Anaconda virtual environment

I'm working with an Anaconda virtual environment, venv, and I'm running Spyder from it.
Whenever I attempt debugging my code, nothing happens. The debugger seems to get stuck in the first line. For example, if I run the debugger on:
import sys
print(sys.executable)
Running in debug mode produces this output on the built-in IPython console:
debugfile('C:/Projects/Myproject/myscript.py', wdir='C:/Projects/Myproject')
> c:\projects\myproject\myscript.py(1)<module>()
----> 1 import sys
2
3 print(sys.executable)
Neither Debugging buttons in Spyder, nor their related shortcuts, seem to do anything. In particular, pressing the Stop button (or hitting CTRL+SHIFT+F12) results in:
--KeyboardInterrupt--
For copying text while debugging, use Ctrl+Shift+C
I have already made some research, and landed on this GitHub issue page, where it is suggested that I should update IPython. I did, with no benefit.
Another suggestion I found in this other GitHub page indicated the problem might be that the wrong executable for Python is run (i.e., that Spyder is running Python from my base Anaconda environment, rather than my venv). I checked, and both are run from the right path:
print(sys.executable)
C:\Anaconda3\envs\venv\python.exe
These are the version of my dependencies.
Spyder version: 5.1.5 None
Python version: 3.7.11 64-bit
Qt version: 5.9.7
PyQt5 version: 5.9.2
IPython 7.31.1
Operating System: Windows 10
I face the same issue, Spyder 5.1.5 debugging does not work in new environments. There is some clash between versions as I understand, but promised that they will deal with the issue in the next version.
Also, this is a reported issues: https://github.com/spyder-ide/spyder/issues/17350
What seems to work for me is to create a new environment but specify the versions like this:
conda create -n your_fancy_env_name -c conda-forge python=3.8.10 spyder=5.1.5

How can I activate code folding in spyder 4.0.1 when there is no checkbox in preferences/editor to do so?

I use WSL on my windows laptop and am perfectly fine to use spyder via VcXsrv. Current version: 4.0.1 - if I try to update to a newer version it tells me that 'all requested packages are already installed'. Additionally, I updated anaconda as suggested. I use python 3.7.9
However, there is neither code folding happening in the editor, nor can I activate it via tools-> preferences-> editor, tab 'display' where it is supposed to be. Searching for an answer, I found that other people also seem to be missing this option.

Why does pyinstaller executable change the format and resolution?

I've been surfing through the internet and have failed to find the answers I'm looking for. I am new to python and asking questions here, but anyways, I am running windows 10, and my script uses tkinter as the GUI module. Whenever I run the script through the command prompt (or IDE) I get this: Image via IDE
Whenever I run pyinstaller executable, I get this: pyinstaller executable
As you can see, the executable changes some of the geometry of the widgets and makes the image blurry. How do I fix this on my computer, and how do I account for this across various windows supported hardware?
It turns out that the issue is with windows and can be corrected by right clicking on the executable in the file window and following these steps: https://www.ghacks.net/2020/09/14/how-to-fix-blurry-text-in-programs-on-windows-10/

Spyder Crashes During launch

Here it says
Spyder crashed during last session.
If Spyder does not start at all and before submitting a bug report, please try to reset settings to defaults by running Spyder with the command line option '--reset':
spyder --reset
Warning: this command will remove all your Spyder configuration files located in '/Users/repair/.spyder-py3').
If restoring the default settings does not help, please take the time to search for known bugs or discussions matching your situation before eventually creating a new issue here. Your feedback will always be greatly appreciated.
you shall run
pip install --upgrade spyder

Resources