# Latest

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

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

**Page:** 1352

---

## [Small consulting project related feature detection in the video](https://discourse.julialang.org/t/small-consulting-project-related-feature-detection-in-the-video/63397)

<div class="topic-metadata">

**Author:** [@Kang\_Pyo\_So](https://discourse.julialang.org/u/Kang_Pyo_So)\
**Replies:** 5\
**Last updated:** [June 23, 2021, 3:39pm UTC](https://discourse.julialang.org/t/small-consulting-project-related-feature-detection-in-the-video/63397 "2021-06-23T15:39:49Z")

</div>

Hi, I’m KP working at the industrial company. we have video data that need to have feature detection and quantification. I’m looking for a consultant or engineer to build the code for the training. the range of the bu…

---

## [How to convert a DataFrameRow to an Array?](https://discourse.julialang.org/t/how-to-convert-a-dataframerow-to-an-array/63402)

<div class="topic-metadata">

**Author:** [@Michael\_Barmann](https://discourse.julialang.org/u/Michael_Barmann)\
**Replies:** 4\
**Last updated:** [June 23, 2021, 3:38pm UTC](https://discourse.julialang.org/t/how-to-convert-a-dataframerow-to-an-array/63402 "2021-06-23T15:38:54Z")

</div>

How can I convert a DataFrameRow to an Array? In Julia 1.5.3, I had successfully used the following approach: df = DataFrame(Array{Float64}(undef,2,2),:auto) row1 = convert(Vector,df\[1,:\]) But in 1.6.1, this no longer …

---

## [Error in LinearFractional while defining integer variable](https://discourse.julialang.org/t/error-in-linearfractional-while-defining-integer-variable/63449)

<div class="topic-metadata">

**Author:** [@manoj.centura](https://discourse.julialang.org/u/manoj.centura)\
**Replies:** 0\
**Last updated:** [June 23, 2021, 3:23pm UTC](https://discourse.julialang.org/t/error-in-linearfractional-while-defining-integer-variable/63449 "2021-06-23T15:23:39Z")

</div>

How to define Integer variable in LinearFractional. for thebelwo code getting the error MathOptInterface.UnsupportedConstraint{MathOptInterface.SingleVariable,MathOptInterface.Integer}: MathOptInterface.SingleVariable-…

---

## [How to add variable type in variable declaration in JuMP](https://discourse.julialang.org/t/how-to-add-variable-type-in-variable-declaration-in-jump/63444)

<div class="topic-metadata">

**Author:** [@manoj.centura](https://discourse.julialang.org/u/manoj.centura)\
**Replies:** 1\
**Last updated:** [June 23, 2021, 3:23pm UTC](https://discourse.julialang.org/t/how-to-add-variable-type-in-variable-declaration-in-jump/63444 "2021-06-23T15:23:23Z")

</div>

Hi All, I want to add this variable as integer. Please suggest how to modify this. X\_tbp = @variable(mod, \[t in 1:T,b in 1:B, p in 1:P\], base\_name=“X\_tbp”, lower\_bound=0.0) Thanks

---

## [GTK Problems](https://discourse.julialang.org/t/gtk-problems/63366)

<div class="topic-metadata">

**Author:** [@The\_Theory](https://discourse.julialang.org/u/The_Theory)\
**Replies:** 14\
**Last updated:** [June 23, 2021, 3:21pm UTC](https://discourse.julialang.org/t/gtk-problems/63366 "2021-06-23T15:21:48Z")

</div>

Hi! So for classes I have to build a graphic application, and after doing a bit of research I found that Gtk sounded pretty easy to use so I decided to give it a shot. All good so far. However, I found that the document…

---

## [YAML file loading gives an error. Is it possible to ignore a field](https://discourse.julialang.org/t/yaml-file-loading-gives-an-error-is-it-possible-to-ignore-a-field/63447)

<div class="topic-metadata">

**Author:** [@curious](https://discourse.julialang.org/u/curious)\
**Replies:** 0\
**Last updated:** [June 23, 2021, 3:01pm UTC](https://discourse.julialang.org/t/yaml-file-loading-gives-an-error-is-it-possible-to-ignore-a-field/63447 "2021-06-23T15:01:40Z")

</div>

Hi, I am trying to use YAML.jl to load an YAML file. It gives me a big error (included below). It appears (may be I am wrong about this) that it cannot understand one of fields that has value like !!set {}. Is it possib…

---

## [Uncertainty propagation](https://discourse.julialang.org/t/uncertainty-propagation/63024)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 3\
**Last updated:** [June 23, 2021, 2:54pm UTC](https://discourse.julialang.org/t/uncertainty-propagation/63024 "2021-06-23T14:54:58Z")

</div>

Hey, Consider a random dataset: using Distributions using Random using Statistics using StatsBase X = rand(LogNormal(0,1),10000) Consider a first function that ‘summarises’ the dataset into a simple vector of k statis…

---

## [Construct a 2-d column array](https://discourse.julialang.org/t/construct-a-2-d-column-array/30617)

<div class="topic-metadata">

**Author:** [@4aHxKzD](https://discourse.julialang.org/u/4aHxKzD)\
**Replies:** 6\
**Last updated:** [June 23, 2021, 2:51pm UTC](https://discourse.julialang.org/t/construct-a-2-d-column-array/30617 "2021-06-23T14:51:45Z")

</div>

Is there a quick way to create an 3x1 Array{ T , 2} where T is a type ? \[A, B, C, ...\] or \[A; B; C; ...\] construct a 1-d array (vector). \[A B C ...\] constructs a 2-d row array. What about a 2-d column array? Does a…

---

## [Overloading getproperty(::PyObject) - Plotting Measurements.jl errorbars with PyPlot.jl](https://discourse.julialang.org/t/overloading-getproperty-pyobject-plotting-measurements-jl-errorbars-with-pyplot-jl/63382)

<div class="topic-metadata">

**Author:** [@jlbosse](https://discourse.julialang.org/u/jlbosse)\
**Replies:** 6\
**Last updated:** [June 23, 2021, 2:37pm UTC](https://discourse.julialang.org/t/overloading-getproperty-pyobject-plotting-measurements-jl-errorbars-with-pyplot-jl/63382 "2021-06-23T14:37:10Z")

</div>

I want to automatically plot arrays of Measurement’s as scatterplots with errorbars using PyPlot.jl. For the interactive PyPlot interface adding the following method to scatter() works nicely: using PyPlot import PyPlot…

---

## [Julia v1.7.0, \\ and newline](https://discourse.julialang.org/t/julia-v1-7-0-and-newline/63441)

<div class="topic-metadata">

**Author:** [@Paul\_Soderlind](https://discourse.julialang.org/u/Paul_Soderlind)\
**Replies:** 2\
**Last updated:** [June 23, 2021, 2:26pm UTC](https://discourse.julialang.org/t/julia-v1-7-0-and-newline/63441 "2021-06-23T14:26:10Z")

</div>

Julia 1.7.0-beta2 allows \\ to remove the newline as in txt = "This is a long \\ line" println(txt) to print as This is a long line Nice, but this does not work with the Windows standard \\r\\n. I guess this could easil…

---

## [Callback of DiffEq detecting "whether a certain condition has been satisfied for a given duration"](https://discourse.julialang.org/t/callback-of-diffeq-detecting-whether-a-certain-condition-has-been-satisfied-for-a-given-duration/63433)

<div class="topic-metadata">

**Author:** [@iHany](https://discourse.julialang.org/u/iHany)\
**Replies:** 2\
**Last updated:** [June 23, 2021, 2:22pm UTC](https://discourse.julialang.org/t/callback-of-diffeq-detecting-whether-a-certain-condition-has-been-satisfied-for-a-given-duration/63433 "2021-06-23T14:22:33Z")

</div>

Hi, is it possible in DifferentialEquations.jl to detect whether a certain condition has been satisfied for a given time duration?

---

## [Multiple environments in Documenter](https://discourse.julialang.org/t/multiple-environments-in-documenter/63436)

<div class="topic-metadata">

**Author:** [@theogf](https://discourse.julialang.org/u/theogf)\
**Replies:** 6\
**Last updated:** [June 23, 2021, 1:52pm UTC](https://discourse.julialang.org/t/multiple-environments-in-documenter/63436 "2021-06-23T13:52:07Z")

</div>

Hi! For KernelFunctions.jl, we are generating examples via Literate.jl, pass them to Documenter.jl and we would like that each example has its own environment/Project.toml. The problem of course is that when running ma…

---

## [Gradient and directional second derivative with ForwardDiff](https://discourse.julialang.org/t/gradient-and-directional-second-derivative-with-forwarddiff/63429)

<div class="topic-metadata">

**Author:** [@mschauer](https://discourse.julialang.org/u/mschauer)\
**Replies:** 3\
**Last updated:** [June 23, 2021, 1:04pm UTC](https://discourse.julialang.org/t/gradient-and-directional-second-derivative-with-forwarddiff/63429 "2021-06-23T13:04:39Z")

</div>

So I have a function f (minus the log-likelihood ℓ retrieved from Turing in my case) and I need two things: 1.) gradient (∇f)(x) in some point x 2.) and how it changes in a direction θ: ∂ₜ(t -\> ∇f(x + t\*θ)) in t = 0 …

---

## [KeyError on additional processes while using Distributed](https://discourse.julialang.org/t/keyerror-on-additional-processes-while-using-distributed/63437)

<div class="topic-metadata">

**Author:** [@vedang](https://discourse.julialang.org/u/vedang)\
**Replies:** 0\
**Last updated:** [June 23, 2021, 12:29pm UTC](https://discourse.julialang.org/t/keyerror-on-additional-processes-while-using-distributed/63437 "2021-06-23T12:29:25Z")

</div>

I am new to using Julia. I am trying to solve an EnsembleProblem using EnsembleDistributed() option in DifferentialEquations.jl. I have created multiple processes using: using Distributed addprocs(1,exeflags="--project…

---

## [Solving A X = B equation with ITensor](https://discourse.julialang.org/t/solving-a-x-b-equation-with-itensor/60332)

<div class="topic-metadata">

**Author:** [@fastwave](https://discourse.julialang.org/u/fastwave)\
**Replies:** 1\
**Last updated:** [June 23, 2021, 12:30pm UTC](https://discourse.julialang.org/t/solving-a-x-b-equation-with-itensor/60332 "2021-06-23T12:30:44Z")

</div>

I am wondering of one can use ITensors to solve linear equations in the form of A X = B where all of the components are tensor networks or high order tensors in some compressed format? Or if not does anybody know a pac…

---

## [Phase Matched Filter? Anyone?](https://discourse.julialang.org/t/phase-matched-filter-anyone/63431)

<div class="topic-metadata">

**Author:** [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)\
**Replies:** 2\
**Last updated:** [June 23, 2021, 11:47am UTC](https://discourse.julialang.org/t/phase-matched-filter-anyone/63431 "2021-06-23T11:47:52Z")

</div>

Hi everyone. I am not very good at signals processing. I need to apply something to my signal that is called a phase matched filter. It is suppose to increase Signal to Noise ratio. Here is an example of what I need: h…

---

## [Constructor Confusion](https://discourse.julialang.org/t/constructor-confusion/63432)

<div class="topic-metadata">

**Author:** [@blackeneth](https://discourse.julialang.org/u/blackeneth)\
**Replies:** 1\
**Last updated:** [June 23, 2021, 11:22am UTC](https://discourse.julialang.org/t/constructor-confusion/63432 "2021-06-23T11:22:04Z")

</div>

I’m trying to write code for a new statistical distribution, the Johnson distribution family, for the Distributions.jl package. I need to create a structure for the Johnson distribution and constructors for it. I’ve gen…

---

## [test/Project.toml versioning issues](https://discourse.julialang.org/t/test-project-toml-versioning-issues/63415)

<div class="topic-metadata">

**Author:** [@jlchan](https://discourse.julialang.org/u/jlchan)\
**Replies:** 2\
**Last updated:** [June 23, 2021, 11:18am UTC](https://discourse.julialang.org/t/test-project-toml-versioning-issues/63415 "2021-06-23T11:18:18Z")

</div>

I’ve added a test/Project.toml which includes PackageName#master. However, Github CI seems to be ignoring the #master branch and just loading the last tagged version of the package. Is this a known issue, and if so is t…

---

## [Error by adding registry](https://discourse.julialang.org/t/error-by-adding-registry/63428)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 1\
**Last updated:** [June 23, 2021, 10:03am UTC](https://discourse.julialang.org/t/error-by-adding-registry/63428 "2021-06-23T10:03:10Z")

</div>

Hi all, I don’t understand that error and don’t know how to prevent it. I want to add a local registry with LocalRegistry.jl. Does anyone know what it means? julia\> path = LocalRegistry.create\_registry( "Tri…

---

## [CASE WHEN style operation on DataFrames](https://discourse.julialang.org/t/case-when-style-operation-on-dataframes/63414)

<div class="topic-metadata">

**Author:** [@Ismam](https://discourse.julialang.org/u/Ismam)\
**Replies:** 7\
**Last updated:** [June 23, 2021, 9:28am UTC](https://discourse.julialang.org/t/case-when-style-operation-on-dataframes/63414 "2021-06-23T09:28:21Z")

</div>

In SQL & R(dplyr) there’s a “case when” style function. I’m trying to do the equivalent in Julia. For example suppose I have: df = DataFrame(A = 1:4, B = \[“M”, “F”, “F”, “M”\]) 4 rows × 2 columns A B Int64 S…

---

## [Trying to understand the return type of an array comprehension if the function being called returns a Union](https://discourse.julialang.org/t/trying-to-understand-the-return-type-of-an-array-comprehension-if-the-function-being-called-returns-a-union/63424)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 1\
**Last updated:** [June 23, 2021, 9:02am UTC](https://discourse.julialang.org/t/trying-to-understand-the-return-type-of-an-array-comprehension-if-the-function-being-called-returns-a-union/63424 "2021-06-23T09:02:43Z")

</div>

On nightly: julia\> f(x) = x \> 3 ? x : nothing f (generic function with 1 method) julia\> g(imax) = \[f(i) for i in 1:imax\] g (generic function with 1 method) julia\> @code\_warntype g(5) MethodInstance for g(::Int64) fr…

---

## [Macro for unpack and copy](https://discourse.julialang.org/t/macro-for-unpack-and-copy/63416)

<div class="topic-metadata">

**Author:** [@iHany](https://discourse.julialang.org/u/iHany)\
**Replies:** 3\
**Last updated:** [June 23, 2021, 7:16am UTC](https://discourse.julialang.org/t/macro-for-unpack-and-copy/63416 "2021-06-23T07:16:51Z")

</div>

Hi, I’m frequently use UnPack.jl to unpack data. For example, struct MyStr a b end mystr = MyStr(1, 2) @unpack a, b = mystr # a, b = mystr.a, mystr.b However, I sometimes need copy the unpacked values. For e…

---

## [Git package installation fails with permission error on nfs filesystem](https://discourse.julialang.org/t/git-package-installation-fails-with-permission-error-on-nfs-filesystem/63419)

<div class="topic-metadata">

**Author:** [@mfh](https://discourse.julialang.org/u/mfh)\
**Replies:** 0\
**Last updated:** [June 23, 2021, 7:12am UTC](https://discourse.julialang.org/t/git-package-installation-fails-with-permission-error-on-nfs-filesystem/63419 "2021-06-23T07:12:18Z")

</div>

On our compute cluster I have encountered the issue that a simple git-based package installation like Pkg.add(name="DFTK", rev="master") fails with the following stacktrace: ERROR: failed to clone from https://github.co…

---

## [Function compiles every time](https://discourse.julialang.org/t/function-compiles-every-time/63273)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 7\
**Last updated:** [June 23, 2021, 6:58am UTC](https://discourse.julialang.org/t/function-compiles-every-time/63273 "2021-06-23T06:58:11Z")

</div>

I re-wrote my astrodynamics functions with ModelingToolkit. Now, when I call DifferentialEquations.solve(...) in my wrapper function, it compiles every time. Is there any way to check what is compiling? using StaticArra…

---

## [Best practices for Speech-to-Text conversion?](https://discourse.julialang.org/t/best-practices-for-speech-to-text-conversion/37543)

<div class="topic-metadata">

**Author:** [@themadprogramer](https://discourse.julialang.org/u/themadprogramer)\
**Replies:** 5\
**Last updated:** [June 23, 2021, 6:29am UTC](https://discourse.julialang.org/t/best-practices-for-speech-to-text-conversion/37543 "2021-06-23T06:29:26Z")

</div>

I’m working on a project where I plan to convert speech into text to perform very basic NLP tasks. At first, I hoped to find a package in Julia for Speech-to-Text conversion myself, but that didn’t turn up anything. Ne…

---

## [How to parallelize OEIS A319284?](https://discourse.julialang.org/t/how-to-parallelize-oeis-a319284/63220)

<div class="topic-metadata">

**Author:** [@leiteiro](https://discourse.julialang.org/u/leiteiro)\
**Replies:** 1\
**Last updated:** [June 22, 2021, 11:42pm UTC](https://discourse.julialang.org/t/how-to-parallelize-oeis-a319284/63220 "2021-06-22T23:42:48Z")

</div>

Don Knuth, in chapter 7.2.2. ‘Backtrack programming’ of his TAOCP, discusses the backtracking tree for the n queens problem. OEIS A319284 records the profiles of these backtracking trees for n in 0:19 and references a J…

---

## [Bonmin + HSL?](https://discourse.julialang.org/t/bonmin-hsl/63338)

<div class="topic-metadata">

**Author:** [@SingingKim](https://discourse.julialang.org/u/SingingKim)\
**Replies:** 8\
**Last updated:** [June 22, 2021, 11:20pm UTC](https://discourse.julialang.org/t/bonmin-hsl/63338 "2021-06-22T23:20:21Z")

</div>

Hi everyone, I’m trying to use the Bonmin solver with IPOPT+HSL. Can you take a look at the following example and let me know if there is anything that should be fixed? It works fine if I delete the linear\_solver option …

---

## [(not to be taken seriously) ideas about modules and packages](https://discourse.julialang.org/t/not-to-be-taken-seriously-ideas-about-modules-and-packages/62672)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 9\
**Last updated:** [June 22, 2021, 11:17pm UTC](https://discourse.julialang.org/t/not-to-be-taken-seriously-ideas-about-modules-and-packages/62672 "2021-06-22T23:17:06Z")

</div>

These ideas are in the direction of dealing with some of the issues encountered when developing large modular packages. Currently (I agree) that the flexibility of the module system of Julia has some trade-offs relative …

---

## [Long parameter for type seems very slow](https://discourse.julialang.org/t/long-parameter-for-type-seems-very-slow/63290)

<div class="topic-metadata">

**Author:** [@nabla](https://discourse.julialang.org/u/nabla)\
**Replies:** 18\
**Last updated:** [June 22, 2021, 9:57pm UTC](https://discourse.julialang.org/t/long-parameter-for-type-seems-very-slow/63290 "2021-06-22T21:57:02Z")

</div>

I construct millions of objects with some particular associated data (essentially, a transition table). I’d like to avoid storing this data in each object (even if it’s an extra pointer), since I can assume it’s constant…

---

## [How to merge multiple Pluto notebooks into one?](https://discourse.julialang.org/t/how-to-merge-multiple-pluto-notebooks-into-one/62806)

<div class="topic-metadata">

**Author:** [@SymKo](https://discourse.julialang.org/u/SymKo)\
**Replies:** 4\
**Last updated:** [June 22, 2021, 11:00pm UTC](https://discourse.julialang.org/t/how-to-merge-multiple-pluto-notebooks-into-one/62806 "2021-06-22T23:00:53Z")

</div>

Hello Everyone, it is possible to merge multiple Pluto notebooks into one and edit it? How can I do that? Thanks for answers

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

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