Repository: spyder-ide/spyder

Issue:
Improve spyder-kernels installation message
<!--- **PLEASE READ:** When submitting here, please ensure you've completed the following checklist and checked the boxes to confirm. Issue reports without it may be closed. Thanks! --->

### Issue Report Checklist

* [ ] Searched the [issues page](https://github.com/spyder-ide/spyder/issues?q=is%3Aissue) for similar reports
* [ ] Read the relevant sections of the [Spyder Troubleshooting Guide](https://github.com/spyder-ide/spyder/wiki/Troubleshooting-Guide-and-FAQ) and followed its advice
* [ ] Reproduced the issue after updating with ``conda update spyder`` (or ``pip``, if not using Anaconda)
* [ ] Could not reproduce inside ``jupyter qtconsole`` (if console-related)
* [x] Tried basic troubleshooting (if a bug/error)
    * [x] Restarted Spyder
    * [x] Reset preferences with ``spyder --reset``
    * [ ] Reinstalled the latest version of [Anaconda](https://www.anaconda.com/download/)
    * [ ] Tried the other applicable steps from the Troubleshooting Guide
* [ ] Completed the **Problem Description**, **Steps to Reproduce** and **Version** sections below


## Problem Description
When I install Spyder 5.0.1 Spyder.dmg on Mac BigSur and I try to change the environment to the conda installation I get:
```
Your Python environment or installation doesn't have the spyder‑kernels module or the right version 
of it installed (>= 2.0.1 and < 2.1.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

or

pip install spyder‑kernels
```
I already have spyder-kernels and installing with conda doesn't change anything.

### What steps reproduce the problem?

1. Use Spyder.dmg installer
2. Change to conda python as the interpreter `/Users/brian/anaconda3/bin/python`
3. 

### What is the expected output? What do you see instead?
In my Spyder4 version I installed with conda initially after Anaconda installation I can change to the conda env as well as any other conda venv and it works fine.

### Paste Traceback/Error Below (if applicable)
<!--- Copy from error dialog or View > Panes > Internal Console --->

```python-traceback

PASTE TRACEBACK HERE

```

## Versions
<!--- You can get this information from Help > About Spyder...
or (if Spyder won't launch) the "conda list" command
from the Anaconda Prompt/Terminal/command line. --->

* Spyder version: 
* Python version: 
* Qt version: 
* PyQt version: 
* Operating System name/version: 

### Dependencies
<!--- Please go to the menu entry Help > Dependencies,
press the Copy to clipboard button and paste below --->

```
PASTE DEPENDENCIES HERE
```



Discussion:

Resolving patch:
diff --git a/spyder/plugins/console/widgets/console.py b/spyder/plugins/console/widgets/console.py
--- a/spyder/plugins/console/widgets/console.py
+++ b/spyder/plugins/console/widgets/console.py
@@ -254,7 +254,8 @@ def append_text_to_shell(self, text, error, prompt):
                 else:
                     # Detect if line is a warning.
                     if (re.findall('[A-Z].*Warning', line) != [] or
-                            'warnings.warn' in line):
+                            'warnings.warn' in line or
+                            'WARNING' in line):
                         is_warning = True
 
                     # Show error/warning messages in red
diff --git a/spyder/plugins/ipythonconsole/plugin.py b/spyder/plugins/ipythonconsole/plugin.py
--- a/spyder/plugins/ipythonconsole/plugin.py
+++ b/spyder/plugins/ipythonconsole/plugin.py
@@ -1001,9 +1001,9 @@ def create_new_client(self, give_focus=True, filename='', is_cython=False,
                       "create a console for you.<br><br>"
                       "You can install it by running in a system terminal:"
                       "<br><br>"
-                      "<tt>conda install spyder-kernels</tt>"
+                      "<tt>conda install spyder-kernels=2.0</tt>"
                       "<br><br>or<br><br>"
-                      "<tt>pip install spyder-kernels</tt>")
+                      "<tt>pip install spyder-kernels==2.0.*</tt>")
                 )
                 return
 


Test patch: