Jupyter Notebook 找到 Octave 内核,但是 vscode Jupyter 没有

问题描述 投票:0回答:1

在 Linux Mint 上,我可以设置 Octave 内核

安装

pip install jupyter
pip install octave_kernel # install octave kernel

jupyter kernelspec list
打印出来:

Available kernels:
  octave     /home/ufc/.local/share/jupyter/kernels/octave
  python3    /home/ufc/.local/share/jupyter/kernels/python3

在 Jupyter Notebook 上,我可以找到它。然而,o vscode,我只找到这些选项

如何在 vscode 上将 jupyter 内核设置为八度?

visual-studio-code jupyter octave
1个回答
0
投票

虽然您无法在 VSC 中启动 Octave 内核,但您可以使用 Octave 内核连接到 Jupyter 服务器。启动 Jupyter 服务器后,从 Select another kernel... 选项中选择 Existing Jupyter server... 并指定 URL。即,http://localhost:8888 代表本地主机。

然后你可以加载并执行带有八度代码的单元格。不幸的是,编程语言的自动检测似乎无法检测到 Octave。但是,我可以在安装 Octave 扩展后手动选择语言。这是一个screenshot of VSC with the octave kernel。我测试了 VSC 1.76.1 和 JupyterLab 3.6.1.

© www.soinside.com 2019 - 2024. All rights reserved.