# Latest

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

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

**Page:** 714

---

## [Interpolation within ModelingToolkit framework](https://discourse.julialang.org/t/interpolation-within-modelingtoolkit-framework/59432)

<div class="topic-metadata">

**Author:** [@jairorua](https://discourse.julialang.org/u/jairorua)\
**Replies:** 16\
**Last updated:** [May 1, 2023, 4:41pm UTC](https://discourse.julialang.org/t/interpolation-within-modelingtoolkit-framework/59432 "2023-05-01T16:41:51Z")

</div>

Hello, Is there a way to interpolate within a ModelingToolkit’s (MTK) component model using the parameters/variables of the model? Interpolations.jl seems to struggle with Num types, and from the example in the document…

---

## [How to efficiently differentiate backslash operator for sparse matrix?](https://discourse.julialang.org/t/how-to-efficiently-differentiate-backslash-operator-for-sparse-matrix/43778)

<div class="topic-metadata">

**Author:** [@Liang\_Chen](https://discourse.julialang.org/u/Liang_Chen)\
**Replies:** 23\
**Last updated:** [May 1, 2023, 4:21pm UTC](https://discourse.julialang.org/t/how-to-efficiently-differentiate-backslash-operator-for-sparse-matrix/43778 "2023-05-01T16:21:24Z")

</div>

My problem is to calculate the gradient, dL(u)/dp, where L() is a loss function which takes a vector u as the input and outputs a scalar value. The vector p are parameters that defines a large sparse matrix K, such that K…

---

## [Passing DataFrameRow to transform in split-apply-combine](https://discourse.julialang.org/t/passing-dataframerow-to-transform-in-split-apply-combine/98118)

<div class="topic-metadata">

**Author:** [@alequa](https://discourse.julialang.org/u/alequa)\
**Replies:** 4\
**Last updated:** [May 1, 2023, 4:18pm UTC](https://discourse.julialang.org/t/passing-dataframerow-to-transform-in-split-apply-combine/98118 "2023-05-01T16:18:59Z")

</div>

Hello, I want to apply a function (my\_func) to the DataFrameRow object, so I can access all the column-names from within the function, independently of the col\_names declared in the transform. I can’t find the way of a…

---

## [Error: "all-underscore identifier used as rvalue"](https://discourse.julialang.org/t/error-all-underscore-identifier-used-as-rvalue/97944)

<div class="topic-metadata">

**Author:** [@hendri54](https://discourse.julialang.org/u/hendri54)\
**Replies:** 1\
**Last updated:** [May 1, 2023, 3:25pm UTC](https://discourse.julialang.org/t/error-all-underscore-identifier-used-as-rvalue/97944 "2023-05-01T15:25:01Z")

</div>

I am trying to understand why the following error is thrown: julia\> function foo1(x, \_, y; z) @show x, y, z end ERROR: syntax: all-underscore identifier used as rvalue around REPL\[2\]:1 Stacktrace: \[1\] t…

---

## [Failed to precompile ScikitLearn and Plots](https://discourse.julialang.org/t/failed-to-precompile-scikitlearn-and-plots/98159)

<div class="topic-metadata">

**Author:** [@Beatha\_Shilongo](https://discourse.julialang.org/u/Beatha_Shilongo)\
**Replies:** 10\
**Last updated:** [May 1, 2023, 3:09pm UTC](https://discourse.julialang.org/t/failed-to-precompile-scikitlearn-and-plots/98159 "2023-05-01T15:09:42Z")

</div>

Am trying to add ScikitLearn and Plots package into my Pluto note book but am getting an error. I tried updating, adding python path to Julia but did not work. Any suggestions on what I can do. error: Failed to prec…

---

## [PyCall not properly installed](https://discourse.julialang.org/t/pycall-not-properly-installed/39928)

<div class="topic-metadata">

**Author:** [@SambitMishra98](https://discourse.julialang.org/u/SambitMishra98)\
**Replies:** 6\
**Last updated:** [May 22, 2020, 7:57pm UTC](https://discourse.julialang.org/t/pycall-not-properly-installed/39928 "2020-05-22T19:57:36Z")

</div>

I am not able to use any package which has some connection with the PyCall package. I tried following the instructions in one of the cases (for using ScikitLearn package) and have given the output below. I tried resolvin…

---

## [Type-stability of recursive functions](https://discourse.julialang.org/t/type-stability-of-recursive-functions/78946)

<div class="topic-metadata">

**Author:** [@nchisholm](https://discourse.julialang.org/u/nchisholm)\
**Replies:** 6\
**Last updated:** [May 1, 2023, 1:05pm UTC](https://discourse.julialang.org/t/type-stability-of-recursive-functions/78946 "2023-05-01T13:05:12Z")

</div>

I have challenged myself to write a (ideally type-stable) function that computes the determinant of (small) matricies using the O(n!) recursive expansion formula without resorting to @generated. I ended up with the fol…

---

## [Question on Dependency-Related Best Practice for Packages](https://discourse.julialang.org/t/question-on-dependency-related-best-practice-for-packages/98146)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 5\
**Last updated:** [May 1, 2023, 12:09pm UTC](https://discourse.julialang.org/t/question-on-dependency-related-best-practice-for-packages/98146 "2023-05-01T12:09:38Z")

</div>

Hello, I don’t know which of the following is the better option or what should be done. I am hoping someone can help me decide. I am developing PackageA. I have PackageB currently as a dependency of PackageA. Separatel…

---

## [Why almost all package be re-precompiling after a new package installed?](https://discourse.julialang.org/t/why-almost-all-package-be-re-precompiling-after-a-new-package-installed/98151)

<div class="topic-metadata">

**Author:** [@tiZ](https://discourse.julialang.org/u/tiZ)\
**Replies:** 2\
**Last updated:** [May 1, 2023, 11:43am UTC](https://discourse.julialang.org/t/why-almost-all-package-be-re-precompiling-after-a-new-package-installed/98151 "2023-05-01T11:43:39Z")

</div>

Hi Julia-ers, I found that adding a new package in Julia can be quite troublesome. Each time I do this, there will be also a long precompilation process that involves almost all the packages in the current project envi…

---

## [Is there a Julia package similar to the Python's "ShowYourWork"?](https://discourse.julialang.org/t/is-there-a-julia-package-similar-to-the-pythons-showyourwork/97475)

<div class="topic-metadata">

**Author:** [@martinmestre](https://discourse.julialang.org/u/martinmestre)\
**Replies:** 17\
**Last updated:** [May 1, 2023, 10:57am UTC](https://discourse.julialang.org/t/is-there-a-julia-package-similar-to-the-pythons-showyourwork/97475 "2023-05-01T10:57:02Z")

</div>

Hello, I mean this Python package Thanks.

---

## [How to fix this error when I use JUMP to maximize a function?](https://discourse.julialang.org/t/how-to-fix-this-error-when-i-use-jump-to-maximize-a-function/98155)

<div class="topic-metadata">

**Author:** [@maoc](https://discourse.julialang.org/u/maoc)\
**Replies:** 1\
**Last updated:** [May 1, 2023, 9:53am UTC](https://discourse.julialang.org/t/how-to-fix-this-error-when-i-use-jump-to-maximize-a-function/98155 "2023-05-01T09:53:57Z")

</div>

I’m trying to optimize a likelihood function a little different from the traditional ones. I’m going to call this likelihood function of mine “faux”. To show my problem, first see how well this example (I took this examp…

---

## [OpenStreetMapX: How to efficiently convert node\_id to vertex\_id?](https://discourse.julialang.org/t/openstreetmapx-how-to-efficiently-convert-node-id-to-vertex-id/98139)

<div class="topic-metadata">

**Author:** [@Yao\_Vang](https://discourse.julialang.org/u/Yao_Vang)\
**Replies:** 2\
**Last updated:** [May 1, 2023, 9:05am UTC](https://discourse.julialang.org/t/openstreetmapx-how-to-efficiently-convert-node-id-to-vertex-id/98139 "2023-05-01T09:05:24Z")

</div>

Hello all When calling any routing opetion in openstreetmapX it expects node\_id and in the answer it also returns node\_id. for example: m = get\_map\_data(File\_path, use\_cache=false, trim\_to\_connected\_graph=true ); a,b =…

---

## [Multi-threading of julia-1.8.5 does not improve speed when combined with BLAS](https://discourse.julialang.org/t/multi-threading-of-julia-1-8-5-does-not-improve-speed-when-combined-with-blas/97568)

<div class="topic-metadata">

**Author:** [@therockertj](https://discourse.julialang.org/u/therockertj)\
**Replies:** 17\
**Last updated:** [May 1, 2023, 7:06am UTC](https://discourse.julialang.org/t/multi-threading-of-julia-1-8-5-does-not-improve-speed-when-combined-with-blas/97568 "2023-05-01T07:06:10Z")

</div>

Hi, I am very new to Julia and try to use multi-threading to make my code faster. If I do not use linear algebra, my code using “Thread.@threads” for the “for” loop speeds up as expected. However, when I use linear al…

---

## [Pkg.build("PyCall") errors. Need help](https://discourse.julialang.org/t/pkg-build-pycall-errors-need-help/98145)

<div class="topic-metadata">

**Author:** [@armel3](https://discourse.julialang.org/u/armel3)\
**Replies:** 1\
**Last updated:** [May 1, 2023, 6:59am UTC](https://discourse.julialang.org/t/pkg-build-pycall-errors-need-help/98145 "2023-05-01T06:59:21Z")

</div>

Hi, Does anyone know how I can use Pkg.build(“PyCall”) without errors in Windows? It keeps failing and I am not sure how to fix it. Any help appreciated julia\> Pkg.build("PyCall") INFO: Building Conda INFO: Building Py…

---

## [Stable (tagged) versions are not being deployed?](https://discourse.julialang.org/t/stable-tagged-versions-are-not-being-deployed/98129)

<div class="topic-metadata">

**Author:** [@tpoisot](https://discourse.julialang.org/u/tpoisot)\
**Replies:** 2\
**Last updated:** [May 1, 2023, 3:11am UTC](https://discourse.julialang.org/t/stable-tagged-versions-are-not-being-deployed/98129 "2023-05-01T03:11:24Z")

</div>

I am using this workflow file to build the documentation for a package: The dev version works, but the tags (which are generated by TagBot) are not resulting in a stable version being built. Is there something obviou…

---

## [Could not load library in Linux](https://discourse.julialang.org/t/could-not-load-library-in-linux/98130)

<div class="topic-metadata">

**Author:** [@xialing](https://discourse.julialang.org/u/xialing)\
**Replies:** 3\
**Last updated:** [May 1, 2023, 1:38am UTC](https://discourse.julialang.org/t/could-not-load-library-in-linux/98130 "2023-05-01T01:38:18Z")

</div>

I have tried a lot about this problem but could not find a solution. And I can’t use julia at all. Could you help me with it? Thank you a lot.

---

## [Questions about testing and PkgEval, e.g. why only 63% of ecosystem tested, rest "skipped"?](https://discourse.julialang.org/t/questions-about-testing-and-pkgeval-e-g-why-only-63-of-ecosystem-tested-rest-skipped/98138)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 1\
**Last updated:** [May 1, 2023, 1:31am UTC](https://discourse.julialang.org/t/questions-about-testing-and-pkgeval-e-g-why-only-63-of-ecosystem-tested-rest-skipped/98138 "2023-05-01T01:31:44Z")

</div>

In short is PkgEval/master in worse state than usual? Before people start panic, the process seems to be working as intended, except maybe the skipped packages. I’m still curious about some of the (other) failures I’m se…

---

## [Trying to plot, getting no output](https://discourse.julialang.org/t/trying-to-plot-getting-no-output/98136)

<div class="topic-metadata">

**Author:** [@jxxcarlson](https://discourse.julialang.org/u/jxxcarlson)\
**Replies:** 2\
**Last updated:** [May 1, 2023, 12:11am UTC](https://discourse.julialang.org/t/trying-to-plot-getting-no-output/98136 "2023-05-01T00:11:25Z")

</div>

I’m running the code below (using Julia 1.8.5) but getting no output other than the below. That is, I don’t see any plot popping up. ➜ julia julia plot-sine.jl Updating registry at \`~/.julia/registries/General\` …

---

## [Constructing a sum of many functions (as a new function)](https://discourse.julialang.org/t/constructing-a-sum-of-many-functions-as-a-new-function/98009)

<div class="topic-metadata">

**Author:** [@Bill\_Holmes](https://discourse.julialang.org/u/Bill_Holmes)\
**Replies:** 15\
**Last updated:** [April 30, 2023, 9:26pm UTC](https://discourse.julialang.org/t/constructing-a-sum-of-many-functions-as-a-new-function/98009 "2023-04-30T21:26:42Z")

</div>

Hello all. I have question about function construction. Specifically, suppose I have constructed a Vector containing a functions. That is, my vector would look like v =\[f1,f2,f3,f4,...\]. I now want to produce a new funct…

---

## [Convert Dict to NamedTuple](https://discourse.julialang.org/t/convert-dict-to-namedtuple/98140)

<div class="topic-metadata">

**Author:** [@Brinkhuis](https://discourse.julialang.org/u/Brinkhuis)\
**Replies:** 4\
**Last updated:** [April 30, 2023, 8:13pm UTC](https://discourse.julialang.org/t/convert-dict-to-namedtuple/98140 "2023-04-30T20:13:30Z")

</div>

I’m looking for a clean way to convert Dictionaries into NamedTuples. I found a helpful topic, however, that solution only works for Dicts with symbol keys. julia\> (; Dict(:a =\> 5, :b =\> 6, :c =\> 7)…) (a = 5, b = 6, …

---

## [What are different types of functions in Julia and what are the differences between them?](https://discourse.julialang.org/t/what-are-different-types-of-functions-in-julia-and-what-are-the-differences-between-them/98113)

<div class="topic-metadata">

**Author:** [@meet.saiya](https://discourse.julialang.org/u/meet.saiya)\
**Replies:** 3\
**Last updated:** [April 30, 2023, 6:25pm UTC](https://discourse.julialang.org/t/what-are-different-types-of-functions-in-julia-and-what-are-the-differences-between-them/98113 "2023-04-30T18:25:01Z")

</div>

I’m trying to replicate a code of Sigmoidal programming for my optimization problem. The example uses a code where they pass in a list of functions. fs = fill(logistic, nvar) dfs = fill(logistic\_prime, nvar) The output…

---

## [Render Pipeline in Metal.jl](https://discourse.julialang.org/t/render-pipeline-in-metal-jl/97847)

<div class="topic-metadata">

**Author:** [@dchang10](https://discourse.julialang.org/u/dchang10)\
**Replies:** 9\
**Last updated:** [April 30, 2023, 5:07pm UTC](https://discourse.julialang.org/t/render-pipeline-in-metal-jl/97847 "2023-04-30T17:07:49Z")

</div>

I’m currently trying to set up a render pipeline with Metal.jl by defining a vertex shader, rasterizer and fragment shader, but am not sure how to go about it. Is there an example or description of how this is done with …

---

## [Tree \<: Collection? Looking for API feedback in DynamicExpressions](https://discourse.julialang.org/t/tree-collection-looking-for-api-feedback-in-dynamicexpressions/98109)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 1\
**Last updated:** [April 30, 2023, 4:31pm UTC](https://discourse.julialang.org/t/tree-collection-looking-for-api-feedback-in-dynamicexpressions/98109 "2023-04-30T16:31:18Z")

</div>

Intro I am wondering if I could others’ opinions on a potential interface for traversing expressions in DynamicExpressions.jl. To give you a sense of what the package does, the original announcement thread for this pack…

---

## [Vectorization, or boundary tracing in julia](https://discourse.julialang.org/t/vectorization-or-boundary-tracing-in-julia/97638)

<div class="topic-metadata">

**Author:** [@alex-s-gardner](https://discourse.julialang.org/u/alex-s-gardner)\
**Replies:** 10\
**Last updated:** [April 30, 2023, 4:14pm UTC](https://discourse.julialang.org/t/vectorization-or-boundary-tracing-in-julia/97638 "2023-04-30T16:14:38Z")

</div>

Does anyone know of a julia package that can generate vectors/polygons (i,j) for the boundaries of areas found within a BitMatrix.

---

## [Microsimulation with Agents?](https://discourse.julialang.org/t/microsimulation-with-agents/98119)

<div class="topic-metadata">

**Author:** [@sbacelar](https://discourse.julialang.org/u/sbacelar)\
**Replies:** 3\
**Last updated:** [April 30, 2023, 1:10pm UTC](https://discourse.julialang.org/t/microsimulation-with-agents/98119 "2023-04-30T13:10:46Z")

</div>

Is it possible to do a micro-simulation using Agents.jl? Some software pretend to do ABM and micro-simulation. Can it be real? What would be the right packages to do it in Julia?

---

## [How to draw a circle of 500m away from a point on a map? or how to highlight all connected ways?](https://discourse.julialang.org/t/how-to-draw-a-circle-of-500m-away-from-a-point-on-a-map-or-how-to-highlight-all-connected-ways/98093)

<div class="topic-metadata">

**Author:** [@Optimization](https://discourse.julialang.org/u/Optimization)\
**Replies:** 5\
**Last updated:** [April 30, 2023, 12:42pm UTC](https://discourse.julialang.org/t/how-to-draw-a-circle-of-500m-away-from-a-point-on-a-map-or-how-to-highlight-all-connected-ways/98093 "2023-04-30T12:42:36Z")

</div>

Is it possible to draw a circle around a coordinates? I knew that with folium one can plot a points on a map: using OpenStreetMapX using PyCall points = LLA(43.658813, -79.397574, 0.0) using PyCall flm = pyimport("f…

---

## [Is there a faster alternative to \`hcat(xx...)\`?](https://discourse.julialang.org/t/is-there-a-faster-alternative-to-hcat-xx/98112)

<div class="topic-metadata">

**Author:** [@\_stla](https://discourse.julialang.org/u/_stla)\
**Replies:** 16\
**Last updated:** [April 30, 2023, 12:01pm UTC](https://discourse.julialang.org/t/is-there-a-faster-alternative-to-hcat-xx/98112 "2023-04-30T12:01:27Z")

</div>

Hello, I have this piece of code in a function: triangles = Matrix{Int}(undef, 3, 0) for i in 1:ntriangles a, b, c = triangle = ∂₂₀(i) nkeep = tokeep\[a\] + tokeep\[b\] + tokeep\[c\] if nkeep \> 0 push!(…

---

## [Add methods to function from another module](https://discourse.julialang.org/t/add-methods-to-function-from-another-module/98083)

<div class="topic-metadata">

**Author:** [@iskyd](https://discourse.julialang.org/u/iskyd)\
**Replies:** 2\
**Last updated:** [April 30, 2023, 9:53am UTC](https://discourse.julialang.org/t/add-methods-to-function-from-another-module/98083 "2023-04-30T09:53:01Z")

</div>

Hi everyone, I have a module A that simply define a function module A """ f(config::ConnectionConfiguration) Connects to the database using the given configuration. """ function connect end end Now from modul…

---

## [Prefixing output columns which are returned as Dataframe](https://discourse.julialang.org/t/prefixing-output-columns-which-are-returned-as-dataframe/98098)

<div class="topic-metadata">

**Author:** [@mreichMPI-BGC](https://discourse.julialang.org/u/mreichMPI-BGC)\
**Replies:** 9\
**Last updated:** [April 30, 2023, 9:36am UTC](https://discourse.julialang.org/t/prefixing-output-columns-which-are-returned-as-dataframe/98098 "2023-04-30T09:36:31Z")

</div>

Sorry, I am stuck a bit…: Suppose I have a function that takes Vectors and returns a DataFrame of the same length as the Vectors (e.g. my calc function below). function calc(x1,x2) y1 = accumulate(+, x1+x2 .+ 0.1ra…

---

## [Probability Outcomes Plot with JULIA for Fair Coin Tossing](https://discourse.julialang.org/t/probability-outcomes-plot-with-julia-for-fair-coin-tossing/94663)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 28\
**Last updated:** [April 30, 2023, 8:52am UTC](https://discourse.julialang.org/t/probability-outcomes-plot-with-julia-for-fair-coin-tossing/94663 "2023-04-30T08:52:03Z")

</div>

Hi all, I want to plot the possible outcomes of tossing a fair coin for n times. If three times tossed then it should be like this graph: Which package in Julia can make this kind of graph?

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

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