# Latest

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

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

**Page:** 1290

---

## [VSCode Julia doc (hoover & doc view) - reference previous julia version (bug ?)](https://discourse.julialang.org/t/vscode-julia-doc-hoover-doc-view-reference-previous-julia-version-bug/66919)

<div class="topic-metadata">

**Author:** [@ylvain](https://discourse.julialang.org/u/ylvain)\
**Replies:** 1\
**Last updated:** [August 24, 2021, 3:34pm UTC](https://discourse.julialang.org/t/vscode-julia-doc-hoover-doc-view-reference-previous-julia-version-bug/66919 "2021-08-24T15:34:58Z")

</div>

Hi, I’ve just noticed something strange with the Julia ext. for VSCode, Windows 10, julia 1.6.1. When the extension display Julia documentation (either in hoover or in doc view panel), all references to source code of t…

---

## [neuralODE not using multiple CPUs](https://discourse.julialang.org/t/neuralode-not-using-multiple-cpus/66873)

<div class="topic-metadata">

**Author:** [@DiracFermion1](https://discourse.julialang.org/u/DiracFermion1)\
**Replies:** 3\
**Last updated:** [August 24, 2021, 2:22pm UTC](https://discourse.julialang.org/t/neuralode-not-using-multiple-cpus/66873 "2021-08-24T14:22:40Z")

</div>

Hi, I am trying to run neuralODE with multiple CPUs, but I found that when I set export JULIA\_NUM\_THREADS=10, and Threads.nthreads() outputs 10, the neuralODE model is still using only 1 CPU. I am wondering if anyone ha…

---

## [Makie Ticks - hide tick but keep label](https://discourse.julialang.org/t/makie-ticks-hide-tick-but-keep-label/66875)

<div class="topic-metadata">

**Author:** [@Jdbeck66](https://discourse.julialang.org/u/Jdbeck66)\
**Replies:** 3\
**Last updated:** [August 24, 2021, 1:59pm UTC](https://discourse.julialang.org/t/makie-ticks-hide-tick-but-keep-label/66875 "2021-08-24T13:59:06Z")

</div>

Is there anyway to hide the small tick mark but keep the tick label - I’m having a terrible time navigating the current documentation. Love Makie so far - just can’t find things in the documentation. I have this: An…

---

## [JuMP error constraint forming KeyError:](https://discourse.julialang.org/t/jump-error-constraint-forming-keyerror/66905)

<div class="topic-metadata">

**Author:** [@manoj.centura](https://discourse.julialang.org/u/manoj.centura)\
**Replies:** 2\
**Last updated:** [August 24, 2021, 1:18pm UTC](https://discourse.julialang.org/t/jump-error-constraint-forming-keyerror/66905 "2021-08-24T13:18:26Z")

</div>

Hi, I wanted to implement the attached constraint with below code but getting error const Gurobix = optimizer\_with\_attributes(Gurobi.Optimizer,"MIPGap"=\>0.0005) #"TimeLimit"=\>1000 mod2 = Model(Gurobix) Lf\_p= \[18 17 3…

---

## [Plot a column of 1D arrays from DataFrame using Gadfly](https://discourse.julialang.org/t/plot-a-column-of-1d-arrays-from-dataframe-using-gadfly/66688)

<div class="topic-metadata">

**Author:** [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Replies:** 8\
**Last updated:** [August 24, 2021, 1:17pm UTC](https://discourse.julialang.org/t/plot-a-column-of-1d-arrays-from-dataframe-using-gadfly/66688 "2021-08-24T13:17:54Z")

</div>

I have a DataFrame with columns df.x and df.y. Each row has a 1D array. Can I use Gadfly.jl to plot this data simply? Seems I need to extract each row one-at-a-time first, as in x = df.x\[1\] y = df.y\[1\] plot(x=x, y=y, G…

---

## [Manage output report from optimization](https://discourse.julialang.org/t/manage-output-report-from-optimization/66881)

<div class="topic-metadata">

**Author:** [@Daniel\_Villamar](https://discourse.julialang.org/u/Daniel_Villamar)\
**Replies:** 2\
**Last updated:** [August 24, 2021, 1:13pm UTC](https://discourse.julialang.org/t/manage-output-report-from-optimization/66881 "2021-08-24T13:13:16Z")

</div>

I am using Jump to solve an optimisation. The solving process stops because it does not find a feasible solution. I am in the early stages of debugging my program. I use the println(model) function to display the variab…

---

## [Multiple Parent Types: How to go about it?](https://discourse.julialang.org/t/multiple-parent-types-how-to-go-about-it/66493)

<div class="topic-metadata">

**Author:** [@viraltux](https://discourse.julialang.org/u/viraltux)\
**Replies:** 22\
**Last updated:** [August 24, 2021, 9:29am UTC](https://discourse.julialang.org/t/multiple-parent-types-how-to-go-about-it/66493 "2021-08-24T09:29:55Z")

</div>

There are many cases where we would like to assign multiple parents to a given type, e.g: abstract type Person end abstract type Soldier \<: Person end abstract type Civilian \<: Person end abstract type Man \<: Person e…

---

## [Deep dive detangling terms: multiple inheritance vs. traits](https://discourse.julialang.org/t/deep-dive-detangling-terms-multiple-inheritance-vs-traits/67110)

<div class="topic-metadata">

**Author:** [@bgroenks](https://discourse.julialang.org/u/bgroenks)\
**Replies:** 10\
**Last updated:** [August 24, 2021, 1:11pm UTC](https://discourse.julialang.org/t/deep-dive-detangling-terms-multiple-inheritance-vs-traits/67110 "2021-08-24T13:11:48Z")

</div>

I did not read issue 5, I am just expressing my view on this subject. I don’t agree with this use of the phrase “multiple inheritance”. In PL theory, traits and inheritance are separate concepts, though they can be use…

---

## [Pluto: how to change column names of a data frame?](https://discourse.julialang.org/t/pluto-how-to-change-column-names-of-a-data-frame/66903)

<div class="topic-metadata">

**Author:** [@VivMendes](https://discourse.julialang.org/u/VivMendes)\
**Replies:** 2\
**Last updated:** [August 24, 2021, 11:50am UTC](https://discourse.julialang.org/t/pluto-how-to-change-column-names-of-a-data-frame/66903 "2021-08-24T11:50:49Z")

</div>

Hi all, I have a simple data frame that is working Ok inside Pluto. I have to change the names of the column headers because they are too long. The usual procedure is to use the function rename! but this does not work …

---

## [Fast large binary heap for SNIC super-pixel](https://discourse.julialang.org/t/fast-large-binary-heap-for-snic-super-pixel/66878)

<div class="topic-metadata">

**Author:** [@Geoffrey](https://discourse.julialang.org/u/Geoffrey)\
**Replies:** 2\
**Last updated:** [August 24, 2021, 11:45am UTC](https://discourse.julialang.org/t/fast-large-binary-heap-for-snic-super-pixel/66878 "2021-08-24T11:45:11Z")

</div>

Hello there, I’m looking for help in order to optimize an implementation of the SNIC algorithm (Achanta et al 2017) for pre-segmenting image in super-pixels/voxels. The algorithm use a binary heap to get quick access to…

---

## [Can I define string as "%Fmt" in Printf?](https://discourse.julialang.org/t/can-i-define-string-as-fmt-in-printf/66766)

<div class="topic-metadata">

**Author:** [@CRquantum](https://discourse.julialang.org/u/CRquantum)\
**Replies:** 9\
**Last updated:** [August 24, 2021, 10:37am UTC](https://discourse.julialang.org/t/can-i-define-string-as-fmt-in-printf/66766 "2021-08-24T10:37:18Z")

</div>

Sorry for another stupid question. It is a little similar with How to repeat the format in @printf? - #12 by CRquantum However i want to be more creative by design my own fmts in Printf. The idea is simply, I looked a…

---

## [Reinterpret nested array as concatenated arrays](https://discourse.julialang.org/t/reinterpret-nested-array-as-concatenated-arrays/66901)

<div class="topic-metadata">

**Author:** [@jinml](https://discourse.julialang.org/u/jinml)\
**Replies:** 3\
**Last updated:** [August 24, 2021, 10:37am UTC](https://discourse.julialang.org/t/reinterpret-nested-array-as-concatenated-arrays/66901 "2021-08-24T10:37:17Z")

</div>

I have a nxn nested array of 2x2 matrices A, and a n-vector of 2-vectors x, I would like to perform a matrix vector multiplication of the form y=Ax, where y\[i\] = \\sum\_j A\[i,j\]\*x\[j\], where the last \* should be a matrix -v…

---

## [EnsembleDistributed Progress bar](https://discourse.julialang.org/t/ensembledistributed-progress-bar/66825)

<div class="topic-metadata">

**Author:** [@ograsdijk](https://discourse.julialang.org/u/ograsdijk)\
**Replies:** 4\
**Last updated:** [August 24, 2021, 10:25am UTC](https://discourse.julialang.org/t/ensembledistributed-progress-bar/66825 "2021-08-24T10:25:56Z")

</div>

I’m running several thousand ODE simulations that take ~30s each, and I’d like to be able to track the progress. I haven’t found any method for including a progress bar within EnsembleDistributed(), without resorting to …

---

## [Using closures for performance gain when handling datasets and making repeated function calls](https://discourse.julialang.org/t/using-closures-for-performance-gain-when-handling-datasets-and-making-repeated-function-calls/66809)

<div class="topic-metadata">

**Author:** [@rubaiyat](https://discourse.julialang.org/u/rubaiyat)\
**Replies:** 3\
**Last updated:** [August 24, 2021, 9:47am UTC](https://discourse.julialang.org/t/using-closures-for-performance-gain-when-handling-datasets-and-making-repeated-function-calls/66809 "2021-08-24T09:47:54Z")

</div>

Hello everyone, I’m in a situation where I’m estimating parameters of a model using a dataset. This requires optimization, and my question is about how I can leverage closures to speed up the process. I’d be curious to…

---

## [Xticklabelalign AoG](https://discourse.julialang.org/t/xticklabelalign-aog/66890)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 1\
**Last updated:** [August 24, 2021, 9:01am UTC](https://discourse.julialang.org/t/xticklabelalign-aog/66890 "2021-08-24T09:01:04Z")

</div>

How can I get the ticks to be horizontally centered on each of the bars? spec = data((data=rand('a':'g', 1000),),) \* mapping(:data) \* visual(Hist) draw(spec, axis=(xticklabelalign=(:center, :top),),)

---

## [What is the preferred way to save variables?](https://discourse.julialang.org/t/what-is-the-preferred-way-to-save-variables/21918)

<div class="topic-metadata">

**Author:** [@zaen](https://discourse.julialang.org/u/zaen)\
**Replies:** 39\
**Last updated:** [August 24, 2021, 8:22am UTC](https://discourse.julialang.org/t/what-is-the-preferred-way-to-save-variables/21918 "2021-08-24T08:22:30Z")

</div>

I’m trying to save variables from one run of a problem JuMP to use as initial values for variables in a separate JuMP problem. I see that there seem to be several (competing?) options for doing this: JLD JLD2 BSON HDF5 …

---

## [Optimization of a decision vector of arbitrary dimension](https://discourse.julialang.org/t/optimization-of-a-decision-vector-of-arbitrary-dimension/66846)

<div class="topic-metadata">

**Author:** [@etas](https://discourse.julialang.org/u/etas)\
**Replies:** 3\
**Last updated:** [August 24, 2021, 7:31am UTC](https://discourse.julialang.org/t/optimization-of-a-decision-vector-of-arbitrary-dimension/66846 "2021-08-24T07:31:46Z")

</div>

Hi, For an optimization problem having time dependent variables (i.e. large vectors), I’m trying to define the problem like below, with variables constrained by vectors, and optimize one variable. using JuMP using CPLE…

---

## [Dash/Makie web page mouse drawing](https://discourse.julialang.org/t/dash-makie-web-page-mouse-drawing/66591)

<div class="topic-metadata">

**Author:** [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)\
**Replies:** 1\
**Last updated:** [August 24, 2021, 7:15am UTC](https://discourse.julialang.org/t/dash-makie-web-page-mouse-drawing/66591 "2021-08-24T07:15:44Z")

</div>

I need to do some manual line drawings with the mouse on a web page and then process those curves in backend. Does Dash or Makie have such capability?(mouse drawing + ability to be proceased and served)

---

## [How to declare a string array for the purpose of concatenation](https://discourse.julialang.org/t/how-to-declare-a-string-array-for-the-purpose-of-concatenation/66868)

<div class="topic-metadata">

**Author:** [@soldin](https://discourse.julialang.org/u/soldin)\
**Replies:** 9\
**Last updated:** [August 24, 2021, 7:10am UTC](https://discourse.julialang.org/t/how-to-declare-a-string-array-for-the-purpose-of-concatenation/66868 "2021-08-24T07:10:44Z")

</div>

Hi all, I have the following code of converting a string array into a char array (MATLAB’s parlance) This works str1 = \["abc", "def", "ghi"\] function str\_join(str2) str=str2\[1\] for i=2:1:length(str2) str = …

---

## [\`try/catch\` statements in Pluto](https://discourse.julialang.org/t/try-catch-statements-in-pluto/66835)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 5\
**Last updated:** [August 24, 2021, 6:25am UTC](https://discourse.julialang.org/t/try-catch-statements-in-pluto/66835 "2021-08-24T06:25:33Z")

</div>

EDIT: There was no problem, I was simply not aware that a try/catch statement introduces a local scope. Pluto and reactivity are solid \<3 By using a try/catch statement in a pluto notebook, I can define a variable test …

---

## [Function parametric type promotion](https://discourse.julialang.org/t/function-parametric-type-promotion/66832)

<div class="topic-metadata">

**Author:** [@blackeneth](https://discourse.julialang.org/u/blackeneth)\
**Replies:** 3\
**Last updated:** [August 24, 2021, 6:22am UTC](https://discourse.julialang.org/t/function-parametric-type-promotion/66832 "2021-08-24T06:22:23Z")

</div>

Say I have a function that does a floating point calculations on the two arguments to the function. As a convenience to users, hower, additional function definitions are defined so that if a user inputs an Integer, or a…

---

## [Why Makie markers are not visually identical in size?](https://discourse.julialang.org/t/why-makie-markers-are-not-visually-identical-in-size/66894)

<div class="topic-metadata">

**Author:** [@liuyxpp](https://discourse.julialang.org/u/liuyxpp)\
**Replies:** 1\
**Last updated:** [August 24, 2021, 5:28am UTC](https://discourse.julialang.org/t/why-makie-markers-are-not-visually-identical-in-size/66894 "2021-08-24T05:28:45Z")

</div>

See the Makie figure below. Why the square marker is visually much larger than the diamond? Overall, the sizes of all markers are not visually pleasing. Can we have a better default size for each default marker?

---

## [AoG yaxislabel](https://discourse.julialang.org/t/aog-yaxislabel/66891)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 1\
**Last updated:** [August 24, 2021, 5:12am UTC](https://discourse.julialang.org/t/aog-yaxislabel/66891 "2021-08-24T05:12:30Z")

</div>

How can I specify the y axis label using makie spec = data((data=rand('a':'g', 1000),),) \* mapping(:data) \* visual(Hist) draw(spec, axis=(yaxislabel="values",),)

---

## [Computational performance when broadcasting a convolution layer](https://discourse.julialang.org/t/computational-performance-when-broadcasting-a-convolution-layer/66587)

<div class="topic-metadata">

**Author:** [@MattSainsbury-Dale](https://discourse.julialang.org/u/MattSainsbury-Dale)\
**Replies:** 5\
**Last updated:** [August 24, 2021, 1:11am UTC](https://discourse.julialang.org/t/computational-performance-when-broadcasting-a-convolution-layer/66587 "2021-08-24T01:11:45Z")

</div>

For 2D images, the usual input format for Conv layers is Array{Float32, 4}. I’m currently experimenting with broadcasting a Conv layer over a Vector{Array{Float32, 4}}, however I have found the performance to be signific…

---

## [Replace int element from another element keeping the original](https://discourse.julialang.org/t/replace-int-element-from-another-element-keeping-the-original/66877)

<div class="topic-metadata">

**Author:** [@Sebastian\_Mena](https://discourse.julialang.org/u/Sebastian_Mena)\
**Replies:** 1\
**Last updated:** [August 23, 2021, 9:55pm UTC](https://discourse.julialang.org/t/replace-int-element-from-another-element-keeping-the-original/66877 "2021-08-23T21:55:29Z")

</div>

Hi, i want to save an array my\_array = \[1,2,3,4,5\] and replace a element from my\_array with a value, but i don’t want to change my principal array. For example, my\_array = \[1,2,3,4,5\] replace 2 for 8 new\_array = \[1,8,3…

---

## [Why is matchall not defined?](https://discourse.julialang.org/t/why-is-matchall-not-defined/66874)

<div class="topic-metadata">

**Author:** [@cybervigilante](https://discourse.julialang.org/u/cybervigilante)\
**Replies:** 3\
**Last updated:** [August 23, 2021, 9:50pm UTC](https://discourse.julialang.org/t/why-is-matchall-not-defined/66874 "2021-08-23T21:50:54Z")

</div>

I’m learning regexes and matchall is mentioned in a number of references, but when I try it, Julia says it’s not defined. match() returns too much garbola when I just want the matched string. Here’s an example right from…

---

## [Mosek Error upon using Powermodels.jl](https://discourse.julialang.org/t/mosek-error-upon-using-powermodels-jl/66856)

<div class="topic-metadata">

**Author:** [@aaldik](https://discourse.julialang.org/u/aaldik)\
**Replies:** 1\
**Last updated:** [August 23, 2021, 9:24pm UTC](https://discourse.julialang.org/t/mosek-error-upon-using-powermodels-jl/66856 "2021-08-23T21:24:19Z")

</div>

Hello I’m trying to use the solver Mosek to solve a SDP problem via the “Powermodels.jl” library. My code is very simple: using powermodels using MosekTools solver4 = Mosek.Optimizer; SDP\_relax=run\_opf(“pglib\_opf\_ca…

---

## [Need some help converting JAGS code into Turing Model](https://discourse.julialang.org/t/need-some-help-converting-jags-code-into-turing-model/64173)

<div class="topic-metadata">

**Author:** [@stochastic\_guy](https://discourse.julialang.org/u/stochastic_guy)\
**Replies:** 3\
**Last updated:** [August 23, 2021, 8:14pm UTC](https://discourse.julialang.org/t/need-some-help-converting-jags-code-into-turing-model/64173 "2021-08-23T20:14:12Z")

</div>

I am trying to implement this JAGS model in Turing. JAGS code from: Zhan, P., Jiao, H., Man, K., & Wang, L. (2019). Using JAGS for Bayesian cognitive diagnosis modeling: A tutorial. Journal of Educational and Behav…

---

## [How to handle dataloader consisting of data with different dimensions?](https://discourse.julialang.org/t/how-to-handle-dataloader-consisting-of-data-with-different-dimensions/66847)

<div class="topic-metadata">

**Author:** [@kengyangyao](https://discourse.julialang.org/u/kengyangyao)\
**Replies:** 3\
**Last updated:** [August 23, 2021, 5:50pm UTC](https://discourse.julialang.org/t/how-to-handle-dataloader-consisting-of-data-with-different-dimensions/66847 "2021-08-23T17:50:41Z")

</div>

Hi, I was trying to use Flux.DataLoader with following code: X1 = rand(85761, 8, 24); X2 = rand(85761, 8, 1); y\_1 = rand(85761, 8, 1); emb = rand(85761, 1) train\_loader = Flux.DataLoader((X1=X1, emb=emb, X2=X2, y\_1=y\_1,…

---

## [Why is my github password displayed!](https://discourse.julialang.org/t/why-is-my-github-password-displayed/66861)

<div class="topic-metadata">

**Author:** [@dgpdx](https://discourse.julialang.org/u/dgpdx)\
**Replies:** 8\
**Last updated:** [August 23, 2021, 5:46pm UTC](https://discourse.julialang.org/t/why-is-my-github-password-displayed/66861 "2021-08-23T17:46:38Z")

</div>

I just clicked on my id in another post and discovered my github password was displayed! This is a gross violation of my security! Please stop this practice!

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

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