How do I add a kernel on a remote machine in IPython (Jupyter) Notebook?

前端 未结 3 1019
伪装坚强ぢ
伪装坚强ぢ 2020-12-05 02:54

Dropdown menu in the top-right of the UI on a local machine (PC):

Kernel-> 
    Change kernel->
        Python 2 (on a local PC)
        Python 3 (on a         


        
3条回答
  •  不知归路
    2020-12-05 03:45

    Remote jupyter kernel/kernels administration utility (the rk): https://github.com/korniichuk/rk

    1. Install the rk from GitHub:

      $ sudo pip install git+git://github.com/korniichuk/rk#egg=rk

    2. Setup SSH for auto login without a password:

      $ rk ssh

    3. Install a template of a remote jupyter kernel:

      $ rk install-template

    4. Change the kernel.json file:

      $ sudo gedit /usr/local/share/jupyter/kernels/template/kernel.json

    For example from remote_username@remote_host to albert@192.168.0.1.

    Click: Quickstart and YouTube video (less than 3 min).

提交回复
热议问题