Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Bokeh WordCloud2在输出_notebook()时出错_Bokeh_Word Cloud - Fatal编程技术网

Bokeh WordCloud2在输出_notebook()时出错

Bokeh WordCloud2在输出_notebook()时出错,bokeh,word-cloud,Bokeh,Word Cloud,我从中下载了默认代码 我pip安装了word_cloud2并运行了它,结果发现了这个错误 Compilation failed: ../../../Anaconda3/lib/site-packages/bokeh_wordcloud2/typescript/extension_bokeh_wordcloud2.ts:351:13 - error TS2741: Property '0' is missing in type '(typeof Number | null)[]' but re

我从中下载了默认代码

我pip安装了word_cloud2并运行了它,结果发现了这个错误

Compilation failed:

../../../Anaconda3/lib/site-packages/bokeh_wordcloud2/typescript/extension_bokeh_wordcloud2.ts:351:13 - error TS2741: Property '0' is missing in type '(typeof Number | null)[]' but required in type '[PropertyConstructor<number>, (number | (() => number) | undefined)?]'.

351             gridSize:[p.Number,  null],
                ~~~~~~~~

  ../../../Anaconda3/lib/site-packages/bokeh_wordcloud2/typescript/extension_bokeh_wordcloud2.ts:314:9
    314         gridSize:p.Property<number>
                ~~~~~~~~
    The expected type comes from property 'gridSize' which is declared here on type 'Partial<DefineOf<Props>>'
../../../Anaconda3/lib/site-packages/bokeh_wordcloud2/typescript/extension_bokeh_wordcloud2.ts:352:13 - error TS2741: Property '0' is missing in type '(typeof String | null)[]' but required in type '[PropertyConstructor<string>, (string | (() => string) | undefined)?]'.

352             fontFamily:[p.String,  null],
                ~~~~~~~~~~

  ../../../Anaconda3/lib/site-packages/bokeh_wordcloud2/typescript/extension_bokeh_wordcloud2.ts:315:9
    315         fontFamily:p.Property<string>
                ~~~~~~~~~~
    The expected type comes from property 'fontFamily' which is declared here on type 'Partial<DefineOf<Props>>```
编译失败:
../../../Anaconda3/lib/site packages/bokeh_wordcloud2/typescript/extension_-bokeh_wordcloud2.ts:351:13-错误TS2741:type'(typeof Number | null)[]中缺少属性“0”,但在类型“[PropertyConstructor,(Number |(()=>Number)|未定义)?]”中是必需的。
351网格大小:[p.Number,null],
~~~~~~~~
../../../Anaconda3/lib/site packages/bokeh_wordcloud2/typescript/extension_bokeh_wordcloud2.ts:314:9
314网格大小:p.Property
~~~~~~~~
预期的类型来自属性“gridSize”,该属性在此处的类型“Partial”上声明
../../../Anaconda3/lib/site packages/bokeh_wordcloud2/typescript/extension_-bokeh_wordcloud2.ts:352:13-错误TS2741:type'(typeof String | null)[]中缺少属性“0”,但在类型“[PropertyConstructor,(String |(()=>String)|未定义)?]”中是必需的。
352 fontFamily:[p.String,null],
~~~~~~~~~~
../../../Anaconda3/lib/site packages/bokeh\u wordcloud2/typescript/extension\u bokeh\u wordcloud2.ts:315:9
315 fontFamily:p.Property
~~~~~~~~~~
所需类型来自属性“fontFamily”,该属性在此处的类型“Partial”上声明```

自定义扩展代码仍然与该扩展的Bokeh版本紧密相连。该活页夹示例使用的是1.2版,因此您需要使用该版本,代码保持原样。

非常感谢我对您的回复所作的解释。。。基本上,这与我猜的依赖性有关?