Spyder (Python 3.9) console stuck on "Connecting to Kernel..." - python

I have Anaconda and Spyder installed. I had been using Spyder with no issues until it randomly stopped working the next time I opened it to continue working on something. I'm very new to coding and I appreciate your help in advance.
Things I have tried (after googling and looking at posts from people who have had the same or similar problem):
restarting my computer
resetting spyder
updating pyzmq
updating
ipykernel
pip install spyder kernels
I'm not sure what happened or why it stopped working.
when I run conda list Spyder$:
pyls-spyder 0.4.0 pyhd3eb1b0_0
spyder 5.2.2 py39haa95532_1
Edit: I would also like to add that while I can get jupyter notebook to open, nothing is printed. So it's likely the kernel is also not working there.
I've tried following this video that had me run the following:
python -m pip install ipykernel
python mipykernel install user

Related

Spyder 5.1.5 kernel hangs and 5.2.1 won't work with conda

I had the same issue with kernel hanging on valid scripts:
spyder kernel hangs...
Spyder 5.2 isn't available yet in Anaconda, but I installed it via the link provided in the answer above. When I attempt to get it to use my current conda environment, I get the following error:
Your Python environment or installation doesn't have the spyder‑kernels module or the right version of it installed (>= 2.2.0 and < 2.3.0). Without this module is not possible for Spyder to create a console for you.
You can install it by running in a system terminal: conda install spyder‑kernels=2.2
I can't update conda from sypder-kernel=2.1.3 to 2.2.0 due to numerous conflicts.
I'm wondering if anyone has any ideas on how I might get Spyder 5.2 working with Anaconda, or do I simply have to wait for it to be released by Anaconda? I'm not that savvy in this type of thing.
I had the same problem with spyder 5.2.1, I opened cmd and typed:
pip install spyder-kernels==2.2.0
Then it downloaded the right kernel and after opening spyder I didn't get any error related to its kernel version.

Tried to install a google-colab module. Now Anaconda Navigator will not launch, even after uninstalling, reinstalling, updating, resetting etc

I'm using Anaconda 3.8.5 on Windows 7.
The problem: I was trying to install a Google Colab module locally, because I wanted to run this notebook on a local runtime, and it needed a module called "google-colab" (evidently this is a lost cause, as the module is not open source). I attempted to install it using conda install -c conda-forge google-colab, which I found here.
It appeared to install something successfully, although the notebook on colab still didn't work. After installing, Anaconda Navigator refused to launch. A command prompt popped up and disappeared instantly, and nothing else happened. I uninstalled, I reinstalled. I followed this procedure. Nothing changed at all.
When I installed Anaconda on a virtual machine with a fresh install of Windows 7 and attempted that same janky install, the exact same thing happened. Any idea how I can get Anaconda navigator back? Anaconda command prompt still works. Thank you!

Spyder 4.1.3 always crashes after a few seconds

I have a problem with Spyder after updating it from 3.2.4 to 4.1.3 with
conda update spyder
The app didn't launch anymore and when I started it from the command prompt I got an error saying
File "C:\Users\TO3THY0\AppData\Local\conda\conda\envs\DataScience\lib\site-packages\spyder\plugins\ipythonconsole\widgets\debugging.py", line 22, in
from IPython.core.inputtransformer2 import TransformerManager ModuleNotFoundError: No module named 'IPython.core.inputtransformer2'
So I installed ipython using
conda install iptyhon
If I now click on the spyder app on my desktop the app won't even open. If I type into the command prompt:
spyder
the app opens but crashes after a few seconds. I am using Anaconda 5.0.1 and python 3.6.3. Unfortunately I don't get an error message or anything so I am quite lost now...
As I am quite new to programming I am not sure what other information could help to solve this problem so I am sorry for the vague question. Any help to find the reason or even a solution to this problem is highly appreciated.
I have the latest version of anaconda and installation using conda update spyder is constricted by anaconda -> requires spyder==4.0.1=py37_0. I guess the option is to downgrade to 4.0.1 using conda install spyder=4.0.1. If this doesn't help, try to reinstall Anaconda. Actually, the Spyder maintainer recommends:
It's usually better to use a new conda env to try major Spyder versions, instead of updating things in the base env.

Spyder not running after upgrade

my spyder won't run after I upgraded it. How do I restore previous version in ubunutu? Don't have anaconda platform so conda command isn't an option. Tried to uninstall/install but nothing happens.
Thanks a lot of your help,
newbie

Anaconda - Not updating

I am using Anaconda installation and many times the updates don't work.
For example, some bokeh commands work well when I run the a python program from the command line (i.e c:> python testPlot.py), but will not work in the IPython console or from Spyder.
I tried updating conda, Anaconda, bokeh, but the behavior doesn't change. This is not just this one package. Others have the same issue.
Any idea?
Thanks.
C:>conda update conda
conda 4.0.6 py27_0
C:>conda update anaconda
anaconda 4.0.0 np110py27_0
C:>conda update bokeh
bokeh 0.11.1 py27_0
Just open a cmd prompt in Windows or Terminal on a mac and paste this with the version you are having trouble installing.
conda install anaconda-navigator=(whatever version is giving you trouble)

Categories

Resources