jupyter lab内终端从sh变为bin/bash(切换conda操作)

一、问题起因

jupyter lab内终端使用不了source activate

conda activate bash

 

 二、修改config

打开jupyter lab的配置文件

# vim /root/.jupyter/jupyter_lab_config.py

 修改c.ServerApp.terminado_settings修改成

c.ServerApp.terminado_settings = {'shell_command' : ['/bin/bash']}

即可!

猜你喜欢

转载自blog.csdn.net/buluxianfeng/article/details/126149345