# Latest

**URL:** https://discourse.julialang.org/latest.md?page=1210

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 1211

---

## [The simplest linear fit with GLM](https://discourse.julialang.org/t/the-simplest-linear-fit-with-glm/71316)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 13\
**Last updated:** [November 11, 2021, 2:33pm UTC](https://discourse.julialang.org/t/the-simplest-linear-fit-with-glm/71316 "2021-11-11T14:33:01Z")

</div>

EDIT: In the spirit of TL;DR, here is what you need to make a simple linear fit: julia\> X=\[1,2,3\]; Y=\[2,4,7\]; data = (;X, Y) (X = \[1, 2, 3\], Y = \[2, 4, 7\]) julia\> lm(@formula(Y~X), data) StatsModels.TableRegressionMode…

---

## [How much does it cost you to run your Julia experiments on AWS / Azure etc.?](https://discourse.julialang.org/t/how-much-does-it-cost-you-to-run-your-julia-experiments-on-aws-azure-etc/38804)

<div class="topic-metadata">

**Author:** [@zygmuntszpak](https://discourse.julialang.org/u/zygmuntszpak)\
**Replies:** 10\
**Last updated:** [November 11, 2021, 2:18pm UTC](https://discourse.julialang.org/t/how-much-does-it-cost-you-to-run-your-julia-experiments-on-aws-azure-etc/38804 "2021-11-11T14:18:35Z")

</div>

I am in the process of scoping the budget for a project that I want to embark on which will involve large-scale 3D reconstruction from satellite images. I will need more than my desktop PC to handle the memory requiremen…

---

## [Plotting in phase space with Makie.jl](https://discourse.julialang.org/t/plotting-in-phase-space-with-makie-jl/70652)

<div class="topic-metadata">

**Author:** [@baumer](https://discourse.julialang.org/u/baumer)\
**Replies:** 3\
**Last updated:** [November 11, 2021, 2:05pm UTC](https://discourse.julialang.org/t/plotting-in-phase-space-with-makie-jl/70652 "2021-11-11T14:05:46Z")

</div>

I have an 10-element Vector{Array{Float64, 6}}: that gives the solution to a 6D + time PDE at every point in phase space on a certain interval as it progress through 10 time steps (hence the 10-element vector). I want t…

---

## [Learning statistics: seeking advice on how to model a 2d-size distribution of clothing items](https://discourse.julialang.org/t/learning-statistics-seeking-advice-on-how-to-model-a-2d-size-distribution-of-clothing-items/71152)

<div class="topic-metadata">

**Author:** [@tim\_pi](https://discourse.julialang.org/u/tim_pi)\
**Replies:** 25\
**Last updated:** [November 11, 2021, 1:47pm UTC](https://discourse.julialang.org/t/learning-statistics-seeking-advice-on-how-to-model-a-2d-size-distribution-of-clothing-items/71152 "2021-11-11T13:47:13Z")

</div>

Hi everyone, I’m new to Julia and have been trying it out for the past few weeks. As I’m still only beginning to (re)learn statistics as well, I’ve set out to get some insight into the following problem (I didn’t want t…

---

## [Computer specific slowdown on multi-threading on computer cluster (Linux)?](https://discourse.julialang.org/t/computer-specific-slowdown-on-multi-threading-on-computer-cluster-linux/57889)

<div class="topic-metadata">

**Author:** [@swishmas](https://discourse.julialang.org/u/swishmas)\
**Replies:** 27\
**Last updated:** [November 11, 2021, 1:44pm UTC](https://discourse.julialang.org/t/computer-specific-slowdown-on-multi-threading-on-computer-cluster-linux/57889 "2021-11-11T13:44:41Z")

</div>

I have a code that runs very fast on my laptop (~20 seconds). As a test, I put it onto a new cluster that I started using. The code took 30 minutes to run. This code uses a lot of multi-threading in a lot of places. I…

---

## [Turing: help speed up state space model](https://discourse.julialang.org/t/turing-help-speed-up-state-space-model/64234)

<div class="topic-metadata">

**Author:** [@Stephen\_Wild](https://discourse.julialang.org/u/Stephen_Wild)\
**Replies:** 3\
**Last updated:** [November 11, 2021, 1:03pm UTC](https://discourse.julialang.org/t/turing-help-speed-up-state-space-model/64234 "2021-11-11T13:03:27Z")

</div>

Hello all. I am trying to use Turing to run a state space model based on Simon Jackman’s Bayesian Analysis for the Social Sciences. In chapter 9, he sets out a few different latent variable models, including a state spa…

---

## [One element vector cannot be used to multiply another vector/matrix](https://discourse.julialang.org/t/one-element-vector-cannot-be-used-to-multiply-another-vector-matrix/71256)

<div class="topic-metadata">

**Author:** [@Fred\_He](https://discourse.julialang.org/u/Fred_He)\
**Replies:** 6\
**Last updated:** [November 11, 2021, 12:48pm UTC](https://discourse.julialang.org/t/one-element-vector-cannot-be-used-to-multiply-another-vector-matrix/71256 "2021-11-11T12:48:43Z")

</div>

rand(1,3)\*rand(3) is possible, and returns a 1-element vector but rand(1,3)\*rand(3)\*(another matrix) is usually not possible, rand(1,3)\*rand(3)\*rand(3) gives error: MethodError: no method matching \*(::Vector{Float64}…

---

## [Julia cannot find the module file in the same directory of the main file](https://discourse.julialang.org/t/julia-cannot-find-the-module-file-in-the-same-directory-of-the-main-file/71213)

<div class="topic-metadata">

**Author:** [@Adam\_D](https://discourse.julialang.org/u/Adam_D)\
**Replies:** 3\
**Last updated:** [November 11, 2021, 12:23pm UTC](https://discourse.julialang.org/t/julia-cannot-find-the-module-file-in-the-same-directory-of-the-main-file/71213 "2021-11-11T12:23:02Z")

</div>

Hi all, I have script named “main.jl” that uses a module written by me named “PmFunc.jl”. I call PmFunc module within main.jl using "using PmFunc. Both of these files are in the same folder. To make sure that the folder…

---

## [How to custom noise](https://discourse.julialang.org/t/how-to-custom-noise/71280)

<div class="topic-metadata">

**Author:** [@Frazze](https://discourse.julialang.org/u/Frazze)\
**Replies:** 6\
**Last updated:** [November 11, 2021, 12:20pm UTC](https://discourse.julialang.org/t/how-to-custom-noise/71280 "2021-11-11T12:20:32Z")

</div>

Hi everyone, I would like to study a SDE Problem with just additive white gaussian noise, but I would like also to control the value of the variance just to see what happen varying this value. How can I do? How can bui…

---

## [Wrong results when I use @btime](https://discourse.julialang.org/t/wrong-results-when-i-use-btime/71324)

<div class="topic-metadata">

**Author:** [@Niceno](https://discourse.julialang.org/u/Niceno)\
**Replies:** 5\
**Last updated:** [November 11, 2021, 10:57am UTC](https://discourse.julialang.org/t/wrong-results-when-i-use-btime/71324 "2021-11-11T10:57:40Z")

</div>

Dear all, I am quite baffled by the results I get when using @btime. I was following this simple lecture: https://cuda.juliagpu.org/stable/tutorials/introduction/ and just by copying and pasting from this page to a Jul…

---

## [\[ANN\] Julia mode for the Jed editor](https://discourse.julialang.org/t/ann-julia-mode-for-the-jed-editor/71322)

<div class="topic-metadata">

**Author:** [@mortenivar](https://discourse.julialang.org/u/mortenivar)\
**Replies:** 0\
**Last updated:** [November 11, 2021, 10:17am UTC](https://discourse.julialang.org/t/ann-julia-mode-for-the-jed-editor/71322 "2021-11-11T10:17:39Z")

</div>

Hi, This is just a one-off posting to announce a julia mode for the jed editor (jedsoft.org). It has the following features: syntax highlighting indentation of line, region or buffer an extensive help system with help…

---

## [Readline \<CR\> behavior](https://discourse.julialang.org/t/readline-cr-behavior/71317)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 3\
**Last updated:** [November 11, 2021, 10:04am UTC](https://discourse.julialang.org/t/readline-cr-behavior/71317 "2021-11-11T10:04:35Z")

</div>

Hi, when I execute the code below, the input does not end up in the correct variables. It needs more returns than expected to finish, everthing appears shifted by one or more returns. (HackerRank challenges depend on …

---

## [Error from MLJ Iris example, no method matching?](https://discourse.julialang.org/t/error-from-mlj-iris-example-no-method-matching/71313)

<div class="topic-metadata">

**Author:** [@jamaas](https://discourse.julialang.org/u/jamaas)\
**Replies:** 4\
**Last updated:** [November 11, 2021, 10:02am UTC](https://discourse.julialang.org/t/error-from-mlj-iris-example-no-method-matching/71313 "2021-11-11T10:02:14Z")

</div>

I’m at the install/testing phase of Julia and attempting to run the Iris example of training a model using the Julia MLJ. I think I have it installed properly but am getting this error. What have I done incorrectly? Thx.…

---

## [How to add keyword arguments to extended functions (Base.print)?](https://discourse.julialang.org/t/how-to-add-keyword-arguments-to-extended-functions-base-print/71250)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 5\
**Last updated:** [November 11, 2021, 7:29am UTC](https://discourse.julialang.org/t/how-to-add-keyword-arguments-to-extended-functions-base-print/71250 "2021-11-11T07:29:30Z")

</div>

I want to custom the print of my own object, but with an optional keyword argument. However when I then call my customised print using the keyword argument Julia tells me it couldn’t find it. I already know that keyword …

---

## [Plotting with Observables in Makie](https://discourse.julialang.org/t/plotting-with-observables-in-makie/70939)

<div class="topic-metadata">

**Author:** [@jm4h](https://discourse.julialang.org/u/jm4h)\
**Replies:** 6\
**Last updated:** [November 11, 2021, 6:49am UTC](https://discourse.julialang.org/t/plotting-with-observables-in-makie/70939 "2021-11-11T06:49:10Z")

</div>

I want to make an interactive plot with sliders, where the displayed data changes when my sliders get moved. That seems to work when the observable plotted is an array of positions. But is it possible if the observable …

---

## [Convert JPG image to pixel values](https://discourse.julialang.org/t/convert-jpg-image-to-pixel-values/71302)

<div class="topic-metadata">

**Author:** [@tgautam03](https://discourse.julialang.org/u/tgautam03)\
**Replies:** 2\
**Last updated:** [November 11, 2021, 5:55am UTC](https://discourse.julialang.org/t/convert-jpg-image-to-pixel-values/71302 "2021-11-11T05:55:59Z")

</div>

Hi, I’m using Images package to convert JPG image to an array with pixel values. I first loaded the image and then used channelview but I’m getting some weird values in the array. Can someone tell me how to convert this …

---

## [PyCall jumping from python to julia to python error](https://discourse.julialang.org/t/pycall-jumping-from-python-to-julia-to-python-error/71306)

<div class="topic-metadata">

**Author:** [@flytortgua](https://discourse.julialang.org/u/flytortgua)\
**Replies:** 0\
**Last updated:** [November 11, 2021, 4:58am UTC](https://discourse.julialang.org/t/pycall-jumping-from-python-to-julia-to-python-error/71306 "2021-11-11T04:58:06Z")

</div>

Hello, I have a backend algorithm which makes julia calls, I do this via the PyCall package. however, one of the packages in julia recently updated, and it itself makes use of PyCall. no mater what I try to do, I alwa…

---

## [Plotting figures and updating in loop](https://discourse.julialang.org/t/plotting-figures-and-updating-in-loop/71117)

<div class="topic-metadata">

**Author:** [@Sbeltranj](https://discourse.julialang.org/u/Sbeltranj)\
**Replies:** 5\
**Last updated:** [November 11, 2021, 1:16am UTC](https://discourse.julialang.org/t/plotting-figures-and-updating-in-loop/71117 "2021-11-11T01:16:20Z")

</div>

Hi, I want to create plots of a function in a for loop, in separate windows (p1, p2), but it is displayed in a single window. I used MATLAB and there I used figure (), to create empty figures. in this case I have used p…

---

## [Conditional for function](https://discourse.julialang.org/t/conditional-for-function/71296)

<div class="topic-metadata">

**Author:** [@Sbeltranj](https://discourse.julialang.org/u/Sbeltranj)\
**Replies:** 3\
**Last updated:** [November 11, 2021, 1:11am UTC](https://discourse.julialang.org/t/conditional-for-function/71296 "2021-11-11T01:11:18Z")

</div>

Hi, I have a conditional inside the for loop, the conditional changes the function in each loop, but first i get the error “qxloc is not defined” so add qxloc (x) = nothing; but this does not solve the problem and the c…

---

## [Problem using SMTPClient.jl](https://discourse.julialang.org/t/problem-using-smtpclient-jl/71249)

<div class="topic-metadata">

**Author:** [@sransome](https://discourse.julialang.org/u/sransome)\
**Replies:** 2\
**Last updated:** [November 11, 2021, 12:13am UTC](https://discourse.julialang.org/t/problem-using-smtpclient-jl/71249 "2021-11-11T00:13:15Z")

</div>

I’m struggling to get SMTPClient working because get\_body and get\_mime\_msg are not defined. Same behaviour in REPL and ^F5 . Apart from adding the package and the using SMTPClient line do I need to do anything else? o…

---

## [Plot 3d data in a 2d contour plot](https://discourse.julialang.org/t/plot-3d-data-in-a-2d-contour-plot/71251)

<div class="topic-metadata">

**Author:** [@skolari93](https://discourse.julialang.org/u/skolari93)\
**Replies:** 6\
**Last updated:** [November 10, 2021, 11:45pm UTC](https://discourse.julialang.org/t/plot-3d-data-in-a-2d-contour-plot/71251 "2021-11-10T23:45:23Z")

</div>

Hello, I would like to plot (x,y,z) data in in a contour or contourf plot, where the color is set by z. contour only takes matrices as inputs, but I only have some sample points as vectors. Does anyone know how to do …

---

## [What is a curl error?](https://discourse.julialang.org/t/what-is-a-curl-error/71291)

<div class="topic-metadata">

**Author:** [@ctkelley](https://discourse.julialang.org/u/ctkelley)\
**Replies:** 3\
**Last updated:** [November 10, 2021, 10:48pm UTC](https://discourse.julialang.org/t/what-is-a-curl-error/71291 "2021-11-10T22:48:13Z")

</div>

I just tried to install GoldenSequences on two of my computers and got a message I do not understand. The error I saw first was a stream of identical messages like this ┌ Error: curl\_easy\_setopt: 48 └ @ Downloads.Curl …

---

## [Makie \`convert\_arguments\`](https://discourse.julialang.org/t/makie-convert-arguments/71270)

<div class="topic-metadata">

**Author:** [@circonflexe](https://discourse.julialang.org/u/circonflexe)\
**Replies:** 4\
**Last updated:** [November 10, 2021, 10:46pm UTC](https://discourse.julialang.org/t/makie-convert-arguments/71270 "2021-11-10T22:46:21Z")

</div>

So I am trying to extend Makie plotting to some types of my own. According to the (very terse) online documentation it is sufficient to define a new method for convert\_arguments: using GLMakie using StaticArrays struct…

---

## [Basic Revise.jl usage when developing a module](https://discourse.julialang.org/t/basic-revise-jl-usage-when-developing-a-module/19140)

<div class="topic-metadata">

**Author:** [@affans](https://discourse.julialang.org/u/affans)\
**Replies:** 15\
**Last updated:** [November 10, 2021, 10:36pm UTC](https://discourse.julialang.org/t/basic-revise-jl-usage-when-developing-a-module/19140 "2021-11-10T22:36:56Z")

</div>

I am having trouble running Revise.jl on my Windows machine. My workflow is as follows. On VSCode I am writing my Julia module. I also have the Julia REPL open separately. I’ve run the following code in my REPL include…

---

## [Package not found in project, manifest or registry](https://discourse.julialang.org/t/package-not-found-in-project-manifest-or-registry/71274)

<div class="topic-metadata">

**Author:** [@vsoler](https://discourse.julialang.org/u/vsoler)\
**Replies:** 3\
**Last updated:** [November 10, 2021, 9:33pm UTC](https://discourse.julialang.org/t/package-not-found-in-project-manifest-or-registry/71274 "2021-11-10T21:33:23Z")

</div>

I have a problem installing packages (not only TimeData, others as well. I repeatedly get this error message, and I do not know any waiy out of this. Can you please suggest anything that I could try? Thank you (@v1.6) …

---

## [Using PyCall on different threads crashes my Julia REPL](https://discourse.julialang.org/t/using-pycall-on-different-threads-crashes-my-julia-repl/71266)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 3\
**Last updated:** [November 10, 2021, 9:28pm UTC](https://discourse.julialang.org/t/using-pycall-on-different-threads-crashes-my-julia-repl/71266 "2021-11-10T21:28:58Z")

</div>

Hi all :slight\_smile: the following two lines crashes my Julia REPL. julia\> using PyCall julia\> \[Threads.@spawn py"sum(i for i in range(10\_000\_000))" for i in 1:10\] Anyone with the same experience? Does anyone know w…

---

## [LoadError: expected package to have a \`name\`-entry?](https://discourse.julialang.org/t/loaderror-expected-package-to-have-a-name-entry/71276)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 19\
**Last updated:** [November 10, 2021, 8:42pm UTC](https://discourse.julialang.org/t/loaderror-expected-package-to-have-a-name-entry/71276 "2021-11-10T20:42:48Z")

</div>

I want to make an executable file. When I start the compilation, I get the below error: ┌ Warning: it is not recommended to create an app/library without a preexisting manifest └ @ PackageCompiler C:\\Users\\amroa\\.julia\\…

---

## [Latex macros in Weave.jl generated Jupyter notebooks](https://discourse.julialang.org/t/latex-macros-in-weave-jl-generated-jupyter-notebooks/71272)

<div class="topic-metadata">

**Author:** [@dlfivefifty](https://discourse.julialang.org/u/dlfivefifty)\
**Replies:** 0\
**Last updated:** [November 10, 2021, 5:53pm UTC](https://discourse.julialang.org/t/latex-macros-in-weave-jl-generated-jupyter-notebooks/71272 "2021-11-10T17:53:01Z")

</div>

How do I add latex macros when I use Weave.notebook ? I tried putting them in between dollar signs but that would only work inside the same dollar signs, the next latex expression wouldn’t know about the macros. For We…

---

## [Julia's business model](https://discourse.julialang.org/t/julias-business-model/70328)

<div class="topic-metadata">

**Author:** [@leon](https://discourse.julialang.org/u/leon)\
**Replies:** 102\
**Last updated:** [November 10, 2021, 8:11pm UTC](https://discourse.julialang.org/t/julias-business-model/70328 "2021-11-10T20:11:48Z")

</div>

I recently switched from Matlab to Julia. It is my first time to use an open-source programming language. So far I have been loving it very much. I am very grateful for all the help from this very friendly Julia communit…

---

## [CTESN Code / Packages?](https://discourse.julialang.org/t/ctesn-code-packages/71279)

<div class="topic-metadata">

**Author:** [@wkharold](https://discourse.julialang.org/u/wkharold)\
**Replies:** 0\
**Last updated:** [November 10, 2021, 6:48pm UTC](https://discourse.julialang.org/t/ctesn-code-packages/71279 "2021-11-10T18:48:32Z")

</div>

I’m looking for the code used in the Continuous-Time Echo State Network paper. Surrogages.jl is referenced in the paper, and I found the ReservoirComputing.jl package but on first glance neither illustrates how to get th…

[Previous page](https://discourse.julialang.org/latest.md?page=1209)

[Next page](https://discourse.julialang.org/latest.md?page=1211)
