Jupyter notebook server not working with latest PyCharm 2017.2 update. How do I solve this? -
so received update pycharm yesterday has botched jupyter notebook integration. every time try run jupyter notebook cell, hit prompt: http://localhost:8888/?token=
i run jupyter notebook list
in terminal list of running jupyter servers , accompanying authenticating token. after entering info earlier prompt, cell refuses run , returns token prompt again.
according using ipython/jupyter notebook pycharm, url can set in settings/preferences dialog
of pycharm. however, of new update, option set notebook server url missing.
by default, pycharm asks me follow link when try run jupyter cell first time. after following link, pycharm supposed token , run cells in program instead of browser. realized pycharm starts http://127.0.0.1:8888/?token=........token
in console, however, prompt comes http://localhost:8888/?token=
.
how solve token issue?
i had same issue too, have resolved it.
i used notebook 4.2.3 installed anaconda3-4.2.0 default.
$ pyenv versions system * anaconda3-4.2.0 (set /users/akiyoko/.pyenv/version) $ pip list | grep notebook notebook (4.2.3)
from 4.3.0, notebook generates token when running notebook server security reason.
see https://jupyter-notebook.readthedocs.io/en/latest/security.html#server-security.
pycharm 2017.2 requires token notebook server url, notebook 4.2.3 unsupports token. so, upgraded notebook 4.3.
$ pip install notebook==4.3 $ pip list | grep notebook notebook (4.3.0)
after that, pycharm shows notebook kernel in run tool window when running notebook server below:
/users/akiyoko/.pyenv/versions/anaconda3-4.2.0/bin/python /users/akiyoko/.pyenv/versions/anaconda3-4.2.0/bin/jupyter-notebook --no-browser --ip 127.0.0.1 --port 8888 --port-retries=0 [i 11:41:22.657 notebookapp] [nb_conda_kernels] enabled, 2 kernels found [i 11:41:23.517 notebookapp] [nb_anacondacloud] enabled [i 11:41:23.526 notebookapp] [nb_conda] enabled [i 11:41:23.661 notebookapp] ✓ nbpresent html export enabled [w 11:41:23.661 notebookapp] ✗ nbpresent pdf export disabled: no module named 'nbbrowserpdf' [i 11:41:23.669 notebookapp] serving notebooks local directory: /users/akiyoko/pycharmprojects/jupyter-test [i 11:41:23.669 notebookapp] 0 active kernels [i 11:41:23.669 notebookapp] jupyter notebook running at: http://127.0.0.1:8888/?token=e0393bd13f97aa6408607df24a7c13b6341d80e841d0c8ad
see https://www.jetbrains.com/help/pycharm/running-ipython-jupyter-notebook-cells.html.
it worked.
Comments
Post a Comment