我是 F# 交互式笔记本和 XPlot.Plotly 的新手。
我尝试了下面的代码,希望能得到一个漂亮的正弦波
#r "nuget: XPlot.Plotly"
open XPlot.Plotly
let series = [for x in -5.0 .. 0.1 .. 5.0 -> sin x]
Chart.Line(series)
我得到的不是图表 Table showing Height, Id and Width
- 我已经尝试过 VS Code 1.54.0-insider 和 1.53.2 结果
- 我尝试了几个不同版本的 .NET Interactive 结果相同的笔记本
- 我试过几个版本的 .Net 5 开发工具包
- 我尝试了几个版本的 XPlot.Plotly
请指出我做错了什么
最佳答案
你需要添加交互式nuget包
#r "nuget: XPlot.Plotly"
#r "nuget: XPlot.Plotly.Interactive"
关于plotly - F# 交互式笔记本不显示 Plotly 图表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66358611/