朱莉娅的直方图:分发。

发布于 2025-01-29 07:50:06 字数 1575 浏览 3 评论 0原文

我正在M1芯片上的冥王星笔记本中运行Julia 1.7.2。

我的整数向量在1到9之间,并想制作一个直方图,显示哪些整数最常见。

我以为我已经通过成功地完成了此操作,然后在适当的向量上调用直方图。有一次,我什至产生了一个我喜欢这样做的情节。

然后,我尝试在我编写的另一个pluto笔记本中复制此过程(IE 使用图,然后调用直方图)。

我不知道它是否与其他软件包发生冲突,但是我开始在此其他笔记本电脑中进行distributed.processexitedexception错误。

在另一个失败模式下,我创建了一个单元格,该单元仅包含以下代码

begin
    using Plots
    histogram(vector)
end

,当我使用此代码运行笔记本时,所有其他单元格都对此进行了评估,但是最后一个单元格永远滞后并且无法评估。

沮丧的是,我回到了第一个笔记本电脑上,我在那里绘制了工作,但是现在我也得到了distribute.processexitedexception错误!

我只是在发布,看看是否有人对可能发生的事情有任何想法。

特别是,

  • 分布式之间是否存在链接?
  • 是否有任何会导致一个笔记本中的错误会导致以前一直在努力失败的其他笔记本?

我在第一个笔记本电脑中使用的包装,然后没有起作用)是

begin
    using DataFrames
    using BSON
    using Revise
    using FileIO
    using CSV, HDF5, NRRD
    # Statistics
    using StatsBase: mean, nquantile, percentile
    using LinearAlgebra: norm, mul!
    using HypothesisTests
    using Plots
    using Random
    # Tensors
    using Tullio: @tullio
    # Algorithms
    import Flux
    import Flux: update!
    using Flux: RMSProp
end

我在第二个笔记本中使用的包裹,从未工作过

begin
    using DataFrames
    using FileIO
    using CSV, HDF5, NRRD
    # Statistics
    using StatsBase: mean, nquantile, percentile
    using LinearAlgebra: norm, mul!
    using HypothesisTests
    # Tensors
    using Tullio: @tullio
    # Algorithms
    import Flux
    import Flux: update!
    using Flux: RMSProp
end

I'm running Julia 1.7.2 in a Pluto notebook on an M1 chip.

I have a vector of integers between 1 and 9, and would like to make a histogram showing which integers are most frequent.

I thought I had done this successfully by using Plots and then calling histogram on the appropriate vector. At one point I had even generated a plot that I liked doing this.

I then tried to replicate this procedure (i.e. using Plots, and then call histogram) in a different Pluto notebook I had written.

I don't know if it was conflicting with other packages, but I began to get Distributed.ProcessExitedException errors in this other notebook when I ran histogram.

In another fail mode, I created a cell that contained only the following code

begin
    using Plots
    histogram(vector)
end

When I run the notebook with this code, all the other cells evaluate, but then this last cell lags forever and does not evaluate.

Frustrated, I went back to the first notebook where I had gotten the plotting to work, but now I get Distributed.ProcessExitedException error there too!

I am just posting to see if anyone has any ideas as to what might be going on.

In particular,

  • is there a link between Plots and Distributed?
  • is there anything that would cause an error in one notebook to cause a different notebook that had previously been working to fail?

The packages I was using in the first notebook that worked, and then didn't work) were

begin
    using DataFrames
    using BSON
    using Revise
    using FileIO
    using CSV, HDF5, NRRD
    # Statistics
    using StatsBase: mean, nquantile, percentile
    using LinearAlgebra: norm, mul!
    using HypothesisTests
    using Plots
    using Random
    # Tensors
    using Tullio: @tullio
    # Algorithms
    import Flux
    import Flux: update!
    using Flux: RMSProp
end

The packages I was using in the second notebook that never worked were

begin
    using DataFrames
    using FileIO
    using CSV, HDF5, NRRD
    # Statistics
    using StatsBase: mean, nquantile, percentile
    using LinearAlgebra: norm, mul!
    using HypothesisTests
    # Tensors
    using Tullio: @tullio
    # Algorithms
    import Flux
    import Flux: update!
    using Flux: RMSProp
end

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文