# Latest

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

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

**Page:** 1094

---

## [Markdown inconsistency: PlutoUI, latexifications](https://discourse.julialang.org/t/markdown-inconsistency-plutoui-latexifications/78076)

<div class="topic-metadata">

**Author:** [@gustaphe](https://discourse.julialang.org/u/gustaphe)\
**Replies:** 1\
**Last updated:** [March 18, 2022, 11:05am UTC](https://discourse.julialang.org/t/markdown-inconsistency-plutoui-latexifications/78076 "2022-03-18T11:05:02Z")

</div>

I’ve previously solved the issue of interpolating latexified expressions in Pluto by using Markdown.parse() rather than md"". But rather unsatisfyingly, the opposite compatibilty constraints apply to PlutoUI elements: u…

---

## [When appllying roll rank function, how much faster Julia can be compared to Python?](https://discourse.julialang.org/t/when-appllying-roll-rank-function-how-much-faster-julia-can-be-compared-to-python/78066)

<div class="topic-metadata">

**Author:** [@Brian1](https://discourse.julialang.org/u/Brian1)\
**Replies:** 19\
**Last updated:** [March 18, 2022, 10:55am UTC](https://discourse.julialang.org/t/when-appllying-roll-rank-function-how-much-faster-julia-can-be-compared-to-python/78066 "2022-03-18T10:55:42Z")

</div>

In Python, I tried many ways to apply roll rank function to a list, the speed is too slow. When the list length is about 100000, the fastest way in Python I tried takes more than 100ms. Then in Juila, I tried the simil…

---

## [DifferentialEquations.jl precompilation fails for not finding libopenblas](https://discourse.julialang.org/t/differentialequations-jl-precompilation-fails-for-not-finding-libopenblas/70229)

<div class="topic-metadata">

**Author:** [@dasayan05](https://discourse.julialang.org/u/dasayan05)\
**Replies:** 7\
**Last updated:** [March 18, 2022, 9:09am UTC](https://discourse.julialang.org/t/differentialequations-jl-precompilation-fails-for-not-finding-libopenblas/70229 "2022-03-18T09:09:39Z")

</div>

I am using Julia 1.6.3 on Ubuntu 20.04 built from source with MKL turned on, so BLAS.vendor() says MKL. Now, I was trying to install the DifferentialEquations package simply by \] add DifferentialEquations, which after pr…

---

## [Turing.jl and StaticArrays](https://discourse.julialang.org/t/turing-jl-and-staticarrays/77768)

<div class="topic-metadata">

**Author:** [@Marco\_Lombardi](https://discourse.julialang.org/u/Marco_Lombardi)\
**Replies:** 1\
**Last updated:** [March 18, 2022, 8:59am UTC](https://discourse.julialang.org/t/turing-jl-and-staticarrays/77768 "2022-03-18T08:59:34Z")

</div>

I am having troubles using Turing.jl with a custom distribution using a StaticArray as internal parameter. Consider the simple code below, where the TestDistribution is effectively a simple multivariate normal 3D distrib…

---

## [Improving type inference for \`x\` where \`Meta.isexpr(x, ...)\`](https://discourse.julialang.org/t/improving-type-inference-for-x-where-meta-isexpr-x/77993)

<div class="topic-metadata">

**Author:** [@rikh](https://discourse.julialang.org/u/rikh)\
**Replies:** 4\
**Last updated:** [March 18, 2022, 6:56am UTC](https://discourse.julialang.org/t/improving-type-inference-for-x-where-meta-isexpr-x/77993 "2022-03-18T06:56:12Z")

</div>

Type inference struggles a bit with the following: julia\> a = :(x = y = 1); julia\> a.args\[2\] :(y = 1) julia\> function f(a::Expr) ex = a.args\[2\] if Meta.isexpr(ex, :(=)) return ex …

---

## [How to filter a tuple by the first element](https://discourse.julialang.org/t/how-to-filter-a-tuple-by-the-first-element/78053)

<div class="topic-metadata">

**Author:** [@lsaravia](https://discourse.julialang.org/u/lsaravia)\
**Replies:** 4\
**Last updated:** [March 18, 2022, 6:10am UTC](https://discourse.julialang.org/t/how-to-filter-a-tuple-by-the-first-element/78053 "2022-03-18T06:10:54Z")

</div>

I made a tuple with vectors and I want to filter and plot it by the first vector function gen\_data() a = collect(0:.1:200) b = rand(length(a)) c = \[ rand()\*i\*0.001 for i in 1:length(a)\] return a,b,c end …

---

## [Implementing dedispersion in Julia](https://discourse.julialang.org/t/implementing-dedispersion-in-julia/78008)

<div class="topic-metadata">

**Author:** [@Ujjwal\_Panda](https://discourse.julialang.org/u/Ujjwal_Panda)\
**Replies:** 12\
**Last updated:** [March 18, 2022, 4:24am UTC](https://discourse.julialang.org/t/implementing-dedispersion-in-julia/78008 "2022-03-18T04:24:03Z")

</div>

I am trying to write an implementation of a basic algorithm in pulsar astronomy: dedispersion. What this essentially boils down to is adding the rows of a two-dimensional matrix together, but we shift each row by some va…

---

## [Package Dependency Warning Cause & Fix](https://discourse.julialang.org/t/package-dependency-warning-cause-fix/77732)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 2\
**Last updated:** [March 18, 2022, 3:03am UTC](https://discourse.julialang.org/t/package-dependency-warning-cause-fix/77732 "2022-03-18T03:03:43Z")

</div>

Hello! I am developing a package and am getting a warning that I do not understand. I would appreciate any help on how to diagnose and fix this. I am new to developing packages so if I am not using a best practice or go…

---

## [Apparent inconsistent plotting of histograms in Gadfly](https://discourse.julialang.org/t/apparent-inconsistent-plotting-of-histograms-in-gadfly/77953)

<div class="topic-metadata">

**Author:** [@evan-wehi](https://discourse.julialang.org/u/evan-wehi)\
**Replies:** 3\
**Last updated:** [March 18, 2022, 2:27am UTC](https://discourse.julialang.org/t/apparent-inconsistent-plotting-of-histograms-in-gadfly/77953 "2022-03-18T02:27:39Z")

</div>

Why is the histogram for the WildType normalised data differently when plotted with other data compared to being plotted alone? This plot command plot(df\[df.genotype .== "WildType", :\], x=:level, Geom.histogram(bincoun…

---

## [Inconsistent number of decimal places when printing sum(x, dims=1)](https://discourse.julialang.org/t/inconsistent-number-of-decimal-places-when-printing-sum-x-dims-1/78054)

<div class="topic-metadata">

**Author:** [@adriano.vilela](https://discourse.julialang.org/u/adriano.vilela)\
**Replies:** 5\
**Last updated:** [March 18, 2022, 2:22am UTC](https://discourse.julialang.org/t/inconsistent-number-of-decimal-places-when-printing-sum-x-dims-1/78054 "2022-03-18T02:22:06Z")

</div>

For a while, I just couldn’t understand what was going on here: julia\> x = \[ 7136.52 0.00 7136.52; 6047.88 62.74 6110.62; 2374.32 26.19 2400.51; 2374.32 78.57 2452.89\]; julia\> sum(x, dims=1) 1×3 Matrix{Float64}: 1793…

---

## [MathOptInterface: How to create a 2-dimensional variable?](https://discourse.julialang.org/t/mathoptinterface-how-to-create-a-2-dimensional-variable/78039)

<div class="topic-metadata">

**Author:** [@Timothy\_Yu](https://discourse.julialang.org/u/Timothy_Yu)\
**Replies:** 4\
**Last updated:** [March 18, 2022, 2:07am UTC](https://discourse.julialang.org/t/mathoptinterface-how-to-create-a-2-dimensional-variable/78039 "2022-03-18T02:07:33Z")

</div>

I am new to MOI and am looking for something equivalent to JuMP’s @variable(model, x\[P,M\] \>=0).

---

## [ERROR: LoadError: Failed to precompile](https://discourse.julialang.org/t/error-loaderror-failed-to-precompile/78043)

<div class="topic-metadata">

**Author:** [@Ross\_Boylan](https://discourse.julialang.org/u/Ross_Boylan)\
**Replies:** 4\
**Last updated:** [March 18, 2022, 1:55am UTC](https://discourse.julialang.org/t/error-loaderror-failed-to-precompile/78043 "2022-03-18T01:55:55Z")

</div>

Attempting to instantiate an old environment I get a number of packages that fail with the error in the subject. The trace information that is printed out doesn’t offer any clue I can understand about the actual source …

---

## [Second order 2D differentiation DiffEqOperators.jl](https://discourse.julialang.org/t/second-order-2d-differentiation-diffeqoperators-jl/77239)

<div class="topic-metadata">

**Author:** [@Siempie](https://discourse.julialang.org/u/Siempie)\
**Replies:** 5\
**Last updated:** [March 17, 2022, 11:42pm UTC](https://discourse.julialang.org/t/second-order-2d-differentiation-diffeqoperators-jl/77239 "2022-03-17T23:42:18Z")

</div>

Hello i am trying to calculate the laplacian of a 2D array for the use in diffeq.jl And expand later to 3D hopefully. I am currently implementing it using DiffEqOperators.jl with centereddifference() and neuman0BC() H…

---

## [Read every other line into a variable from a text file](https://discourse.julialang.org/t/read-every-other-line-into-a-variable-from-a-text-file/78052)

<div class="topic-metadata">

**Author:** [@Jdbeck66](https://discourse.julialang.org/u/Jdbeck66)\
**Replies:** 2\
**Last updated:** [March 17, 2022, 9:57pm UTC](https://discourse.julialang.org/t/read-every-other-line-into-a-variable-from-a-text-file/78052 "2022-03-17T21:57:53Z")

</div>

I’d like to read every other (or every third, fourth,…) line from a text file into a variable. function readtext(file) lines = String\[\] for line ∈ eachline(file) push!(lines, line::String) end r…

---

## [ERROR: IOError: when generating exe file](https://discourse.julialang.org/t/error-ioerror-when-generating-exe-file/71287)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 3\
**Last updated:** [November 11, 2021, 10:45am UTC](https://discourse.julialang.org/t/error-ioerror-when-generating-exe-file/71287 "2021-11-11T10:45:39Z")

</div>

@Gnimuc Could you please help in this? I am trying to generate exe file for my codes (which organized as below): inside /scr.folderpackage.jl, I wrote the below module folderpackage Base.@ccallable function julia\_…

---

## [How to store data where columns are added/updated separately?](https://discourse.julialang.org/t/how-to-store-data-where-columns-are-added-updated-separately/78051)

<div class="topic-metadata">

**Author:** [@Satvik](https://discourse.julialang.org/u/Satvik)\
**Replies:** 0\
**Last updated:** [March 17, 2022, 9:38pm UTC](https://discourse.julialang.org/t/how-to-store-data-where-columns-are-added-updated-separately/78051 "2022-03-17T21:38:50Z")

</div>

I have data with columns that can get added or updated at different times. For example, my data might all start at 2021-01-01, have some baseline columns like temperature and humidity that get updated every minute, and s…

---

## [\[ANN\] StringManipulation.jl v0.2.0 and TerminalPager v0.3.0](https://discourse.julialang.org/t/ann-stringmanipulation-jl-v0-2-0-and-terminalpager-v0-3-0/78034)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 4\
**Last updated:** [March 17, 2022, 9:02pm UTC](https://discourse.julialang.org/t/ann-stringmanipulation-jl-v0-2-0-and-terminalpager-v0-3-0/78034 "2022-03-17T21:02:32Z")

</div>

Hi! I just tagged StringManipulation.jl v0.2.0 and TerminalPager.jl v0.3.0 :partying\_face: StringManipulaion.jl I realized that some packages that I built were having a lot of duplicated code related to string processi…

---

## [Accessing the field of \`Pair\` seems to be type-unstable](https://discourse.julialang.org/t/accessing-the-field-of-pair-seems-to-be-type-unstable/78045)

<div class="topic-metadata">

**Author:** [@frankwswang](https://discourse.julialang.org/u/frankwswang)\
**Replies:** 3\
**Last updated:** [March 17, 2022, 6:30pm UTC](https://discourse.julialang.org/t/accessing-the-field-of-pair-seems-to-be-type-unstable/78045 "2022-03-17T18:30:29Z")

</div>

MWE (Julia v1.6 & v1.7): julia\> p1 = Pair(:a, 2) :a =\> 2 julia\> @code\_warntype p1.first Variables #self#::Core.Const(getproperty) x::Pair{Symbol, Int64} f::Symbol Body::Union{Int64, Symbol} 1 ─ %1 = Base.getfiel…

---

## [@inbounds not working?](https://discourse.julialang.org/t/inbounds-not-working/78033)

<div class="topic-metadata">

**Author:** [@photor](https://discourse.julialang.org/u/photor)\
**Replies:** 4\
**Last updated:** [March 17, 2022, 6:07pm UTC](https://discourse.julialang.org/t/inbounds-not-working/78033 "2022-03-17T18:07:38Z")

</div>

Simply tried the following: a=\[0.5\] @inbounds b=a\[2\] yielding surprisingly BoundsError: attempt to access 1-element Vector{Float64} at index \[2\] Stacktrace: \[1\] getindex(A::Vector{Float64}, i1::Int64) @ Base .\\ar…

---

## [JuMP or Convex: stuck with very specific constraint, not sure if possible as originally intended](https://discourse.julialang.org/t/jump-or-convex-stuck-with-very-specific-constraint-not-sure-if-possible-as-originally-intended/77989)

<div class="topic-metadata">

**Author:** [@johnabs](https://discourse.julialang.org/u/johnabs)\
**Replies:** 5\
**Last updated:** [March 17, 2022, 4:38pm UTC](https://discourse.julialang.org/t/jump-or-convex-stuck-with-very-specific-constraint-not-sure-if-possible-as-originally-intended/77989 "2022-03-17T16:38:55Z")

</div>

Hi everyone, Let me start with a “visual” of my issue: imagine a binary matrix with some constraints on how the rows and columns can “interact” with each other. In my case, I need a constraint within each row that guara…

---

## [Save an image to an IOBuffer](https://discourse.julialang.org/t/save-an-image-to-an-iobuffer/78006)

<div class="topic-metadata">

**Author:** [@theta](https://discourse.julialang.org/u/theta)\
**Replies:** 4\
**Last updated:** [March 17, 2022, 4:33pm UTC](https://discourse.julialang.org/t/save-an-image-to-an-iobuffer/78006 "2022-03-17T16:33:05Z")

</div>

I’m trying to find the sizes of a bunch of images post-PNG compression, as a way of measuring complexity. But I don’t want to save the images to disk. It’s unnecessary and I’m processing lots of images. Is there a simple…

---

## [Reshaping dataframe](https://discourse.julialang.org/t/reshaping-dataframe/78020)

<div class="topic-metadata">

**Author:** [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Replies:** 13\
**Last updated:** [March 17, 2022, 2:52pm UTC](https://discourse.julialang.org/t/reshaping-dataframe/78020 "2022-03-17T14:52:34Z")

</div>

I show a way to transform the starting table to have only one “X” per row. I ask for comments on how to do the various steps differently and / or better. For example how to insert an “index” column or how to filter the…

---

## [Using Interact in a Jupyter Notebook through Binder](https://discourse.julialang.org/t/using-interact-in-a-jupyter-notebook-through-binder/78028)

<div class="topic-metadata">

**Author:** [@RayleighLord](https://discourse.julialang.org/u/RayleighLord)\
**Replies:** 3\
**Last updated:** [March 17, 2022, 2:48pm UTC](https://discourse.julialang.org/t/using-interact-in-a-jupyter-notebook-through-binder/78028 "2022-03-17T14:48:39Z")

</div>

Hello, I would like to ask if somebody knows how to make a Jupyter Notebook with slide bars in Julia work using Binder. Locally, in my machine, after installing the necessary dependencies in the project I am able to mak…

---

## [How to use AlgebraOfgraphics's sorter](https://discourse.julialang.org/t/how-to-use-algebraofgraphicss-sorter/78030)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 2\
**Last updated:** [March 17, 2022, 2:35pm UTC](https://discourse.julialang.org/t/how-to-use-algebraofgraphicss-sorter/78030 "2022-03-17T14:35:40Z")

</div>

It is not clear to me from the sorter documentation how to use the Algebra of Graphics’s sorter. My current attempt is: plt \*= mapping(marker=:l) |\> sorter(Vector(1:13) .|\> string) Anyone who knows how to use it?

---

## [PrettyTables linebreak in title](https://discourse.julialang.org/t/prettytables-linebreak-in-title/78017)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 4\
**Last updated:** [March 17, 2022, 2:28pm UTC](https://discourse.julialang.org/t/prettytables-linebreak-in-title/78017 "2022-03-17T14:28:16Z")

</div>

How do I make linebreaks in the header of a pretty\_table? Here is a MEW of my attempt: julia\> using PrettyTables julia\> pretty\_table(linebreaks=true, body\_hlines = \[1, 2, 3\], header = (\[" " …

---

## [Approximating a Numerically Computed Distribution](https://discourse.julialang.org/t/approximating-a-numerically-computed-distribution/77972)

<div class="topic-metadata">

**Author:** [@marcpabst](https://discourse.julialang.org/u/marcpabst)\
**Replies:** 5\
**Last updated:** [March 17, 2022, 2:13pm UTC](https://discourse.julialang.org/t/approximating-a-numerically-computed-distribution/77972 "2022-03-17T14:13:43Z")

</div>

I have a very simple, numerically computed posterior (note that I’m not randomly sampling from the posterior but actually calculate it’s (log-)densities over a given interval) that I know converges to a Normal distributi…

---

## [Restore session in VSCode: ERROR: LoadError: IOError: connect: connection refused (ECONNREFUSED)](https://discourse.julialang.org/t/restore-session-in-vscode-error-loaderror-ioerror-connect-connection-refused-econnrefused/78022)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 3\
**Last updated:** [March 17, 2022, 1:41pm UTC](https://discourse.julialang.org/t/restore-session-in-vscode-error-loaderror-ioerror-connect-connection-refused-econnrefused/78022 "2022-03-17T13:41:39Z")

</div>

In one computer, when I restart VScode, I’m getting this error in the Julia session: julia\> Session contents restored from 3/17/2022 at 9:30:27 AM ERROR: LoadError: IOError: connect: connection refused (ECONNREFUSE…

---

## [ERROR: LoadError: IOError: open("..)](https://discourse.julialang.org/t/error-loaderror-ioerror-open/77884)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 4\
**Last updated:** [March 17, 2022, 1:23pm UTC](https://discourse.julialang.org/t/error-loaderror-ioerror-open/77884 "2022-03-17T13:23:12Z")

</div>

I am trying to generating executable. So, I created Net module inside .Net/src/Net.jl. However, when I run packagecompiler (below), it gives an error. How can I solve the problem? module Net using NativeFileDialog…

---

## [Broadcasting string interpolation](https://discourse.julialang.org/t/broadcasting-string-interpolation/78025)

<div class="topic-metadata">

**Author:** [@nielsls](https://discourse.julialang.org/u/nielsls)\
**Replies:** 2\
**Last updated:** [March 17, 2022, 1:16pm UTC](https://discourse.julialang.org/t/broadcasting-string-interpolation/78025 "2022-03-17T13:16:19Z")

</div>

Currently, this does not work: julia\> is = \[1,2\] 2-element Vector{Int64}: 1 2 julia\> "$.is" # currently a syntax error 2-element Vector{String}: "1" "2" But it should, right? For completeness sake? Allowing $. a…

---

## [LoopVectorization multithreading for multidimensional arrays](https://discourse.julialang.org/t/loopvectorization-multithreading-for-multidimensional-arrays/77064)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 24\
**Last updated:** [March 17, 2022, 1:04pm UTC](https://discourse.julialang.org/t/loopvectorization-multithreading-for-multidimensional-arrays/77064 "2022-03-17T13:04:00Z")

</div>

What is the correct way to use @tturbo to parallelize iteration over multidimensional array? I can think of several variants: Parallelize the iteration over cartesian indices: @tturbo for I in eachindex(a) Paralleliz…

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

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