【问题标题】:Is there a reason why plot gives an error in atom but works fine on jupyter-notebook?为什么 plot 在 atom 中出现错误但在 jupyter-notebook 上工作正常?
【发布时间】:2019-11-07 11:20:43
【问题描述】:

我是 Julia 的新用户。我想开始使用 Juno 在 Atom 中使用 Julia。在我使用 jupyter-notebooks 做一些教程之前。 现在,当我尝试运行下面的代码时,它会返回以下错误消息。 当我在 jupyter-notebook 中的同一台机器上运行相同的代码时,我没有收到错误。

网上有很多人遇到同样的错误,但没有一个解决方案可以帮助我。在我看来,绘图的问题没有正确预编译。 例如:Plot not defined with Julia

using Plots 
x = 1:10;
y = rand(10); # These are the plotting data
plot(x,y)

UndefVarError:绘图未定义 testatom.jl:3 的顶级作用域

【问题讨论】:

  • 在执行该代码时,您是否在 Juno 的 REPL 中遇到任何错误?如果是这样,请更新您的问题以包含这些内容。

标签: jupyter-notebook julia atom-editor plots.jl


【解决方案1】:

这应该可行,尝试重建地块?

using Pkg;pkg”build Plots”

还要执行 atom 中建议的任何更新。

另外,哪个版本的朱莉娅?请注意,链接很旧...

【讨论】:

  • 更新 atom 修复了它。非常感谢
猜你喜欢
  • 1970-01-01
  • 2021-04-10
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-07-26
  • 2014-09-15
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多