I get to open the Jupyter console without any problems, but when I create a new notebook it keeps connecting to and disconnecting from the kernel (the messages \"Connecting
I've just changed the port from 8888 to 9999, and the problem is gone.
use the command
jupyter notebook --generate-config
(it says where the generated config file is)
to generate a config file, then find the line
c.NotebookApp.port
and change the port.