我已经为jupyterhub安装了sudospawner:
sudo pip3 install sudospawner
然后按照说明设置sudoers并添加到我的jupyterhub_config.py:
c.JupyterHub.spawner_class = 'sudospawner.SudoSpawner'
c.SudoSpawner.sudospawner_path = '/usr/local/bin/sudospawner'
但是,从我启动集线器以来,我安装的jupyterhub似乎没有检测到它:
[C 2017-11-02 15:37:07.028 JupyterHub application:90] Bad config encountered during initialization:
[C 2017-11-02 15:37:07.029 JupyterHub application:91] The 'spawner_class' trait of <jupyterhub.app.JupyterHub object at 0x7f3fa0e24080> instance must be a type, but 'sudospawner.SudoSpawner' could not be imported
(以'sudospawner.SudoSpawner' could not be imported
结尾)
jupyter hub的版本是0.8.0
似乎我在sudospawner的安装或集成中遗漏了一些东西。
有什么想法吗? THX
答案 0 :(得分:0)
如果您可以安装git并使用相同的配置运行此命令 -
sudo pip3 install git+https://github.com/jupyter/sudospawner