# Latest

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

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

**Page:** 980

---

## [How to display two plots?](https://discourse.julialang.org/t/how-to-display-two-plots/84355)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 4\
**Last updated:** [July 17, 2022, 4:44pm UTC](https://discourse.julialang.org/t/how-to-display-two-plots/84355 "2022-07-17T16:44:51Z")

</div>

How can I plot two plots on the screen? This does not work: using ControlSystems, Plots P₀ = tf(1.0, \[1, 1\]) p1=bodeplot(P₀) display(p1) p2=plot(step(P₀)) display(p2)

---

## [How to solve the gtk problem when compiling with PackageCompiler?](https://discourse.julialang.org/t/how-to-solve-the-gtk-problem-when-compiling-with-packagecompiler/84309)

<div class="topic-metadata">

**Author:** [@Supernova](https://discourse.julialang.org/u/Supernova)\
**Replies:** 3\
**Last updated:** [July 17, 2022, 4:43pm UTC](https://discourse.julialang.org/t/how-to-solve-the-gtk-problem-when-compiling-with-packagecompiler/84309 "2022-07-17T16:43:10Z")

</div>

I have used Gtk in my program. When running by source code, it works normally. module testGTK using Gtk function julia\_main() infilename = open\_dialog\_native("Select input file...", GtkNullContainer(), String\[\]) …

---

## [Weird behaviour of variable scope in Julia Loops](https://discourse.julialang.org/t/weird-behaviour-of-variable-scope-in-julia-loops/84359)

<div class="topic-metadata">

**Author:** [@shwetank\_verma](https://discourse.julialang.org/u/shwetank_verma)\
**Replies:** 1\
**Last updated:** [July 17, 2022, 3:49pm UTC](https://discourse.julialang.org/t/weird-behaviour-of-variable-scope-in-julia-loops/84359 "2022-07-17T15:49:33Z")

</div>

Hey everyone, I have noticed this peculiar behavior of variable scope inside the for loops in Julia. I am calling it peculiar as I have not seen this in Python. Consider this Python code: for i in range(1,10): if …

---

## [Fully Funded PhD Positions at Ghent University](https://discourse.julialang.org/t/fully-funded-phd-positions-at-ghent-university/84357)

<div class="topic-metadata">

**Author:** [@krcools](https://discourse.julialang.org/u/krcools)\
**Replies:** 0\
**Last updated:** [July 17, 2022, 3:09pm UTC](https://discourse.julialang.org/t/fully-funded-phd-positions-at-ghent-university/84357 "2022-07-17T15:09:11Z")

</div>

We are offering two fully funded PhD positions at Ghent University in scientific computing. These positions are opened as part of ERC-CoG project BET3D: Boundary Element Time Domain Domain Decomposition Methods. The sof…

---

## [How to change branch name using \`LibGit2\`?](https://discourse.julialang.org/t/how-to-change-branch-name-using-libgit2/84353)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 4\
**Last updated:** [July 17, 2022, 12:57pm UTC](https://discourse.julialang.org/t/how-to-change-branch-name-using-libgit2/84353 "2022-07-17T12:57:07Z")

</div>

sorry, not sure which category suits best I am using LibGit2 to create a new git repository inside a package. I am doing something like: repo = LibGit2.init(path) sig = LibGit2.Signature("DrWatson", "no…

---

## [How to launch multiple Julia runs one after another?](https://discourse.julialang.org/t/how-to-launch-multiple-julia-runs-one-after-another/84351)

<div class="topic-metadata">

**Author:** [@Leon6](https://discourse.julialang.org/u/Leon6)\
**Replies:** 4\
**Last updated:** [July 17, 2022, 12:36pm UTC](https://discourse.julialang.org/t/how-to-launch-multiple-julia-runs-one-after-another/84351 "2022-07-17T12:36:33Z")

</div>

I have 25 \*.jl files that need to be run one after another. Each of them could take an extended amount of time. Is there a way I can create a master\_run.jl file and tell Julia to run these 25 jl files one after another…

---

## [New warning msg from 1.8.0-rc3](https://discourse.julialang.org/t/new-warning-msg-from-1-8-0-rc3/84335)

<div class="topic-metadata">

**Author:** [@ctkelley](https://discourse.julialang.org/u/ctkelley)\
**Replies:** 4\
**Last updated:** [July 17, 2022, 10:13am UTC](https://discourse.julialang.org/t/new-warning-msg-from-1-8-0-rc3/84335 "2022-07-17T10:13:58Z")

</div>

I’m getting WARNING: could not import Base.\_rangestyle into ArrayLayouts when I run CI for my package. This is new for 1.8.0-rc3. What does this mean? Is there something I need to do?

---

## [Including a variable outside a function in a log message](https://discourse.julialang.org/t/including-a-variable-outside-a-function-in-a-log-message/84347)

<div class="topic-metadata">

**Author:** [@florian](https://discourse.julialang.org/u/florian)\
**Replies:** 1\
**Last updated:** [July 17, 2022, 9:54am UTC](https://discourse.julialang.org/t/including-a-variable-outside-a-function-in-a-log-message/84347 "2022-07-17T09:54:42Z")

</div>

Assume I have a function that does some calculation on a piece of data and I want to log when somewthing goes wrong: struct MyData id::String number::Number end function main() data = \[MyData("a", -1), My…

---

## [Problems plotting a simple graph](https://discourse.julialang.org/t/problems-plotting-a-simple-graph/72533)

<div class="topic-metadata">

**Author:** [@Mark\_Williams](https://discourse.julialang.org/u/Mark_Williams)\
**Replies:** 5\
**Last updated:** [July 17, 2022, 6:38am UTC](https://discourse.julialang.org/t/problems-plotting-a-simple-graph/72533 "2022-07-17T06:38:55Z")

</div>

For some reason I can’t produce a plot of a graph from LightGraphs.jl using GraphPlot.jl. I’m quite new to Julia so not sure what else to try. using LightGraphs using GraphPlot sg = complete\_digraph(3) gplot(sg) I jus…

---

## [The role of femtolisp in Julia?](https://discourse.julialang.org/t/the-role-of-femtolisp-in-julia/1902)

<div class="topic-metadata">

**Author:** [@abhi18av](https://discourse.julialang.org/u/abhi18av)\
**Replies:** 40\
**Last updated:** [July 11, 2022, 8:25pm UTC](https://discourse.julialang.org/t/the-role-of-femtolisp-in-julia/1902 "2022-07-11T20:25:44Z")

</div>

Hii Julians, I was wondering about the exact usage of femtolisp in julia. I’ve Googled around but the nothing exact came up, though there were some references in the old archives. I know that the julia-parser has a nat…

---

## [Moving from Genie to HTTP (or a linux socket)](https://discourse.julialang.org/t/moving-from-genie-to-http-or-a-linux-socket/84341)

<div class="topic-metadata">

**Author:** [@gmouts](https://discourse.julialang.org/u/gmouts)\
**Replies:** 0\
**Last updated:** [July 17, 2022, 1:33am UTC](https://discourse.julialang.org/t/moving-from-genie-to-http-or-a-linux-socket/84341 "2022-07-17T01:33:58Z")

</div>

I want to have a deamon running on a server and I would like to be able to change some parameters without restarting it. My guess was that the best way to do that was by using a socket. I played a bit with genie and I e…

---

## [Polynomial in n variables with AbstractAlgebra](https://discourse.julialang.org/t/polynomial-in-n-variables-with-abstractalgebra/84338)

<div class="topic-metadata">

**Author:** [@\_stla](https://discourse.julialang.org/u/_stla)\
**Replies:** 1\
**Last updated:** [July 16, 2022, 11:22pm UTC](https://discourse.julialang.org/t/polynomial-in-n-variables-with-abstractalgebra/84338 "2022-07-16T23:22:42Z")

</div>

Hello, Here is an example of the declaration of a multivariate polynomial with AbstractAlgebra: using AbstractAlgebra using Printf # used to write the result # define the symbolic constants SS, (a,b,c,d,sqrt3,w0) = Po…

---

## [Splitting polygons into narrow and wide parts](https://discourse.julialang.org/t/splitting-polygons-into-narrow-and-wide-parts/84307)

<div class="topic-metadata">

**Author:** [@Wikunia](https://discourse.julialang.org/u/Wikunia)\
**Replies:** 3\
**Last updated:** [July 16, 2022, 10:59pm UTC](https://discourse.julialang.org/t/splitting-polygons-into-narrow-and-wide-parts/84307 "2022-07-16T22:59:59Z")

</div>

Hey everyone, I’m interested in a general polygon splitting algorithm that is able to identify very narrow regions and can split up narrow from wide regions. I found this via google: and was wondering whether this is…

---

## [Store in place results from function returning multiple arrays](https://discourse.julialang.org/t/store-in-place-results-from-function-returning-multiple-arrays/84336)

<div class="topic-metadata">

**Author:** [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Replies:** 8\
**Last updated:** [July 16, 2022, 10:48pm UTC](https://discourse.julialang.org/t/store-in-place-results-from-function-returning-multiple-arrays/84336 "2022-07-16T22:48:31Z")

</div>

What is the best practice to store in place the results of a function returning multiple arrays? A simple non-MWE: f(x,y,z) = 1 ./ x, y'.\*y, 2\*z # the actual function is long and complex, with matrix operations n…

---

## [Warning on setindex duplication](https://discourse.julialang.org/t/warning-on-setindex-duplication/84200)

<div class="topic-metadata">

**Author:** [@Marco\_Lombardi](https://discourse.julialang.org/u/Marco_Lombardi)\
**Replies:** 2\
**Last updated:** [July 14, 2022, 9:56pm UTC](https://discourse.julialang.org/t/warning-on-setindex-duplication/84200 "2022-07-14T21:56:45Z")

</div>

I have some troubles with packages compatibilities: each time I compile a module, I get a few error messages: WARNING: Method definition setindex(AbstractArray{T, 2} where T, Any, Int64, Int64) in module ArrayInterface …

---

## [Dynare - "LoadError: InexactError: Int64(NaN)" for the simplest model](https://discourse.julialang.org/t/dynare-loaderror-inexacterror-int64-nan-for-the-simplest-model/84284)

<div class="topic-metadata">

**Author:** [@geekbear](https://discourse.julialang.org/u/geekbear)\
**Replies:** 7\
**Last updated:** [July 16, 2022, 8:18pm UTC](https://discourse.julialang.org/t/dynare-loaderror-inexacterror-int64-nan-for-the-simplest-model/84284 "2022-07-16T20:18:55Z")

</div>

Hi! I was computing the transition path in the perfect foresight Solow growth model from a given initial capital stock, and keep getting “LoadError: InexactError: Int64(NaN)” when I tried to run the .mod file. I can’t fi…

---

## [Simple plotting, I am getting \*could not load library "libGR.so"\*](https://discourse.julialang.org/t/simple-plotting-i-am-getting-could-not-load-library-libgr-so/48611)

<div class="topic-metadata">

**Author:** [@mausam614](https://discourse.julialang.org/u/mausam614)\
**Replies:** 10\
**Last updated:** [July 16, 2022, 7:32pm UTC](https://discourse.julialang.org/t/simple-plotting-i-am-getting-could-not-load-library-libgr-so/48611 "2022-07-16T19:32:48Z")

</div>

Hello Julia experts, Please help me get a plot. I am almost done with my first assignment using Julia and got to a stage where I need at least a plot. My code for the plotting is: x = Rating\_count.Ratings; y = Rating…

---

## [Simulation with Mamba.jl or something else](https://discourse.julialang.org/t/simulation-with-mamba-jl-or-something-else/84331)

<div class="topic-metadata">

**Author:** [@bwanab](https://discourse.julialang.org/u/bwanab)\
**Replies:** 0\
**Last updated:** [July 16, 2022, 7:33pm UTC](https://discourse.julialang.org/t/simulation-with-mamba-jl-or-something-else/84331 "2022-07-16T19:33:35Z")

</div>

As background, I’m going through Allen Downey’s ThinkBayes 2nd edition. My double pedagogical approach is that I’m translating all the examples and exercises to equivalent Julia code from the original python. Through cha…

---

## [Why is it possible to change the values of a row of a given matrix with a new matrix?](https://discourse.julialang.org/t/why-is-it-possible-to-change-the-values-of-a-row-of-a-given-matrix-with-a-new-matrix/84322)

<div class="topic-metadata">

**Author:** [@Shayan](https://discourse.julialang.org/u/Shayan)\
**Replies:** 2\
**Last updated:** [July 16, 2022, 7:25pm UTC](https://discourse.julialang.org/t/why-is-it-possible-to-change-the-values-of-a-row-of-a-given-matrix-with-a-new-matrix/84322 "2022-07-16T19:25:34Z")

</div>

I tried to pick an exact and explicit title for this question but failed. So I guess you must read my entire question to understand the issue. In Julia, we can define a random 2\*5 Matrix using rand(2,5): julia\> a = ran…

---

## [Strange behavior of \`reshape\`](https://discourse.julialang.org/t/strange-behavior-of-reshape/84288)

<div class="topic-metadata">

**Author:** [@frankwswang](https://discourse.julialang.org/u/frankwswang)\
**Replies:** 7\
**Last updated:** [July 16, 2022, 7:20pm UTC](https://discourse.julialang.org/t/strange-behavior-of-reshape/84288 "2022-07-16T19:20:06Z")

</div>

It seems that reshape won’t make a shallow copy of the input array when the input array has the same shape as the output: julia\> a = rand(4); julia\> b = reshape(a, :); julia\> pop!(b); julia\> length(a) == 3 true I’m …

---

## [Large matrix crashes StaticArrays](https://discourse.julialang.org/t/large-matrix-crashes-staticarrays/58689)

<div class="topic-metadata">

**Author:** [@alequa](https://discourse.julialang.org/u/alequa)\
**Replies:** 5\
**Last updated:** [July 16, 2022, 7:11pm UTC](https://discourse.julialang.org/t/large-matrix-crashes-staticarrays/58689 "2022-07-16T19:11:55Z")

</div>

Hi, I would like to instantiate a medium-size (1000,1000) matrix in a StaticArray field of MyStruct. But it crashes! Can you tell me if I am doing something wrong? a = SMatrix{1000,1000, Float64}(rand(1000,1000)) sy…

---

## [Hessian matrix of a neural network vetor output](https://discourse.julialang.org/t/hessian-matrix-of-a-neural-network-vetor-output/83517)

<div class="topic-metadata">

**Author:** [@mauerflitzer](https://discourse.julialang.org/u/mauerflitzer)\
**Replies:** 3\
**Last updated:** [July 16, 2022, 1:28pm UTC](https://discourse.julialang.org/t/hessian-matrix-of-a-neural-network-vetor-output/83517 "2022-07-16T13:28:51Z")

</div>

Hello, so I have a physics informed neural network which has the same output shape as input \[batchsize x 64\]. With this output vector I have to calculate the first and second order derrivatives, which I tried to do with…

---

## [Efficient way to chain a series of \`diff\` calls](https://discourse.julialang.org/t/efficient-way-to-chain-a-series-of-diff-calls/84275)

<div class="topic-metadata">

**Author:** [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Replies:** 11\
**Last updated:** [July 16, 2022, 12:46pm UTC](https://discourse.julialang.org/t/efficient-way-to-chain-a-series-of-diff-calls/84275 "2022-07-16T12:46:26Z")

</div>

Hi, I would like to call the diff function in base a few times in a row to compute n-th differenced data. Of course, I could import Base.diff and write down an extended version of the function with an ad-hoc for-loop to…

---

## [Performance LinearOperators.jl](https://discourse.julialang.org/t/performance-linearoperators-jl/84271)

<div class="topic-metadata">

**Author:** [@Dario-Rosa85](https://discourse.julialang.org/u/Dario-Rosa85)\
**Replies:** 2\
**Last updated:** [July 16, 2022, 11:56am UTC](https://discourse.julialang.org/t/performance-linearoperators-jl/84271 "2022-07-16T11:56:49Z")

</div>

I have a question on the use of the package LinearOperators.jl. I am writing a code where the performance speed is crucial. The code is based on computing many-times the action of a linear operator over a given vector. N…

---

## [GLMakie: Point2f not defined](https://discourse.julialang.org/t/glmakie-point2f-not-defined/84292)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 10\
**Last updated:** [July 16, 2022, 9:41am UTC](https://discourse.julialang.org/t/glmakie-point2f-not-defined/84292 "2022-07-16T09:41:39Z")

</div>

Hi all, I have run this code smoothly yesterday, but it can’t be run anymore, it triggers an error UndefVarError: Point2f not defined Stacktrace: \*\* \[1\] (::var"#1#3"{StepRangeLen{Float64, Base.TwicePrecision{Float64}…

---

## [Makie can't plot sin(1/x) : \`Makie.convert\_arguments\`](https://discourse.julialang.org/t/makie-cant-plot-sin-1-x-makie-convert-arguments/84272)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 8\
**Last updated:** [July 16, 2022, 8:44am UTC](https://discourse.julialang.org/t/makie-cant-plot-sin-1-x-makie-convert-arguments/84272 "2022-07-16T08:44:51Z")

</div>

Hi all, I try to plot sin(1/x) by using Makie(CairoMakie) https://makie.juliaplots.org/stable/tutorials/basic-tutorial/ using CairoMakie x = LinRange(0, 10, 100) y = sin.(1/x) fig = Figure() lines(fig\[1, 1\], x, y, c…

---

## [Is it possible to skip to the next loop on time limit?](https://discourse.julialang.org/t/is-it-possible-to-skip-to-the-next-loop-on-time-limit/84306)

<div class="topic-metadata">

**Author:** [@Funkerfish](https://discourse.julialang.org/u/Funkerfish)\
**Replies:** 6\
**Last updated:** [July 16, 2022, 7:55am UTC](https://discourse.julialang.org/t/is-it-possible-to-skip-to-the-next-loop-on-time-limit/84306 "2022-07-16T07:55:57Z")

</div>

Thanks to you guys I have learned the method to kill the loop on the time limit.https://discourse.julialang.org/t/how-would-i-stop-a-while-loop-after-n-amount-of-time/84299/2 but I am still wondering if there is any meth…

---

## [Genie, Nettle and Nettle\_jll keep failing to precompile](https://discourse.julialang.org/t/genie-nettle-and-nettle-jll-keep-failing-to-precompile/69081)

<div class="topic-metadata">

**Author:** [@olijg](https://discourse.julialang.org/u/olijg)\
**Replies:** 3\
**Last updated:** [July 16, 2022, 7:40am UTC](https://discourse.julialang.org/t/genie-nettle-and-nettle-jll-keep-failing-to-precompile/69081 "2022-07-16T07:40:57Z")

</div>

Hello everyone. I’ve been struggling with Genie on my laptop running Fedora for a while now. It worked once upon a time, but now it seems to fail to precompile along with Nettle and Nettle\_jll. Is anybody else having th…

---

## [StackOverflowError when training a neural network](https://discourse.julialang.org/t/stackoverflowerror-when-training-a-neural-network/84224)

<div class="topic-metadata">

**Author:** [@jpt](https://discourse.julialang.org/u/jpt)\
**Replies:** 5\
**Last updated:** [July 16, 2022, 7:10am UTC](https://discourse.julialang.org/t/stackoverflowerror-when-training-a-neural-network/84224 "2022-07-16T07:10:24Z")

</div>

I am training a Neural network using the Flux library. The definition of the neural network is as follows: NN = Flux.Chain( Flux.Dense(13, 32, sigmoid), Flux.Dense(32, 32, sigmoid), Flux.Dense(32…

---

## [Unexpected memory cost with Julia](https://discourse.julialang.org/t/unexpected-memory-cost-with-julia/84295)

<div class="topic-metadata">

**Author:** [@F-YF](https://discourse.julialang.org/u/F-YF)\
**Replies:** 5\
**Last updated:** [July 16, 2022, 7:07am UTC](https://discourse.julialang.org/t/unexpected-memory-cost-with-julia/84295 "2022-07-16T07:07:20Z")

</div>

Recently I found my code had an unexpected memory cost while working with Julia. See the following example: using OMEinsum len = 20 tensor1 = rand(len,len,len,len) tensor2 = rand(len,len,len) tensor3 …

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

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