我正在尝试在 Jupyter 笔记本(在 VScode 上)上使用 Kotlin Kernel。
我已经创建了一个虚拟环境。
我已经通过pip安装了jupyter笔记本和kotlin-jupyter-kernel。
当我从 jupyter 笔记本中选择内核并运行代码时,它会显示;
Failed to start the Kernel.
FileNotFoundError: [WinError 2] System cannot find specified path.
View Jupyter log for further details.
Jupyter 日志太长且复杂,但如果您需要,我可以粘贴。
这也是我的 kotlin 内核的 kernel.json;
{
"display_name": "Kotlin",
"language": "kotlin",
"interrupt_mode": "message",
"argv": [
"python",
"-m",
"run_kotlin_kernel",
"{connection_file}"
],
"metadata": {
"jar_path_detect_command": [
"python",
"-m",
"kotlin_kernel",
"detect-jars-location"
]
}
}
如何正确安装Kotlin内核?任何帮助是极大的赞赏。如果需要,我可以发送更多详细信息。
也许你应该配置环境变量
JAVA_HOME
并将%JAVA_HOME%\bin
添加到PATH
中。