![](/img/trans.png)
[英]Jupyter Notebook can open in VS code, but not in the terminal
[英]Running VScode Jupyter Notebook cells in already open and configured python terminal (rather than open a new terminal)
我正在尝试在虚拟环境中运行并在我通过 SLURM 请求的特定节点上运行的终端中运行我的 Jupyter 笔记本单元,但是每当我尝试在 python 终端中运行单元时,它会打开一个新的 python 终端没有任何所需的配置。
我可以在 R 上执行此操作(当我单击 cntrl enter 时,它在已经打开的 R 终端中运行),但似乎 python 无法配置它来执行此操作,或者我还不知道如何配置它。
现在,我通过将每一行代码复制并粘贴到 python 终端并运行来解决它,但我希望我能找到一种更优雅的方法来做到这一点。
请让我知道这是否与您的问题类似,并且您是否能够解决它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.