gpt4 book ai didi

在 JupyterLab 中禁用 JavaScript 输出

转载 作者:行者123 更新时间:2023-12-03 23:31:11 25 4
gpt4 key购买 nike

虽然谷歌在搜索标题时有很多话要说,但我找不到任何对我有帮助的东西......

在 Jupyter 笔记本中运行以下代码时

from vega import VegaLite

VegaLite(
{
"$schema": "https://vega.github.io/schema/vega-lite/v3.json",
"description": "A simple bar chart with embedded data.",
"width": 360,
"data": {
"values": [
{"a": "A","b": 28}, {"a": "B","b": 55}, {"a": "C","b": 43},
{"a": "D","b": 91}, {"a": "E","b": 81}, {"a": "F","b": 53},
{"a": "G","b": 19}, {"a": "H","b": 87}, {"a": "I","b": 52}
]
},
"mark": "bar",
"encoding": {
"x": {"field": "a", "type": "ordinal"},
"y": {"field": "b", "type": "quantitative"},
"tooltip": {"field": "b", "type": "quantitative"}
}
})

我收到错误消息
JavaScript output is disabled in JupyterLab

最佳答案

您必须更改为帮助启动经典笔记本

enter image description here

关于在 JupyterLab 中禁用 JavaScript 输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54442858/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com