小编lan*_*nes的帖子

JupyterLab 中的 JavaScript 输出被禁用

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

在 Jupyter notebook 中运行以下代码时

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"}
  }
})
Run Code Online (Sandbox Code Playgroud)

我收到错误消息

JavaScript output …
Run Code Online (Sandbox Code Playgroud)

javascript jupyter-lab

7
推荐指数
1
解决办法
7083
查看次数

标签 统计

javascript ×1

jupyter-lab ×1