# Latest

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

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

**Page:** 1639

---

## [Screenshots with package or cmd tool](https://discourse.julialang.org/t/screenshots-with-package-or-cmd-tool/46158)

<div class="topic-metadata">

**Author:** [@noroskir](https://discourse.julialang.org/u/noroskir)\
**Replies:** 1\
**Last updated:** [September 7, 2020, 9:57am UTC](https://discourse.julialang.org/t/screenshots-with-package-or-cmd-tool/46158 "2020-09-07T09:57:38Z")

</div>

Hello there ! Is there a native Julia package to take a screenshot? Alternatively does anybody know if it is possible to read the output of a cmd tool like xwd ( X Window Dump ) directly into a Julia object ? Thanks! …

---

## [What's the easiest way to set up multi-node distributed computing with Julia?](https://discourse.julialang.org/t/whats-the-easiest-way-to-set-up-multi-node-distributed-computing-with-julia/46169)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 4\
**Last updated:** [September 7, 2020, 9:28am UTC](https://discourse.julialang.org/t/whats-the-easiest-way-to-set-up-multi-node-distributed-computing-with-julia/46169 "2020-09-07T09:28:02Z")

</div>

I was thinking, is it easier to just buy another Raspberry pi, install Julia and then try to set up SSH into it? Or is it just to spinning a few EC2 instances and do it from there? Does anyone have advice on what can b…

---

## [Plotting dynamical systems trajectories](https://discourse.julialang.org/t/plotting-dynamical-systems-trajectories/46166)

<div class="topic-metadata">

**Author:** [@zagorskij](https://discourse.julialang.org/u/zagorskij)\
**Replies:** 4\
**Last updated:** [September 7, 2020, 9:45am UTC](https://discourse.julialang.org/t/plotting-dynamical-systems-trajectories/46166 "2020-09-07T09:45:57Z")

</div>

Hi, I think everybody here saw the trajecotires of a dynamical system plotted as shown on the picture , with those pretty arrows. I have stumbled across some solutions overlapping to the trajectories the vector field, …

---

## [Short circuit evaluation vs if](https://discourse.julialang.org/t/short-circuit-evaluation-vs-if/29453)

<div class="topic-metadata">

**Author:** [@Rajesh\_Talluri](https://discourse.julialang.org/u/Rajesh_Talluri)\
**Replies:** 19\
**Last updated:** [September 7, 2020, 9:35am UTC](https://discourse.julialang.org/t/short-circuit-evaluation-vs-if/29453 "2020-09-07T09:35:22Z")

</div>

I am trying to understand efficient coding practices looking at source code of released packages and comparing to what I would write. I find some developers use short circuiting instead of an if statement. For example i…

---

## [Flux: multiple input of unequal dimensions](https://discourse.julialang.org/t/flux-multiple-input-of-unequal-dimensions/46094)

<div class="topic-metadata">

**Author:** [@johnbb](https://discourse.julialang.org/u/johnbb)\
**Replies:** 4\
**Last updated:** [September 7, 2020, 8:52am UTC](https://discourse.julialang.org/t/flux-multiple-input-of-unequal-dimensions/46094 "2020-09-07T08:52:29Z")

</div>

Assume I have data as follows n = 1000 y = rand(n) x1 = rand(10, n) x2 = rand(20,20,1,n) and would like to a apply one (or more) Conv layers to x2 before it is flattened and concatenated with x1 in a Dense layer. How…

---

## [Find all unique cycles of length n using LightGraph?](https://discourse.julialang.org/t/find-all-unique-cycles-of-length-n-using-lightgraph/4371)

<div class="topic-metadata">

**Author:** [@Ron\_Zaidman](https://discourse.julialang.org/u/Ron_Zaidman)\
**Replies:** 11\
**Last updated:** [September 6, 2020, 1:59pm UTC](https://discourse.julialang.org/t/find-all-unique-cycles-of-length-n-using-lightgraph/4371 "2020-09-06T13:59:13Z")

</div>

Is there a way to find all unique cycles of length n using LightGraph o / \\ o - o | | o - o e.g: using LightGraphs g = Graph() add\_vertices!(g,5) add\_edge!(g,1,2) add\_edge!(g,2,3) add\_edge!(g,3,4) add\_e…

---

## [\[ANN\] JLD2 v0.2.0](https://discourse.julialang.org/t/ann-jld2-v0-2-0/45843)

<div class="topic-metadata">

**Author:** [@JonasIsensee](https://discourse.julialang.org/u/JonasIsensee)\
**Replies:** 9\
**Last updated:** [September 7, 2020, 8:35am UTC](https://discourse.julialang.org/t/ann-jld2-v0-2-0/45843 "2020-09-07T08:35:41Z")

</div>

Hi all! I’ve put in some work to bring JLD2 back up to speed and I am happy to announce JLD2 v0.2.0! This release covers a handful of changes / bugfixes: You can now store Union types that have UnionAll fields e.g. U…

---

## [Compile of master reports inconsistency?](https://discourse.julialang.org/t/compile-of-master-reports-inconsistency/46183)

<div class="topic-metadata">

**Author:** [@Colin\_Beckingham](https://discourse.julialang.org/u/Colin_Beckingham)\
**Replies:** 1\
**Last updated:** [September 7, 2020, 8:27am UTC](https://discourse.julialang.org/t/compile-of-master-reports-inconsistency/46183 "2020-09-07T08:27:04Z")

</div>

When compiling the last master (Commit eb2a801819) on Linux OpenSUSE Leap 15.2 I note the following info: ... JULIA usr/lib/julia/sys-o.a Generating precompile statements... 30/30 Executing precompile statements... 1506…

---

## [The Pkg REPL-mode \[opts\]](https://discourse.julialang.org/t/the-pkg-repl-mode-opts/46180)

<div class="topic-metadata">

**Author:** [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Replies:** 2\
**Last updated:** [September 7, 2020, 7:51am UTC](https://discourse.julialang.org/t/the-pkg-repl-mode-opts/46180 "2020-09-07T07:51:57Z")

</div>

Where the list of command options and their documentation for Package Mode or Package Management could be found cmd \[opts\] \[args\] For example: st -m Plots GR where I could read about the option: -m

---

## [How to remove all w](https://discourse.julialang.org/t/how-to-remove-all-w/46152)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 6\
**Last updated:** [September 7, 2020, 7:26am UTC](https://discourse.julialang.org/t/how-to-remove-all-w/46152 "2020-09-07T07:26:52Z")

</div>

how to remove all two-letter words from an Array String? the numbers remain. data like this: julia\> baza1\[:,5\] 1074955-element Array{String,1}: "test" "mm gastro" "mm gastro" "mm gastro" "pps ps sc" "00-254" "00as…

---

## [Tullio, LoopVectorization: \`pointer\` becomes slow for views because of \`Base.\_memory\_offset\` for \`ndims(...) \>= 5\`](https://discourse.julialang.org/t/tullio-loopvectorization-pointer-becomes-slow-for-views-because-of-base-memory-offset-for-ndims-5/46178)

<div class="topic-metadata">

**Author:** [@ranocha](https://discourse.julialang.org/u/ranocha)\
**Replies:** 1\
**Last updated:** [September 7, 2020, 7:04am UTC](https://discourse.julialang.org/t/tullio-loopvectorization-pointer-becomes-slow-for-views-because-of-base-memory-offset-for-ndims-5/46178 "2020-09-07T07:04:36Z")

</div>

While improving the performance of some code using Tullio.jl and LoopVectorization.jl, I recognized a significant performance impact when using views of Arrays with at least five indices. Since LoopVectorization.jl works…

---

## [Julia equivalent for python scipy.optimize.fsolve](https://discourse.julialang.org/t/julia-equivalent-for-python-scipy-optimize-fsolve/46139)

<div class="topic-metadata">

**Author:** [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Replies:** 29\
**Last updated:** [September 7, 2020, 7:17am UTC](https://discourse.julialang.org/t/julia-equivalent-for-python-scipy-optimize-fsolve/46139 "2020-09-07T07:17:09Z")

</div>

What would be the Julia equivalent for python scipy.optimize.fsolve, to resolve function F (x) f1 = 1- x \[1\] - x \[2\] f2 = 8 - x \[1\] - 3 \* x \[2\] return f1, f2 end x0 = \[1,1\] Solves a linear system of equations s…

---

## [Formatted string interpolation](https://discourse.julialang.org/t/formatted-string-interpolation/21350)

<div class="topic-metadata">

**Author:** [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Replies:** 6\
**Last updated:** [September 7, 2020, 7:11am UTC](https://discourse.julialang.org/t/formatted-string-interpolation/21350 "2020-09-07T07:11:47Z")

</div>

I’m currently looking for a package providing format options when interpolating values in a string, like e.g. in python: f'abc {x:.2f} def'. StringLiterals from JuliaString (GitHub - JuliaString/StringLiterals.jl: Implem…

---

## [Preventing type instability from union nothing](https://discourse.julialang.org/t/preventing-type-instability-from-union-nothing/46168)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 2\
**Last updated:** [September 7, 2020, 4:06am UTC](https://discourse.julialang.org/t/preventing-type-instability-from-union-nothing/46168 "2020-09-07T04:06:15Z")

</div>

I’m trying to understand parametric types and parametric methods with a simple example. I have some discrete data w with some metadata t. All I want to show is how many times different metadata values pop up for variou…

---

## [Can I @rput to RStudio server](https://discourse.julialang.org/t/can-i-rput-to-rstudio-server/45790)

<div class="topic-metadata">

**Author:** [@scotts](https://discourse.julialang.org/u/scotts)\
**Replies:** 2\
**Last updated:** [September 7, 2020, 1:34am UTC](https://discourse.julialang.org/t/can-i-rput-to-rstudio-server/45790 "2020-09-07T01:34:28Z")

</div>

I’ve just installed Julia 1.5.1 and R (v3.6.3) on a Codeanywhere container running Ubuntu 16.04. I was happily surprised to find that RCall works beautfully, however I’m also running an instance of RStudio Server. over …

---

## [Running Documenter after PkgTemplates, what to put for "sitename"](https://discourse.julialang.org/t/running-documenter-after-pkgtemplates-what-to-put-for-sitename/46171)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 1\
**Last updated:** [September 7, 2020, 1:27am UTC](https://discourse.julialang.org/t/running-documenter-after-pkgtemplates-what-to-put-for-sitename/46171 "2020-09-07T01:27:06Z")

</div>

I attempted to use PkgTemplates to create a package, running the following: t = Template(; dir="~/code", plugins=\[ Git(; manifest=true, ssh=true), Codecov(), TravisCI(; x86=true), …

---

## [Error when assigning a struct, via broadcast, to an array of structs](https://discourse.julialang.org/t/error-when-assigning-a-struct-via-broadcast-to-an-array-of-structs/46165)

<div class="topic-metadata">

**Author:** [@purplishrock](https://discourse.julialang.org/u/purplishrock)\
**Replies:** 2\
**Last updated:** [September 7, 2020, 12:54am UTC](https://discourse.julialang.org/t/error-when-assigning-a-struct-via-broadcast-to-an-array-of-structs/46165 "2020-09-07T00:54:09Z")

</div>

I’m assigning a value, a single value, to an array of structs using an array to do the indexing. Let me jump straight to my MWE and the punch line \[1\] x\[ii\] .= a gives an error message, but \[2\] x\[ii\] .= \[a\] does not…

---

## [Escaping expressions within macro calls](https://discourse.julialang.org/t/escaping-expressions-within-macro-calls/46160)

<div class="topic-metadata">

**Author:** [@lucas711642](https://discourse.julialang.org/u/lucas711642)\
**Replies:** 4\
**Last updated:** [September 7, 2020, 12:12am UTC](https://discourse.julialang.org/t/escaping-expressions-within-macro-calls/46160 "2020-09-07T00:12:45Z")

</div>

julia\> macro macro1(expr) esc\_expr = esc(expr) :($expr, $esc\_expr) end; julia\> macro macro2(expr) esc\_expr = esc(expr) :(@foo $expr, $esc\_expr) end; julia\> @mac…

---

## [AssertionError rowub \< posinf JuMP model](https://discourse.julialang.org/t/assertionerror-rowub-posinf-jump-model/45976)

<div class="topic-metadata">

**Author:** [@dharik13](https://discourse.julialang.org/u/dharik13)\
**Replies:** 3\
**Last updated:** [September 6, 2020, 9:59pm UTC](https://discourse.julialang.org/t/assertionerror-rowub-posinf-jump-model/45976 "2020-09-06T21:59:47Z")

</div>

Hello, I am new to using Julia/JuMP (coming from python) and I am encountering the following error when trying to solve an LP model using Gurobi I dont quite follow what the statement “AssertionError: rowub\[i\] \< posi…

---

## [BifurcationKit.jl: deflated continuation](https://discourse.julialang.org/t/bifurcationkit-jl-deflated-continuation/46162)

<div class="topic-metadata">

**Author:** [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Replies:** 0\
**Last updated:** [September 6, 2020, 9:44pm UTC](https://discourse.julialang.org/t/bifurcationkit-jl-deflated-continuation/46162 "2020-09-06T21:44:45Z")

</div>

I am writing this post to report about my package BifurcationKit.jl. The focus of this version is automatic bifurcation diagram (aBD) computation for PDEs. Although this is a bit preliminary, I am excited to share some …

---

## [Add title to Makie plot and maintain previous scene settings](https://discourse.julialang.org/t/add-title-to-makie-plot-and-maintain-previous-scene-settings/43225)

<div class="topic-metadata">

**Author:** [@pauljurczak](https://discourse.julialang.org/u/pauljurczak)\
**Replies:** 5\
**Last updated:** [September 6, 2020, 8:38pm UTC](https://discourse.julialang.org/t/add-title-to-makie-plot-and-maintain-previous-scene-settings/43225 "2020-09-06T20:38:20Z")

</div>

I have: using Makie scene = Scene(resolution = (1200, 1400)) lines!(scene, randn(10)) # display(scene) display(title(scene, "Title")) which changes the resolution compared to using just display(scene). What …

---

## [Multiple lag() in TimeSeries doesn't work in one line](https://discourse.julialang.org/t/multiple-lag-in-timeseries-doesnt-work-in-one-line/46154)

<div class="topic-metadata">

**Author:** [@Jaepil\_Lee](https://discourse.julialang.org/u/Jaepil_Lee)\
**Replies:** 1\
**Last updated:** [September 6, 2020, 6:39pm UTC](https://discourse.julialang.org/t/multiple-lag-in-timeseries-doesnt-work-in-one-line/46154 "2020-09-06T18:39:31Z")

</div>

Hello Julia users! I have been playing with TimeSeries package and found one operation that doesn’t make much sense to me. I know that applying lag() to a Tx1 TimeArray A creates a (T-1)x1 TimeArray and lag(A)./A create…

---

## [Multiple Dispatch with Unions, resolving ambiguities](https://discourse.julialang.org/t/multiple-dispatch-with-unions-resolving-ambiguities/46153)

<div class="topic-metadata">

**Author:** [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Replies:** 1\
**Last updated:** [September 6, 2020, 6:18pm UTC](https://discourse.julialang.org/t/multiple-dispatch-with-unions-resolving-ambiguities/46153 "2020-09-06T18:18:50Z")

</div>

Let’s say we have these methods: struct Type1 end struct Type2 end foo(a::Type1, i) = 1 foo(a::Type2, i) = 2 foo(a::Type1, i::Tuple{}) = 3 foo(b::Type2, i::Tuple{}) = 4 Here, everything dispatches as you would expect.…

---

## [ArchGDAL.getfield() error](https://discourse.julialang.org/t/archgdal-getfield-error/45770)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 2\
**Last updated:** [September 6, 2020, 6:01pm UTC](https://discourse.julialang.org/t/archgdal-getfield-error/45770 "2020-09-06T18:01:02Z")

</div>

Hi, I have the following code which aims to transform the data contained in a layer into a DataFrame, which I picked up online. This works for the most part. Notice the try/catch, which slows the code down a lot, and I …

---

## [Type instability for singleton tuple argument](https://discourse.julialang.org/t/type-instability-for-singleton-tuple-argument/46147)

<div class="topic-metadata">

**Author:** [@jlchan](https://discourse.julialang.org/u/jlchan)\
**Replies:** 5\
**Last updated:** [September 6, 2020, 4:09pm UTC](https://discourse.julialang.org/t/type-instability-for-singleton-tuple-argument/46147 "2020-09-06T16:09:47Z")

</div>

why do I get type instability for the function (x-\>x.^2).((1,))? if my input argument is a singleton tuple, then @code\_warntype (x-\>x.^2).((1,)) gives │ %4 = Base.materialize(%3)::Tuple{Any} └── return %4 If the…

---

## [\[ANN\] QuandlAccess.jl](https://discourse.julialang.org/t/ann-quandlaccess-jl/46150)

<div class="topic-metadata">

**Author:** [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Replies:** 0\
**Last updated:** [September 6, 2020, 4:11pm UTC](https://discourse.julialang.org/t/ann-quandlaccess-jl/46150 "2020-09-06T16:11:19Z")

</div>

Hi there, I’m pleased to announce yet another package for accessing financial data from Quandl.com. You may wonder - there’s already Quandl.jl, so why do we need another one? Well, Quandl.jl does not seems to be main…

---

## [Is there any graph / graph plotting package that allow edges having different color and length based on its identity and weight?](https://discourse.julialang.org/t/is-there-any-graph-graph-plotting-package-that-allow-edges-having-different-color-and-length-based-on-its-identity-and-weight/45982)

<div class="topic-metadata">

**Author:** [@liuyxpp](https://discourse.julialang.org/u/liuyxpp)\
**Replies:** 2\
**Last updated:** [September 6, 2020, 8:55am UTC](https://discourse.julialang.org/t/is-there-any-graph-graph-plotting-package-that-allow-edges-having-different-color-and-length-based-on-its-identity-and-weight/45982 "2020-09-06T08:55:23Z")

</div>

Usecase: Displaying the architecture of block copolymers. Block copolymers consist of many blocks each of which contains identical monomers and are connected by covalent bond at their joints. I think the natural way to d…

---

## [Parallelize (pre) compilation?](https://discourse.julialang.org/t/parallelize-pre-compilation/46087)

<div class="topic-metadata">

**Author:** [@Samuel\_Ainsworth](https://discourse.julialang.org/u/Samuel_Ainsworth)\
**Replies:** 10\
**Last updated:** [September 6, 2020, 3:12pm UTC](https://discourse.julialang.org/t/parallelize-pre-compilation/46087 "2020-09-06T15:12:34Z")

</div>

I spend a lot of time staring at \[ Info: Precompiling X messages. AFAICT this process is completely single-threaded. This seems like a bit of a shame. I spent all this money on a nice beefy machine with a bunch of cores,…

---

## [Regx what wrong?](https://discourse.julialang.org/t/regx-what-wrong/46059)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 18\
**Last updated:** [September 6, 2020, 3:16pm UTC](https://discourse.julialang.org/t/regx-what-wrong/46059 "2020-09-06T15:16:50Z")

</div>

Why last row is wrong ? v=\["sp. z o.o. asdas" "sp. z o.o asdasd" "sp. z oo asdas" "sp. zo.o. asdasd" "sp. zoo. asddfa" "sp. z o.o. afdasf" "sp zoo. afdasf" "sp.zoo. afdasf" "spzoo afdasf"\] julia\> occursin.(r"sp.+z.+o"…

---

## [For loop condition filter](https://discourse.julialang.org/t/for-loop-condition-filter/46044)

<div class="topic-metadata">

**Author:** [@greg\_plowman](https://discourse.julialang.org/u/greg_plowman)\
**Replies:** 4\
**Last updated:** [September 4, 2020, 12:32pm UTC](https://discourse.julialang.org/t/for-loop-condition-filter/46044 "2020-09-04T12:32:28Z")

</div>

Has anybody wanted something like this? for x in 1:10 if x != 5 println(x) end Here’s some less-than-ideal ways: for x in (x for x in 1:10 if x != 5) println(x) end for x in 1:10 x == 5 && continue pr…

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

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