Jupyterlab 终端不工作,但 windows 中的 cmd 工作正常

Jupyterlab terminal does not work, but cmd in windows works fine

问题

我想做什么

- 执行 .py 文件并在 jupyterlab 终端上查看结果!

详情

我在使用 Jupyterlab 的终端时遇到问题,因为它是 powershell,而不是 bash(window 的 cmd)。所以我听从了@dhirschfeld 的建议 ,如 Jupyterlab's github issue page 中所写。下面的说明将让您在 jupyterlab 上使用 bash 而不是 supershell

  1. 进入高级系统设置

  2. 打开'Environment Variables',可以看到下面的截图。

  3. 将下面的代码添加到User variables for (Account name),这是部分 在红色数字 1

Variable Name : SHELL 
Variable Value : cmd.exe