How to configure server for jupyter in pycharm

Answered

"C:\Program Files\JetBrains\PyCharm 2019.1.3\bin\runnerw64.exe" C:\Users\Saya\Anaconda3\Scripts\jupyter-notebook.exe --no-browser
Traceback (most recent call last):
File "C:\Users\Saya\Anaconda3\Scripts\jupyter-notebook-script.py", line 6, in <module>
from notebook.notebookapp import main
File "C:\Users\Saya\AppData\Roaming\Python\Python37\site-packages\notebook\notebookapp.py", line 47, in <module>
from zmq.eventloop import ioloop
File "C:\Users\Saya\AppData\Roaming\Python\Python37\site-packages\zmq\__init__.py", line 47, in <module>
from zmq import backend
File "C:\Users\Saya\AppData\Roaming\Python\Python37\site-packages\zmq\backend\__init__.py", line 40, in <module>
reraise(*exc_info)
File "C:\Users\Saya\AppData\Roaming\Python\Python37\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise
raise value
File "C:\Users\Saya\AppData\Roaming\Python\Python37\site-packages\zmq\backend\__init__.py", line 27, in <module>
_ns = select_backend(first)
File "C:\Users\Saya\AppData\Roaming\Python\Python37\site-packages\zmq\backend\select.py", line 28, in select_backend
mod = __import__(name, fromlist=public_api)
File "C:\Users\Saya\AppData\Roaming\Python\Python37\site-packages\zmq\backend\cython\__init__.py", line 6, in <module>
from . import (constants, error, message, context,
ImportError: cannot import name 'constants' from 'zmq.backend.cython' (C:\Users\Saya\AppData\Roaming\Python\Python37\site-packages\zmq\backend\cython\__init__.py)

Process finished with exit code 1

4 comments
Comment actions Permalink

can someone help me how to fix the above issue

Cheers

0
Comment actions Permalink

Hi,

Are you able to start jupyter server from the command line (outside of PyCharm)?

If yes, configure another project interpreter in PyCharm and try again.

0
Comment actions Permalink

Hi,

Thanks for getting back to me I tried using the Python3 and Anaconda(conda) as interpreter, however I am unable to find the localhost that needs to configured to. How do i find the local host?

Cheers

0
Comment actions Permalink

What do you mean by "find the localhost"?
You don't need to configure jupyter server in PyCharm if you are using Managed Jupyter server. You can just run the cell and PyCharm will start the server automatically.

0

Please sign in to leave a comment.