# Latest

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

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

**Page:** 1120

---

## [Supress scale bar in gadfly](https://discourse.julialang.org/t/supress-scale-bar-in-gadfly/76520)

<div class="topic-metadata">

**Author:** [@evan-wehi](https://discourse.julialang.org/u/evan-wehi)\
**Replies:** 2\
**Last updated:** [February 17, 2022, 12:36am UTC](https://discourse.julialang.org/t/supress-scale-bar-in-gadfly/76520 "2022-02-17T00:36:18Z")

</div>

I’m sure this is obvious, but I’ve been searching for hours for a solution. How do I suppress the “Count” scale bar on the right? using Gadfly # code plot(x=dnas, y=brdus, Geom.histogram2d, Guide.xlabel("DNA"), Guid…

---

## [ANN: InteractiveCodeSearch.jl --- Interactively search Julia code](https://discourse.julialang.org/t/ann-interactivecodesearch-jl-interactively-search-julia-code/17657)

<div class="topic-metadata">

**Author:** [@tkf](https://discourse.julialang.org/u/tkf)\
**Replies:** 21\
**Last updated:** [February 16, 2022, 11:14pm UTC](https://discourse.julialang.org/t/ann-interactivecodesearch-jl-interactively-search-julia-code/17657 "2022-02-16T23:14:56Z")

</div>

Let me introduce my package InteractiveCodeSearch.jl. It helps you searching Julia code. Julia has @edit, @less, etc. which are very handy for reading the implementation of functions. However, you need to specify a “…

---

## [How to force Flux to use FiniteDiff](https://discourse.julialang.org/t/how-to-force-flux-to-use-finitediff/76324)

<div class="topic-metadata">

**Author:** [@BMval](https://discourse.julialang.org/u/BMval)\
**Replies:** 16\
**Last updated:** [February 16, 2022, 10:48pm UTC](https://discourse.julialang.org/t/how-to-force-flux-to-use-finitediff/76324 "2022-02-16T22:48:47Z")

</div>

I have loss() function. FiniteDiff.finite\_difference\_derivative - works great with the this loss() ForwardDiff.derivative - doesn’t work at all. As result Flux.train!(loss,Flux.params(NNODE),data,ADAM(0.001)) doesn’t …

---

## [LibPQ, missing to nothing in query result](https://discourse.julialang.org/t/libpq-missing-to-nothing-in-query-result/76591)

<div class="topic-metadata">

**Author:** [@andrey2185](https://discourse.julialang.org/u/andrey2185)\
**Replies:** 0\
**Last updated:** [February 16, 2022, 9:39pm UTC](https://discourse.julialang.org/t/libpq-missing-to-nothing-in-query-result/76591 "2022-02-16T21:39:55Z")

</div>

Hello LibPQ users! Is there a simple way to replace missing on nothing in the query result?

---

## [Finding points in a Delaunay triangulation](https://discourse.julialang.org/t/finding-points-in-a-delaunay-triangulation/71154)

<div class="topic-metadata">

**Author:** [@jmaffi](https://discourse.julialang.org/u/jmaffi)\
**Replies:** 14\
**Last updated:** [February 16, 2022, 9:26pm UTC](https://discourse.julialang.org/t/finding-points-in-a-delaunay-triangulation/71154 "2022-02-16T21:26:45Z")

</div>

Hello everyone, Is there a specific package/function that computes the id’s of the simplices that contain a given (probably large) set of points in a n-d Delaunay triangulation? Something equivalent to Matlab’s tsearchn …

---

## [\`dmperm\` of \`MATLAB\` from/in Julia?](https://discourse.julialang.org/t/dmperm-of-matlab-from-in-julia/76586)

<div class="topic-metadata">

**Author:** [@pitsianis](https://discourse.julialang.org/u/pitsianis)\
**Replies:** 1\
**Last updated:** [February 16, 2022, 9:19pm UTC](https://discourse.julialang.org/t/dmperm-of-matlab-from-in-julia/76586 "2022-02-16T21:19:00Z")

</div>

Is there a Julia implementation of or access to a library with the Dulmage-Mendelsohn permutation, as the dmperm of MATLAB ? Now that SuiteSparse ships with the Julia stdlib, it should be relatively easier to implement. …

---

## [Neural ODE minibatch error with multi-dimension input condition](https://discourse.julialang.org/t/neural-ode-minibatch-error-with-multi-dimension-input-condition/76121)

<div class="topic-metadata">

**Author:** [@lindblot](https://discourse.julialang.org/u/lindblot)\
**Replies:** 5\
**Last updated:** [February 16, 2022, 9:07pm UTC](https://discourse.julialang.org/t/neural-ode-minibatch-error-with-multi-dimension-input-condition/76121 "2022-02-16T21:07:11Z")

</div>

Hello - I’m trying to add minibatching to a problem discussed in https://discourse.julialang.org/t/neuralode-layer-strategy/71297/4. I’ve successfully refactored the code to predict either a single u0 or matrix of u0s, …

---

## [How to organize loop with long prologue and epilogue that switches depending on task](https://discourse.julialang.org/t/how-to-organize-loop-with-long-prologue-and-epilogue-that-switches-depending-on-task/76566)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 12\
**Last updated:** [February 16, 2022, 8:35pm UTC](https://discourse.julialang.org/t/how-to-organize-loop-with-long-prologue-and-epilogue-that-switches-depending-on-task/76566 "2022-02-16T20:35:16Z")

</div>

imagine the main loop boils down to this: function main(table) # prologue: 30 lines to set up result for r in table # 400 lines to filter and make composite variable # epilogue: 30 lines to fill variable …

---

## [Pluto not respecting project environment](https://discourse.julialang.org/t/pluto-not-respecting-project-environment/65308)

<div class="topic-metadata">

**Author:** [@amit1](https://discourse.julialang.org/u/amit1)\
**Replies:** 12\
**Last updated:** [February 16, 2022, 8:25pm UTC](https://discourse.julialang.org/t/pluto-not-respecting-project-environment/65308 "2022-02-16T20:25:58Z")

</div>

I have been struggling to setup Pluto notebook with proper environment. export JULIA\_PROJECT=\`pwd\` julia --project=. -e "using Pluto; Pluto.run()" # in Pluto using Pkg Pkg.installed() \> Dict {} While Pluto does offer…

---

## [How to use sample with a posterior model?](https://discourse.julialang.org/t/how-to-use-sample-with-a-posterior-model/76588)

<div class="topic-metadata">

**Author:** [@mirror63](https://discourse.julialang.org/u/mirror63)\
**Replies:** 0\
**Last updated:** [February 16, 2022, 8:20pm UTC](https://discourse.julialang.org/t/how-to-use-sample-with-a-posterior-model/76588 "2022-02-16T20:20:37Z")

</div>

say I want to sample using sample(model, sampling technique(HMC, MH), number of samples), I have a posterior p(x) = 7exp(-x/4) + 4exp(-x/6) - 7\*exp(-(x-4)^2/64) I want to sample using sample function and the posterio…

---

## [A tensor language prototype for high-performance computers](https://discourse.julialang.org/t/a-tensor-language-prototype-for-high-performance-computers/76576)

<div class="topic-metadata">

**Author:** [@Beliavsky](https://discourse.julialang.org/u/Beliavsky)\
**Replies:** 1\
**Last updated:** [February 16, 2022, 7:25pm UTC](https://discourse.julialang.org/t/a-tensor-language-prototype-for-high-performance-computers/76576 "2022-02-16T19:25:31Z")

</div>

A tensor language prototype for high-performance computers by Steve Nadis, Massachusetts Institute of Technology FEBRUARY 15, 2022 High-performance computing is needed for an ever-growing number of tasks—such as image…

---

## [Understanding Vector allocation](https://discourse.julialang.org/t/understanding-vector-allocation/76350)

<div class="topic-metadata">

**Author:** [@Dharik\_Arsath](https://discourse.julialang.org/u/Dharik_Arsath)\
**Replies:** 6\
**Last updated:** [February 16, 2022, 6:54pm UTC](https://discourse.julialang.org/t/understanding-vector-allocation/76350 "2022-02-16T18:54:30Z")

</div>

I am trying to scale vector of length N into range of 0 to 1. sometimes the allocation is 1 and sometimes allocation becomes 2. I cannot understand why that is happening. if x is length(1000) 1 allocation happening for …

---

## [How to do arithmetic in the type system?](https://discourse.julialang.org/t/how-to-do-arithmetic-in-the-type-system/76565)

<div class="topic-metadata">

**Author:** [@taotree](https://discourse.julialang.org/u/taotree)\
**Replies:** 11\
**Last updated:** [February 16, 2022, 6:43pm UTC](https://discourse.julialang.org/t/how-to-do-arithmetic-in-the-type-system/76565 "2022-02-16T18:43:47Z")

</div>

I want to declare a struct with: struct MyStruct{L,P} a::SVector{L,Other1} b::SVector{P,Other2} c::SVector{L+P,Float64} end The third field gives error: MethodError: no method matching +(::TypeVar, ::TypeVa…

---

## [BioJulia OpenCollective](https://discourse.julialang.org/t/biojulia-opencollective/75997)

<div class="topic-metadata">

**Author:** [@XVilka](https://discourse.julialang.org/u/XVilka)\
**Replies:** 2\
**Last updated:** [February 16, 2022, 5:52pm UTC](https://discourse.julialang.org/t/biojulia-opencollective/75997 "2022-02-16T17:52:46Z")

</div>

Sorry for the annoyance, but I wonder why BioJulia OpenCollective and blog wasn’t updated for years: https://opencollective.com/biojulia As a small backer of the package I hope those money don’t sit idle and help the de…

---

## [Global sensitivity analysis of Acausal circulation model - Sobol Method](https://discourse.julialang.org/t/global-sensitivity-analysis-of-acausal-circulation-model-sobol-method/76556)

<div class="topic-metadata">

**Author:** [@xztt](https://discourse.julialang.org/u/xztt)\
**Replies:** 3\
**Last updated:** [February 16, 2022, 4:10pm UTC](https://discourse.julialang.org/t/global-sensitivity-analysis-of-acausal-circulation-model-sobol-method/76556 "2022-02-16T16:10:49Z")

</div>

Hi there, I am having trouble with the following code every time it appears my solver is not converging when I remake the ODE problem. Even when I change the value that I have set to infinity for something else I still …

---

## [Plot size from subplots sizes](https://discourse.julialang.org/t/plot-size-from-subplots-sizes/76542)

<div class="topic-metadata">

**Author:** [@maajdl](https://discourse.julialang.org/u/maajdl)\
**Replies:** 4\
**Last updated:** [February 16, 2022, 3:13pm UTC](https://discourse.julialang.org/t/plot-size-from-subplots-sizes/76542 "2022-02-16T15:13:47Z")

</div>

Hello I am creating multiple plots in this generic way: plot(p1,p2,p3, layout=grid(1,3, widths=(4/9,4/9,1/9)), size=(900,350)) My problem is that all of the plots p1,p2,p3 have already been given good sizes. When plo…

---

## [How to create matrix of rgb values from a plot object](https://discourse.julialang.org/t/how-to-create-matrix-of-rgb-values-from-a-plot-object/76500)

<div class="topic-metadata">

**Author:** [@Rik](https://discourse.julialang.org/u/Rik)\
**Replies:** 5\
**Last updated:** [February 16, 2022, 2:39pm UTC](https://discourse.julialang.org/t/how-to-create-matrix-of-rgb-values-from-a-plot-object/76500 "2022-02-16T14:39:49Z")

</div>

I’ve been trying to go from a plot to a matrix of rgb values for a while now and the best solution I could come up with makes use of saving the plot as png and then loading it as an image. This is of course a very dirty …

---

## [Can I pass MPI.jl communicator to the Fortran side?](https://discourse.julialang.org/t/can-i-pass-mpi-jl-communicator-to-the-fortran-side/76547)

<div class="topic-metadata">

**Author:** [@lucifer1004](https://discourse.julialang.org/u/lucifer1004)\
**Replies:** 4\
**Last updated:** [February 16, 2022, 1:36pm UTC](https://discourse.julialang.org/t/can-i-pass-mpi-jl-communicator-to-the-fortran-side/76547 "2022-02-16T13:36:43Z")

</div>

I have a Fortran program that uses File I/O, which I want to modify to a subroutine so that I can directly call it from Julia without writing to / reading from files. The problem is that the program depends heavily on M…

---

## [Adding a build step for CmdStan inside a Julia package](https://discourse.julialang.org/t/adding-a-build-step-for-cmdstan-inside-a-julia-package/51844)

<div class="topic-metadata">

**Author:** [@daniel](https://discourse.julialang.org/u/daniel)\
**Replies:** 22\
**Last updated:** [February 16, 2022, 1:23pm UTC](https://discourse.julialang.org/t/adding-a-build-step-for-cmdstan-inside-a-julia-package/51844 "2022-02-16T13:23:13Z")

</div>

I’m looking for a way to ship a working CmdStan with a Julia project. Building it via BinaryBuilder seems to be off the table (see https://github.com/JuliaPackaging/Yggdrasil/issues/1023), but for my use-case it would b…

---

## [Why doesn't \`^\` promote its arguments?](https://discourse.julialang.org/t/why-doesnt-promote-its-arguments/76444)

<div class="topic-metadata">

**Author:** [@Federico\_Marotta](https://discourse.julialang.org/u/Federico_Marotta)\
**Replies:** 20\
**Last updated:** [February 16, 2022, 1:14pm UTC](https://discourse.julialang.org/t/why-doesnt-promote-its-arguments/76444 "2022-02-16T13:14:51Z")

</div>

In Julia, if I write Int8(127) + 1 I get 128 as an answer (and not an overflow), because the two numbers are promoted to Int before performing the addition. The same promotion occurs for other operations like -, \*, and /,…

---

## [Getting the length of remote channels](https://discourse.julialang.org/t/getting-the-length-of-remote-channels/76554)

<div class="topic-metadata">

**Author:** [@RogerP](https://discourse.julialang.org/u/RogerP)\
**Replies:** 0\
**Last updated:** [February 16, 2022, 12:14pm UTC](https://discourse.julialang.org/t/getting-the-length-of-remote-channels/76554 "2022-02-16T12:14:53Z")

</div>

A somewhat similar question to this was raised here Channel Monitoring Statistics. I want to use remote channels as if they were regular buffers, e.g. Circular Buffers from DataStructures.jl, however those are difficult …

---

## [Issue by plotting on a MacOS](https://discourse.julialang.org/t/issue-by-plotting-on-a-macos/76546)

<div class="topic-metadata">

**Author:** [@ippoliti](https://discourse.julialang.org/u/ippoliti)\
**Replies:** 0\
**Last updated:** [February 16, 2022, 9:25am UTC](https://discourse.julialang.org/t/issue-by-plotting-on-a-macos/76546 "2022-02-16T09:25:49Z")

</div>

Hi, I have just installed Julia 1.7, and Julia.jl + Jupyter on two MacBook (similar hardware and same MacOS) to attend a workshop by using the install.jl script that you can find for example here: https://raw.githubuse…

---

## [Changing github repository of a package](https://discourse.julialang.org/t/changing-github-repository-of-a-package/64389)

<div class="topic-metadata">

**Author:** [@markmbaum](https://discourse.julialang.org/u/markmbaum)\
**Replies:** 2\
**Last updated:** [February 15, 2022, 8:53am UTC](https://discourse.julialang.org/t/changing-github-repository-of-a-package/64389 "2022-02-15T08:53:12Z")

</div>

I’d like to migrate a couple of repositories from a shared github account to my personal account. They have already been registered as Julia packages, however. Is there anything I need to know before changing the reposit…

---

## [An experiment for Python Style (but Unidirectional) Generators for Julia](https://discourse.julialang.org/t/an-experiment-for-python-style-but-unidirectional-generators-for-julia/76451)

<div class="topic-metadata">

**Author:** [@complyue](https://discourse.julialang.org/u/complyue)\
**Replies:** 8\
**Last updated:** [February 16, 2022, 8:47am UTC](https://discourse.julialang.org/t/an-experiment-for-python-style-but-unidirectional-generators-for-julia/76451 "2022-02-16T08:47:47Z")

</div>

I find it’s fairly trivial to implement Python style generator functions for Julia, though only unidirectional stream production. I use yieldto but doc says “Its use is discouraged.”, how idiomatic my approach is? I’m f…

---

## [Argmax() -\> vector of index result](https://discourse.julialang.org/t/argmax-vector-of-index-result/76532)

<div class="topic-metadata">

**Author:** [@BMval](https://discourse.julialang.org/u/BMval)\
**Replies:** 5\
**Last updated:** [February 16, 2022, 8:24am UTC](https://discourse.julialang.org/t/argmax-vector-of-index-result/76532 "2022-02-16T08:24:08Z")

</div>

What is the elegant solution for argmax? I was expecting that argmax just return indexes of maximum value, but it returns … … … (As it works in MATLAB for instance). am=argmax(randn(100,100,dims=2) mi=map(x-\>x\[2\],am) I…

---

## [Developing concurrent, interdependent packages in a local registry](https://discourse.julialang.org/t/developing-concurrent-interdependent-packages-in-a-local-registry/76428)

<div class="topic-metadata">

**Author:** [@doit](https://discourse.julialang.org/u/doit)\
**Replies:** 4\
**Last updated:** [February 16, 2022, 7:31am UTC](https://discourse.julialang.org/t/developing-concurrent-interdependent-packages-in-a-local-registry/76428 "2022-02-16T07:31:43Z")

</div>

Hi everyone, I’m working on a package (A) and realized I can actually extract certain type definitions into a separate package (B) and have the original depend on that. However, I am still in the process of agreeing on…

---

## [Coding pattern for "min with side effects"](https://discourse.julialang.org/t/coding-pattern-for-min-with-side-effects/76207)

<div class="topic-metadata">

**Author:** [@ettersi](https://discourse.julialang.org/u/ettersi)\
**Replies:** 3\
**Last updated:** [February 16, 2022, 7:08am UTC](https://discourse.julialang.org/t/coding-pattern-for-min-with-side-effects/76207 "2022-02-16T07:08:44Z")

</div>

Many algorithms require computing min(a,b) and then executing some side effects depending on whether a \< b. I’m struggling to come up with a good coding pattern for this type of logic. The problem is best described by m…

---

## [Dates package: "m" delimiter via \\m produces escape sequence error](https://discourse.julialang.org/t/dates-package-m-delimiter-via-m-produces-escape-sequence-error/76525)

<div class="topic-metadata">

**Author:** [@teamtelefunken](https://discourse.julialang.org/u/teamtelefunken)\
**Replies:** 1\
**Last updated:** [February 16, 2022, 2:01am UTC](https://discourse.julialang.org/t/dates-package-m-delimiter-via-m-produces-escape-sequence-error/76525 "2022-02-16T02:01:38Z")

</div>

I’m trying to import a CSV file that has a date column with a string entry say “2001m1” for January 2001, so that the delimiter is the letter “m”. Using the Dates package (and DataFrames), I’m trying to translate this co…

---

## ["sum(\[1.0, 1e100, 1.0, -1e100\])" fails](https://discourse.julialang.org/t/sum-1-0-1e100-1-0-1e100-fails/76502)

<div class="topic-metadata">

**Author:** [@runjaj](https://discourse.julialang.org/u/runjaj)\
**Replies:** 13\
**Last updated:** [February 16, 2022, 12:03am UTC](https://discourse.julialang.org/t/sum-1-0-1e100-1-0-1e100-fails/76502 "2022-02-16T00:03:49Z")

</div>

I’ve seen a tweet from David Amos explaining this case where sum in Python fails miserably. The example is taken from BINARY FLOATING POINT SUMMATION ACCURATE TO FULL PRECISION (PYTHON RECIPE). Julia fails too: julia\> …

---

## [\[FixedEffectModels.jl\] Getting strange MethodError on fresh install](https://discourse.julialang.org/t/fixedeffectmodels-jl-getting-strange-methoderror-on-fresh-install/76505)

<div class="topic-metadata">

**Author:** [@sagarsxn](https://discourse.julialang.org/u/sagarsxn)\
**Replies:** 2\
**Last updated:** [February 15, 2022, 11:43pm UTC](https://discourse.julialang.org/t/fixedeffectmodels-jl-getting-strange-methoderror-on-fresh-install/76505 "2022-02-15T23:43:44Z")

</div>

Hi, I am new to Julia and trying to work with FixedEffectModels.jl but I am unable to get it to work without throwing the following error: MethodError: no method matching stderror(::FixedEffectModel) I have tried unins…

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

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