# Latest

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

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

**Page:** 564

---

## [\[Call for Collaborators\]: Tool for Extracting Treatment Pathways in Patient Populations Standardized in the OMOP CDM](https://discourse.julialang.org/t/call-for-collaborators-tool-for-extracting-treatment-pathways-in-patient-populations-standardized-in-the-omop-cdm/105704)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 0\
**Last updated:** [November 2, 2023, 2:34pm UTC](https://discourse.julialang.org/t/call-for-collaborators-tool-for-extracting-treatment-pathways-in-patient-populations-standardized-in-the-omop-cdm/105704 "2023-11-02T14:34:34Z")

</div>

Hi folks :wave: This is a call for collaborators for a project I am starting! I’d love collaborators on this work if you are interested in the idea; I’ll be working on it at any rate! Details as follows: Title: Tool f…

---

## [Stackoverflow error with no stacktrace](https://discourse.julialang.org/t/stackoverflow-error-with-no-stacktrace/105690)

<div class="topic-metadata">

**Author:** [@Larbino1](https://discourse.julialang.org/u/Larbino1)\
**Replies:** 3\
**Last updated:** [November 2, 2023, 1:21pm UTC](https://discourse.julialang.org/t/stackoverflow-error-with-no-stacktrace/105690 "2023-11-02T13:21:00Z")

</div>

I’m experienceing a strange bug which results in a stack overflow error with no stacktrace at all. I’m not sure how or why this happens, and I have found it impossible to diagnose. I haven’t been able to reprodruce the b…

---

## [Is mailinglist/discourse activity a good indicator of the health of an open source project?](https://discourse.julialang.org/t/is-mailinglist-discourse-activity-a-good-indicator-of-the-health-of-an-open-source-project/105697)

<div class="topic-metadata">

**Author:** [@frylock](https://discourse.julialang.org/u/frylock)\
**Replies:** 0\
**Last updated:** [November 2, 2023, 12:42pm UTC](https://discourse.julialang.org/t/is-mailinglist-discourse-activity-a-good-indicator-of-the-health-of-an-open-source-project/105697 "2023-11-02T12:42:30Z")

</div>

This question is not about Julia. The discourse site here is great, one of the biggest draws for me to Julia (other than the language itself). I’m evaluating another well-known and old project for use at work that has l…

---

## [Geometric Constraints and Collision Detection](https://discourse.julialang.org/t/geometric-constraints-and-collision-detection/105695)

<div class="topic-metadata">

**Author:** [@InesP](https://discourse.julialang.org/u/InesP)\
**Replies:** 0\
**Last updated:** [November 2, 2023, 12:20pm UTC](https://discourse.julialang.org/t/geometric-constraints-and-collision-detection/105695 "2023-11-02T12:20:13Z")

</div>

Hey :blush: I have a few questions about the Agents.jl and collision implementation. I am using the Agents.jl library to model crowd dynamics in closed and geometrically constrained spaces. My first approach to this pro…

---

## [Threads, synchronization, consistency](https://discourse.julialang.org/t/threads-synchronization-consistency/105682)

<div class="topic-metadata">

**Author:** [@loisel](https://discourse.julialang.org/u/loisel)\
**Replies:** 8\
**Last updated:** [November 2, 2023, 12:11pm UTC](https://discourse.julialang.org/t/threads-synchronization-consistency/105682 "2023-11-02T12:11:58Z")

</div>

I’m following the documentation here. I’ve run this code from the documentation: n = 10 a = zeros(n) Threads.@threads for i = 1:n a\[i\] = Threads.threadid() end a I’m aware of and also have used @spawn, I don’t thi…

---

## [How to plot a sequence of probability density functions as lines in (pseudo) 3D?](https://discourse.julialang.org/t/how-to-plot-a-sequence-of-probability-density-functions-as-lines-in-pseudo-3d/105614)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 7\
**Last updated:** [November 2, 2023, 11:42am UTC](https://discourse.julialang.org/t/how-to-plot-a-sequence-of-probability-density-functions-as-lines-in-pseudo-3d/105614 "2023-11-02T11:42:25Z")

</div>

Given a set of PDFs f1(x), f2(x) etc., I’d like to plot something like this: The closest method I found is density from Makie, but it doesn’t work with functions or their values per se. How can I make such a plot?

---

## [Avoid Dynamic Dispatch](https://discourse.julialang.org/t/avoid-dynamic-dispatch/105685)

<div class="topic-metadata">

**Author:** [@AlexanderNenninger](https://discourse.julialang.org/u/AlexanderNenninger)\
**Replies:** 2\
**Last updated:** [November 2, 2023, 11:05am UTC](https://discourse.julialang.org/t/avoid-dynamic-dispatch/105685 "2023-11-02T11:05:09Z")

</div>

For some tensor operations I need to keep track of partial indices and call out to user supplied functions. In principle the type of all arguments can be inferred statically, but Julia doesn’t seem to do that, leading to…

---

## [Converting a symbolic transfer function to a TransferFunction](https://discourse.julialang.org/t/converting-a-symbolic-transfer-function-to-a-transferfunction/103740)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 16\
**Last updated:** [November 2, 2023, 8:34am UTC](https://discourse.julialang.org/t/converting-a-symbolic-transfer-function-to-a-transferfunction/103740 "2023-11-02T08:34:36Z")

</div>

Hello, any idea how to convert the following transfer function: julia\> res (-9.770075179266223e-8(s^4) - 2.543931256784638e-6(s^5) - 3.198336516372632e-5(s^6) - 0.00019354918819587642(s^7) - 0.000453357561824716(s^8)) …

---

## [Makie series plot with only one label for legend?](https://discourse.julialang.org/t/makie-series-plot-with-only-one-label-for-legend/105403)

<div class="topic-metadata">

**Author:** [@matthew3245](https://discourse.julialang.org/u/matthew3245)\
**Replies:** 3\
**Last updated:** [November 2, 2023, 5:13am UTC](https://discourse.julialang.org/t/makie-series-plot-with-only-one-label-for-legend/105403 "2023-11-02T05:13:16Z")

</div>

Does anyone know if its possible to make a series plot that includes only one label for the whole series (instead of an array of labels that get displayed on the legend). For example, say I had some experimental trial d…

---

## [How to get the path of a Julia script](https://discourse.julialang.org/t/how-to-get-the-path-of-a-julia-script/1728)

<div class="topic-metadata">

**Author:** [@willow](https://discourse.julialang.org/u/willow)\
**Replies:** 7\
**Last updated:** [November 2, 2023, 2:29am UTC](https://discourse.julialang.org/t/how-to-get-the-path-of-a-julia-script/1728 "2023-11-02T02:29:02Z")

</div>

I have found a small inconsistency in the google group lists. When you type “julia get directory of script” into a google search box (finding a way to programmatically determine the file path of the currently executing s…

---

## [This month in Julia world - 2023-10](https://discourse.julialang.org/t/this-month-in-julia-world-2023-10/105656)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 1\
**Last updated:** [November 2, 2023, 1:21am UTC](https://discourse.julialang.org/t/this-month-in-julia-world-2023-10/105656 "2023-11-02T01:21:22Z")

</div>

A monthly newsletter, mostly on julia internals, digestible for casual observers. A biased, incomplete, editorialized list of what I found interesting this month, with contributions from the community. “Internals” Fora …

---

## [Transform several columns of an MLJ model using one transformer](https://discourse.julialang.org/t/transform-several-columns-of-an-mlj-model-using-one-transformer/105338)

<div class="topic-metadata">

**Author:** [@ParadaCarleton](https://discourse.julialang.org/u/ParadaCarleton)\
**Replies:** 13\
**Last updated:** [November 2, 2023, 1:02am UTC](https://discourse.julialang.org/t/transform-several-columns-of-an-mlj-model-using-one-transformer/105338 "2023-11-02T01:02:39Z")

</div>

Is there an easy way to transform several columns of a table using the same MLJ transformer? So if I have a transformer like UnivariateBoxCoxTransformer, I’d like to apply it only to columns 2, 3, and 4. Alternatively, …

---

## [Best Discrete Simulation Learning path](https://discourse.julialang.org/t/best-discrete-simulation-learning-path/105132)

<div class="topic-metadata">

**Author:** [@ameresv](https://discourse.julialang.org/u/ameresv)\
**Replies:** 3\
**Last updated:** [November 2, 2023, 12:15am UTC](https://discourse.julialang.org/t/best-discrete-simulation-learning-path/105132 "2023-11-02T00:15:50Z")

</div>

Hi folks! I seek suggestions for the best learning path of Discrete Simulation in Julia. Is there any book that you could suggest? I find that there are two packages: DiscreteEvents.jl and Simulate.jl; which is the mo…

---

## [Transform dataframes to suit confusion matrix plotting](https://discourse.julialang.org/t/transform-dataframes-to-suit-confusion-matrix-plotting/105677)

<div class="topic-metadata">

**Author:** [@Cong](https://discourse.julialang.org/u/Cong)\
**Replies:** 0\
**Last updated:** [November 2, 2023, 12:12am UTC](https://discourse.julialang.org/t/transform-dataframes-to-suit-confusion-matrix-plotting/105677 "2023-11-02T00:12:27Z")

</div>

I have a dataframe like the one below, and I would like to transform it to plot a confusion matrix. :TopL, :TopR, :BotL, :BotR are the four choices, and each time two and only two of them will be presented. :portChoice …

---

## [What does \`density()\` do when applied to a \`Distribution\` directly?](https://discourse.julialang.org/t/what-does-density-do-when-applied-to-a-distribution-directly/105621)

<div class="topic-metadata">

**Author:** [@Alseidon](https://discourse.julialang.org/u/Alseidon)\
**Replies:** 6\
**Last updated:** [November 1, 2023, 10:18pm UTC](https://discourse.julialang.org/t/what-does-density-do-when-applied-to-a-distribution-directly/105621 "2023-11-01T22:18:12Z")

</div>

I just started experimenting with Distributions.jl and StatsPlots.jl, and made a basic mistake, writing density(Normal()) instead of density(rand(Normal(), 100\_000)) or plot(Normal()). When executing julia\> plot(Normal(…

---

## [How to determine the coefficients of a polynom](https://discourse.julialang.org/t/how-to-determine-the-coefficients-of-a-polynom/105648)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 7\
**Last updated:** [November 1, 2023, 9:09pm UTC](https://discourse.julialang.org/t/how-to-determine-the-coefficients-of-a-polynom/105648 "2023-11-01T21:09:34Z")

</div>

How can I determine the coefficients of a polynom? using Symbolics @variables R a b c d U J Q s input = 2s + 4U\*a\*s^2 + Q\*(J+s) function split\_s(input::Num) end res = split\_s(input) # expected output: # the factors…

---

## [Cairo text functions discrepancies](https://discourse.julialang.org/t/cairo-text-functions-discrepancies/105635)

<div class="topic-metadata">

**Author:** [@RaulDurand](https://discourse.julialang.org/u/RaulDurand)\
**Replies:** 2\
**Last updated:** [November 1, 2023, 6:22pm UTC](https://discourse.julialang.org/t/cairo-text-functions-discrepancies/105635 "2023-11-01T18:22:54Z")

</div>

I am testing the different text drawing functions in Cairo.jl: show\_text, text, and text\_path. The text function is the only one that produces the wrong size and is positioned at a distance from the insertion point (see …

---

## [How would I retrieve the result from CUDA.@profile?](https://discourse.julialang.org/t/how-would-i-retrieve-the-result-from-cuda-profile/105548)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 7\
**Last updated:** [November 1, 2023, 5:20pm UTC](https://discourse.julialang.org/t/how-would-i-retrieve-the-result-from-cuda-profile/105548 "2023-11-01T17:20:45Z")

</div>

Hi! Checking out the new release of CUDA.jl, which really has made profiling a lot easier! Much appreciated. I was wondering though, how do I retrieve the result from the profiling? #https://info.juliahub.com/cuda-jl-5…

---

## [Easiest way to pkg add a pull request?](https://discourse.julialang.org/t/easiest-way-to-pkg-add-a-pull-request/76755)

<div class="topic-metadata">

**Author:** [@tbeason](https://discourse.julialang.org/u/tbeason)\
**Replies:** 10\
**Last updated:** [November 1, 2023, 4:16pm UTC](https://discourse.julialang.org/t/easiest-way-to-pkg-add-a-pull-request/76755 "2023-11-01T16:16:53Z")

</div>

What is the fastest way to \] add a pull request of a package? For example, if someone has contributed a fix to a package that I want to quickly test out, but that has not yet been merged.

---

## [Unexpected behavior when using Impute.locf within @by](https://discourse.julialang.org/t/unexpected-behavior-when-using-impute-locf-within-by/105642)

<div class="topic-metadata">

**Author:** [@BeitianMa](https://discourse.julialang.org/u/BeitianMa)\
**Replies:** 2\
**Last updated:** [November 1, 2023, 3:12pm UTC](https://discourse.julialang.org/t/unexpected-behavior-when-using-impute-locf-within-by/105642 "2023-11-01T15:12:24Z")

</div>

As the following code shows, i want to forward fill missing values use Impute.locf function, but just within the same :id using DataFramesMeta, Impute df = DataFrame(id = repeat(1:3, 2), value = \[1,missing,3,4,missing,…

---

## [Using a JuMP \`Bin\` vector to index an array (checkbounds fails with type VariableRef)](https://discourse.julialang.org/t/using-a-jump-bin-vector-to-index-an-array-checkbounds-fails-with-type-variableref/102674)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 15\
**Last updated:** [November 1, 2023, 3:15pm UTC](https://discourse.julialang.org/t/using-a-jump-bin-vector-to-index-an-array-checkbounds-fails-with-type-variableref/102674 "2023-11-01T15:15:28Z")

</div>

Hi there, I am following up from an earlier post \[ How to "prioritize" choosing some parameters over others in Hyperopt.jl or similar packages \] where I was instructed to use JuMP with decision variables. I have a simpl…

---

## [How to Handle Multiple Edges in a Routing Problem Using JuMP?](https://discourse.julialang.org/t/how-to-handle-multiple-edges-in-a-routing-problem-using-jump/104226)

<div class="topic-metadata">

**Author:** [@F\_A](https://discourse.julialang.org/u/F_A)\
**Replies:** 8\
**Last updated:** [October 30, 2023, 9:44pm UTC](https://discourse.julialang.org/t/how-to-handle-multiple-edges-in-a-routing-problem-using-jump/104226 "2023-10-30T21:44:33Z")

</div>

Hi all, I have a multiple edge graph and I want to solve a routing problem on that. I was wondering how to define a binary variables that accounts for all possible edges that exist between let’s say node i to node j. I…

---

## [Using Matlab from Julia](https://discourse.julialang.org/t/using-matlab-from-julia/105451)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 10\
**Last updated:** [November 1, 2023, 2:47pm UTC](https://discourse.julialang.org/t/using-matlab-from-julia/105451 "2023-11-01T14:47:43Z")

</div>

I am testing the package MATLAB.jl. This works: using MATLAB mat"1+1" This doesn’t work: julia\> mat"tf(\[1\],\[1,1\])" ERROR: ArgumentError: Unsupported kind of variable. Stacktrace: \[1\] jvalue(mx::MxArray) @ MATLAB …

---

## [Moving the "Accept Solution" button to the left](https://discourse.julialang.org/t/moving-the-accept-solution-button-to-the-left/105530)

<div class="topic-metadata">

**Author:** [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Replies:** 3\
**Last updated:** [November 1, 2023, 2:08pm UTC](https://discourse.julialang.org/t/moving-the-accept-solution-button-to-the-left/105530 "2023-11-01T14:08:52Z")

</div>

Accepting solutions is great! :heart:-ing posts is great! :heart:-ing posts on mobile is not great - it can very easily happen to accidentally mark a post as “solution” if you intend to :heart: instead. Can we do some C…

---

## [Compatablity Issue Between Versions of DuckDB](https://discourse.julialang.org/t/compatablity-issue-between-versions-of-duckdb/105624)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 11\
**Last updated:** [November 1, 2023, 1:33pm UTC](https://discourse.julialang.org/t/compatablity-issue-between-versions-of-duckdb/105624 "2023-11-01T13:33:38Z")

</div>

When i try to connect to my DuckDB database, I’m told that the version is wrong. IO Error: Trying to read a database file with version number 64, but we can only read version 51. The database file was created with an n…

---

## [DifferentialEquations: Gaussian error term in one of the equations makes it extremely slow (and error prone)](https://discourse.julialang.org/t/differentialequations-gaussian-error-term-in-one-of-the-equations-makes-it-extremely-slow-and-error-prone/105647)

<div class="topic-metadata">

**Author:** [@MvanSteenbergen](https://discourse.julialang.org/u/MvanSteenbergen)\
**Replies:** 2\
**Last updated:** [November 1, 2023, 12:02pm UTC](https://discourse.julialang.org/t/differentialequations-gaussian-error-term-in-one-of-the-equations-makes-it-extremely-slow-and-error-prone/105647 "2023-11-01T12:02:45Z")

</div>

Hey! For my thesis, I’m trying to implement this model in Julia, using the DifferentialEquations.jl package. I’ve made a rule based on a set of coupled differential equations to simulate some data. I have no previous k…

---

## [\[ANN\] QstarzGPS.jl : A package to ease loading GPS logs produced by a Qstarz GPS module](https://discourse.julialang.org/t/ann-qstarzgps-jl-a-package-to-ease-loading-gps-logs-produced-by-a-qstarz-gps-module/105616)

<div class="topic-metadata">

**Author:** [@lwabeke](https://discourse.julialang.org/u/lwabeke)\
**Replies:** 3\
**Last updated:** [November 1, 2023, 10:16am UTC](https://discourse.julialang.org/t/ann-qstarzgps-jl-a-package-to-ease-loading-gps-logs-produced-by-a-qstarz-gps-module/105616 "2023-11-01T10:16:17Z")

</div>

A few years ago a client suggested we look at using the Qstarz GPS modules to record location information as part of our experiments. This proved useful, however the workflow was typically something along the lines of: …

---

## [PlotlyJS updates](https://discourse.julialang.org/t/plotlyjs-updates/105153)

<div class="topic-metadata">

**Author:** [@jd-foster](https://discourse.julialang.org/u/jd-foster)\
**Replies:** 5\
**Last updated:** [November 1, 2023, 9:37am UTC](https://discourse.julialang.org/t/plotlyjs-updates/105153 "2023-11-01T09:37:31Z")

</div>

I recommend PlutoPlotly a lot to people here and elsewhere. But maybe you could expand on what the barriers are (technical or otherwise) to maybe integrating the codes of PlutoPlotly and PlotlyBase/PlotlyJS?

---

## [SlickEdit?](https://discourse.julialang.org/t/slickedit/105271)

<div class="topic-metadata">

**Author:** [@Leon6](https://discourse.julialang.org/u/Leon6)\
**Replies:** 1\
**Last updated:** [November 1, 2023, 9:06am UTC](https://discourse.julialang.org/t/slickedit/105271 "2023-11-01T09:06:14Z")

</div>

Any users of SlickEditor? Google claims it’s quite impressive, but the cost is somewhat steep. I’m curious if anyone might endorse it? Thanks.

---

## [Passing DataFrame with \`|\>\` to anonymous function changing size?](https://discourse.julialang.org/t/passing-dataframe-with-to-anonymous-function-changing-size/105300)

<div class="topic-metadata">

**Author:** [@hungpham3112](https://discourse.julialang.org/u/hungpham3112)\
**Replies:** 1\
**Last updated:** [November 1, 2023, 9:02am UTC](https://discourse.julialang.org/t/passing-dataframe-with-to-anonymous-function-changing-size/105300 "2023-11-01T09:02:52Z")

</div>

What I am doing is redirect the dataset through pipeline operator to show the 6 first lines. There is two difference versions below: Version 1: train\_df\_dropped = hcat(select(train\_df, Not(:type)), df) first(train\_df\_d…

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

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