# Latest

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

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

**Page:** 1248

---

## [Error in NL expression UndefVarError: exp1 not defined](https://discourse.julialang.org/t/error-in-nl-expression-undefvarerror-exp1-not-defined/68780)

<div class="topic-metadata">

**Author:** [@manoj.centura](https://discourse.julialang.org/u/manoj.centura)\
**Replies:** 2\
**Last updated:** [October 6, 2021, 3:52am UTC](https://discourse.julialang.org/t/error-in-nl-expression-undefvarerror-exp1-not-defined/68780 "2021-10-06T03:52:56Z")

</div>

Hi All, is there a way to use NL expression from nested loops? outside nested loops example code using JuMP model=Model() @variable(model,x) xy=1 for z in 1:10 if z==1 if xy\>=1 @NLexpression(model,exp1,x^3) …

---

## [How to register the name of anonymous variable to certain model?](https://discourse.julialang.org/t/how-to-register-the-name-of-anonymous-variable-to-certain-model/69273)

<div class="topic-metadata">

**Author:** [@iiitr](https://discourse.julialang.org/u/iiitr)\
**Replies:** 1\
**Last updated:** [October 6, 2021, 3:47am UTC](https://discourse.julialang.org/t/how-to-register-the-name-of-anonymous-variable-to-certain-model/69273 "2021-10-06T03:47:49Z")

</div>

Hi all, I cannot view the anonymous variable in the model, when I use the following method: julia\> model = Model() A JuMP Model Feasibility problem with: Variables: 0 Model mode: AUTOMATIC CachingOptimizer state: NO\_OP…

---

## [How to use stipple table with selection?](https://discourse.julialang.org/t/how-to-use-stipple-table-with-selection/69277)

<div class="topic-metadata">

**Author:** [@wuxinyu](https://discourse.julialang.org/u/wuxinyu)\
**Replies:** 0\
**Last updated:** [October 6, 2021, 2:30am UTC](https://discourse.julialang.org/t/how-to-use-stipple-table-with-selection/69277 "2021-10-06T02:30:08Z")

</div>

I want to display my data in a table and with selection to select the data I want, but there is no document about stipple . How can I do it?

---

## [Programmatic goto](https://discourse.julialang.org/t/programmatic-goto/69271)

<div class="topic-metadata">

**Author:** [@cscherrer](https://discourse.julialang.org/u/cscherrer)\
**Replies:** 9\
**Last updated:** [October 6, 2021, 12:09am UTC](https://discourse.julialang.org/t/programmatic-goto/69271 "2021-10-06T00:09:57Z")

</div>

For probabilistic programming work, I was exploring the idea of adding @goto and @label statements in the code for a model, and then calling to an outside “driver” function to see where to go next. Prototyping this idea,…

---

## [\[ANN\] PrettyTables.jl v1.2.2](https://discourse.julialang.org/t/ann-prettytables-jl-v1-2-2/69193)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 4\
**Last updated:** [October 5, 2021, 11:21pm UTC](https://discourse.julialang.org/t/ann-prettytables-jl-v1-2-2/69193 "2021-10-05T23:21:21Z")

</div>

Hi! I just tag a new version of PrettyTables.jl (v1.2.2) and I would like to point out an amazing work done by @lorenzoh (GitHub, I am not sure if he is here in Discourse). He had an idea to use CustomTextCell so that w…

---

## [Understanding nextfloat() and prevfloat()](https://discourse.julialang.org/t/understanding-nextfloat-and-prevfloat/69265)

<div class="topic-metadata">

**Author:** [@junelac](https://discourse.julialang.org/u/junelac)\
**Replies:** 3\
**Last updated:** [October 5, 2021, 11:01pm UTC](https://discourse.julialang.org/t/understanding-nextfloat-and-prevfloat/69265 "2021-10-05T23:01:01Z")

</div>

Hello, I’m currently reading the Julia documentation/tutorial and I think I don’t really understand how nextfloat(x) and prevfloat(x) are computed. Reading the document I thought they would be respectively x + eps(x) an…

---

## [\[ANN\] SCS-0.7.1 comes with GPU support](https://discourse.julialang.org/t/ann-scs-0-7-1-comes-with-gpu-support/49240)

<div class="topic-metadata">

**Author:** [@abulak](https://discourse.julialang.org/u/abulak)\
**Replies:** 2\
**Last updated:** [October 5, 2021, 10:41pm UTC](https://discourse.julialang.org/t/ann-scs-0-7-1-comes-with-gpu-support/49240 "2021-10-05T22:41:09Z")

</div>

Dear all, I’m pleased to announce the release of SCS.jl-0.7.1, which finally plumbed the optional support for the gpu indirect solver through jlls. Since we didn’t want to depend on CUDA\_jll (a huge dependancy), the gp…

---

## [Extremely low values of barrier term mu in Fminbox](https://discourse.julialang.org/t/extremely-low-values-of-barrier-term-mu-in-fminbox/69264)

<div class="topic-metadata">

**Author:** [@Gabriel\_Kreindler](https://discourse.julialang.org/u/Gabriel_Kreindler)\
**Replies:** 2\
**Last updated:** [October 5, 2021, 10:36pm UTC](https://discourse.julialang.org/t/extremely-low-values-of-barrier-term-mu-in-fminbox/69264 "2021-10-05T22:36:01Z")

</div>

I am puzzled by Fminbox decreasing mu (the barier penalty term) to extremely low values. I do not quite understand why this happens and how I can control it. I run something like (note in case it’s relevant that my\_obj\_…

---

## [Fastest way to apply function to rows without slices](https://discourse.julialang.org/t/fastest-way-to-apply-function-to-rows-without-slices/69257)

<div class="topic-metadata">

**Author:** [@abc](https://discourse.julialang.org/u/abc)\
**Replies:** 1\
**Last updated:** [October 5, 2021, 9:47pm UTC](https://discourse.julialang.org/t/fastest-way-to-apply-function-to-rows-without-slices/69257 "2021-10-05T21:47:33Z")

</div>

Hi! I have a function which takes two 2-element Array{Float64,1} as input. An example (mine is much more complicated, but can’t be shared sadly). It can look something like this. function Example(x,y) return norm(x…

---

## [CSV.Rows number of columns](https://discourse.julialang.org/t/csv-rows-number-of-columns/69232)

<div class="topic-metadata">

**Author:** [@Laco\_Kovac](https://discourse.julialang.org/u/Laco_Kovac)\
**Replies:** 1\
**Last updated:** [October 5, 2021, 9:07pm UTC](https://discourse.julialang.org/t/csv-rows-number-of-columns/69232 "2021-10-05T21:07:56Z")

</div>

using CSV z = UInt8\[0x44, 0x61, 0x74, 0x65, 0x2c, 0x70, 0x41, 0x2c, 0x70, 0x42, 0x2c, 0x70, 0x43, 0x0d, 0x0a, 0x32, 0x30, 0x30, 0x34, 0x2d, 0x30, 0x31, 0x2d, 0x30, 0x31, 0x20, 0x30, 0x30, 0x3a, 0x30, 0x30, 0x3a, 0x30, 0x…

---

## [TCP socket allocations](https://discourse.julialang.org/t/tcp-socket-allocations/69254)

<div class="topic-metadata">

**Author:** [@Dilchatto](https://discourse.julialang.org/u/Dilchatto)\
**Replies:** 0\
**Last updated:** [October 5, 2021, 9:00pm UTC](https://discourse.julialang.org/t/tcp-socket-allocations/69254 "2021-10-05T21:00:51Z")

</div>

Hi. I found that this method always dynamically allocates memory. @allocated write(soc::TCPSocket, x) How can I avoid this? Is there some StaticTCPSocket package?

---

## [System modeling workflow example](https://discourse.julialang.org/t/system-modeling-workflow-example/67612)

<div class="topic-metadata">

**Author:** [@holmesthinking](https://discourse.julialang.org/u/holmesthinking)\
**Replies:** 5\
**Last updated:** [October 5, 2021, 7:51pm UTC](https://discourse.julialang.org/t/system-modeling-workflow-example/67612 "2021-10-05T19:51:26Z")

</div>

Hi, I have some experience in Simulink but I want to do stuff in Julia (ModelingToolkit). I’m searching for examples of simple system models for example two water tanks and pump or something similar in complexity. I wo…

---

## [Can I concatenate expressions in macro?](https://discourse.julialang.org/t/can-i-concatenate-expressions-in-macro/69220)

<div class="topic-metadata">

**Author:** [@Jakub\_Mitura](https://discourse.julialang.org/u/Jakub_Mitura)\
**Replies:** 5\
**Last updated:** [October 5, 2021, 6:47pm UTC](https://discourse.julialang.org/t/can-i-concatenate-expressions-in-macro/69220 "2021-10-05T18:47:36Z")

</div>

i have array of expressions generated in macro and i want to return it all so they will be executed one by one

---

## [Plots.jl mask values in heatmap](https://discourse.julialang.org/t/plots-jl-mask-values-in-heatmap/69223)

<div class="topic-metadata">

**Author:** [@weymouth](https://discourse.julialang.org/u/weymouth)\
**Replies:** 4\
**Last updated:** [October 5, 2021, 6:01pm UTC](https://discourse.julialang.org/t/plots-jl-mask-values-in-heatmap/69223 "2021-10-05T18:01:02Z")

</div>

I’m trying to mask out some values of a rectangular array in a heatmap. It seems like it should be easy using alpha… heatmap(rand(10,10),alpha=rand(10,10) .\> 0.5) But this blanks out stripes instead of individual ce…

---

## [How do I get rid of the string fragment \\\\"](https://discourse.julialang.org/t/how-do-i-get-rid-of-the-string-fragment/69240)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 12\
**Last updated:** [October 5, 2021, 5:37pm UTC](https://discourse.julialang.org/t/how-do-i-get-rid-of-the-string-fragment/69240 "2021-10-05T17:37:27Z")

</div>

I have in log part of line: “\\“Mozilla/5.0 (Macintosh; Intel Mac OS X 10\_15\_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36\\”” How do I get rid of the string fragment: \\" On the start end o…

---

## [Associate terminals with files](https://discourse.julialang.org/t/associate-terminals-with-files/69208)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 8\
**Last updated:** [October 5, 2021, 5:27pm UTC](https://discourse.julialang.org/t/associate-terminals-with-files/69208 "2021-10-05T17:27:51Z")

</div>

I created a repl in a file and now I’m trying to run some commands from a different file but it keeps opening a different terminal. How can I specify that these two files share the same terminal?

---

## [SharedArrays in function with @distributed](https://discourse.julialang.org/t/sharedarrays-in-function-with-distributed/69096)

<div class="topic-metadata">

**Author:** [@Beh123](https://discourse.julialang.org/u/Beh123)\
**Replies:** 4\
**Last updated:** [October 5, 2021, 5:26pm UTC](https://discourse.julialang.org/t/sharedarrays-in-function-with-distributed/69096 "2021-10-05T17:26:06Z")

</div>

Hi my friends, I have a function with @thread . In this threads function, I use @distribute to speedup calculations loops. But my result is incorrect when I use function. My result is correct without function.

---

## [How to correctly use heatmap with 3 vectors as input?](https://discourse.julialang.org/t/how-to-correctly-use-heatmap-with-3-vectors-as-input/69191)

<div class="topic-metadata">

**Author:** [@thudjx](https://discourse.julialang.org/u/thudjx)\
**Replies:** 6\
**Last updated:** [October 5, 2021, 5:11pm UTC](https://discourse.julialang.org/t/how-to-correctly-use-heatmap-with-3-vectors-as-input/69191 "2021-10-05T17:11:18Z")

</div>

When using heatmap as the example shows: using CairoMakie xls = range(0, 10, length = 25) yls = range(0, 15, length = 25) zm = \[cos(x) \* sin(y) for x in xs, y in ys\] heatmap(xls, yls, zm) I can get the result expect…

---

## [@which only reports filename instead of full path](https://discourse.julialang.org/t/which-only-reports-filename-instead-of-full-path/69222)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 1\
**Last updated:** [October 5, 2021, 4:33pm UTC](https://discourse.julialang.org/t/which-only-reports-filename-instead-of-full-path/69222 "2021-10-05T16:33:02Z")

</div>

When using @which julia does not report the full file, but only the file name. Hence I cannot jump to the source code. I have installed julia via standard binary installer on nixos. julia\> @which show("hi") show(x) in …

---

## [Running a CMakeLists.txt programmatically](https://discourse.julialang.org/t/running-a-cmakelists-txt-programmatically/69238)

<div class="topic-metadata">

**Author:** [@MitchellWeg](https://discourse.julialang.org/u/MitchellWeg)\
**Replies:** 1\
**Last updated:** [October 5, 2021, 3:44pm UTC](https://discourse.julialang.org/t/running-a-cmakelists-txt-programmatically/69238 "2021-10-05T15:44:58Z")

</div>

Hi Julia community, I have a C library that needs to be built with a CMakeLists, but I haven’t figured out how to do that programmatically. I know that packages like CMakeWrapper and BinDeps. Yet I find the documentati…

---

## [Batched multiplication with CuSparseMatrix isn't working](https://discourse.julialang.org/t/batched-multiplication-with-cusparsematrix-isnt-working/69210)

<div class="topic-metadata">

**Author:** [@Michael\_Birk](https://discourse.julialang.org/u/Michael_Birk)\
**Replies:** 6\
**Last updated:** [October 5, 2021, 3:35pm UTC](https://discourse.julialang.org/t/batched-multiplication-with-cusparsematrix-isnt-working/69210 "2021-10-05T15:35:39Z")

</div>

Applying batched\_mul from NNlib/NNlibCUDA to a CuArray tensor and a CuSparseMatrix matrix falls back to the generic method and performs scalar indexing. Is there a GPU-efficient way to broadcast multiplication of a CuSpa…

---

## [People getting their Julia questions closed on SO may feel angry at Julia community](https://discourse.julialang.org/t/people-getting-their-julia-questions-closed-on-so-may-feel-angry-at-julia-community/69221)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [October 5, 2021, 3:01pm UTC](https://discourse.julialang.org/t/people-getting-their-julia-questions-closed-on-so-may-feel-angry-at-julia-community/69221 "2021-10-05T15:01:00Z")

</div>

Just a thought I had often recently: I feel SO users close too easily legit questions on the base of a strictly applied SO policy rule. Jeah… the question may be not really clear, or focus on more than one thing, or who…

---

## [Argument "tgrad" in ODEFunction appears to have no influence. Correct?](https://discourse.julialang.org/t/argument-tgrad-in-odefunction-appears-to-have-no-influence-correct/69236)

<div class="topic-metadata">

**Author:** [@Andrey](https://discourse.julialang.org/u/Andrey)\
**Replies:** 2\
**Last updated:** [October 5, 2021, 2:53pm UTC](https://discourse.julialang.org/t/argument-tgrad-in-odefunction-appears-to-have-no-influence-correct/69236 "2021-10-05T14:53:44Z")

</div>

\[Question replicated from DifferentialEquations Lobby at JuliaDiffEq/Lobby - Gitter \] Hi All. I have got a question to the “DifferentialEquations” and “ModelingToolbox” Pkg developers, probably the right addressees are…

---

## [Argument ordering and interpretation](https://discourse.julialang.org/t/argument-ordering-and-interpretation/69224)

<div class="topic-metadata">

**Author:** [@Alex\_Tantos](https://discourse.julialang.org/u/Alex_Tantos)\
**Replies:** 11\
**Last updated:** [October 5, 2021, 2:12pm UTC](https://discourse.julialang.org/t/argument-ordering-and-interpretation/69224 "2021-10-05T14:12:27Z")

</div>

Hi! I just saw a tweet by @StefanKarpinski with the very well-written and informative summary of new features offered in the upcoming 1.7 release. As always, one of the reasons why one may want to switch to Julia is the…

---

## [Remove / replace undef values in DataFrame](https://discourse.julialang.org/t/remove-replace-undef-values-in-dataframe/69219)

<div class="topic-metadata">

**Author:** [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Replies:** 7\
**Last updated:** [October 5, 2021, 1:08pm UTC](https://discourse.julialang.org/t/remove-replace-undef-values-in-dataframe/69219 "2021-10-05T13:08:05Z")

</div>

Hi, Is there a way to replace all undef value in a Dataframe column with NA or another value? And how do I get rid of all the rows that have at least 1 undef value? Thank you

---

## [How to read julia variables with Matlab](https://discourse.julialang.org/t/how-to-read-julia-variables-with-matlab/69230)

<div class="topic-metadata">

**Author:** [@iiitr](https://discourse.julialang.org/u/iiitr)\
**Replies:** 4\
**Last updated:** [October 5, 2021, 11:37am UTC](https://discourse.julialang.org/t/how-to-read-julia-variables-with-matlab/69230 "2021-10-05T11:37:20Z")

</div>

Hi all, I am looking for a simple way to save julia variables, and use Matlab to read them, and finally become variables in Matlab For example, I have a 3-D array: x = rand(2, 3, 4) My current approach is to use the …

---

## [Abstract Branch and Bound API for MIP](https://discourse.julialang.org/t/abstract-branch-and-bound-api-for-mip/4691)

<div class="topic-metadata">

**Author:** [@michaellindon](https://discourse.julialang.org/u/michaellindon)\
**Replies:** 19\
**Last updated:** [October 5, 2021, 10:37am UTC](https://discourse.julialang.org/t/abstract-branch-and-bound-api-for-mip/4691 "2021-10-05T10:37:02Z")

</div>

I have a non-linear objective function F of p binary arguments… I would like to solve this using a branch and bound method, using a continuous relaxation to acquire the bound. The continuous relaxation of F, however, i…

---

## [Turing: no method matching MvNormal(::Matrix{Float64}, ::Float64)](https://discourse.julialang.org/t/turing-no-method-matching-mvnormal-matrix-float64-float64/69207)

<div class="topic-metadata">

**Author:** [@Tarotis](https://discourse.julialang.org/u/Tarotis)\
**Replies:** 4\
**Last updated:** [October 5, 2021, 8:06am UTC](https://discourse.julialang.org/t/turing-no-method-matching-mvnormal-matrix-float64-float64/69207 "2021-10-05T08:06:22Z")

</div>

Hello everybody, as I want to switch from R to Julia for my Bayesian modelling, tonight I run my first models in Turing. However, I encountered some problems, principally when trying to model a random-intercept model. T…

---

## [Printf Error in Custom Package](https://discourse.julialang.org/t/printf-error-in-custom-package/69211)

<div class="topic-metadata">

**Author:** [@graham](https://discourse.julialang.org/u/graham)\
**Replies:** 2\
**Last updated:** [October 5, 2021, 7:05am UTC](https://discourse.julialang.org/t/printf-error-in-custom-package/69211 "2021-10-05T07:05:13Z")

</div>

Hi all, I’m setting up a private package that has the following module definitions Module MainMod Using Printf ... include("paths to submodules") ... using ..Submodules # Will this let me directly call fxns from top…

---

## [From notebook to structured project in Julia](https://discourse.julialang.org/t/from-notebook-to-structured-project-in-julia/69200)

<div class="topic-metadata">

**Author:** [@misha\_mikhasenko](https://discourse.julialang.org/u/misha_mikhasenko)\
**Replies:** 1\
**Last updated:** [October 5, 2021, 6:42am UTC](https://discourse.julialang.org/t/from-notebook-to-structured-project-in-julia/69200 "2021-10-05T06:42:13Z")

</div>

Last week I was talking to students about a workflow for moving code from a notebook to a structured project with src/ , scripts/ , … using an example resonance-pole analysis. Just in case someone is interested, here is…

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

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