# Latest

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

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

**Page:** 947

---

## [How do you train a machine on several datasets](https://discourse.julialang.org/t/how-do-you-train-a-machine-on-several-datasets/85952)

<div class="topic-metadata">

**Author:** [@hpaldan](https://discourse.julialang.org/u/hpaldan)\
**Replies:** 2\
**Last updated:** [August 22, 2022, 6:18am UTC](https://discourse.julialang.org/t/how-do-you-train-a-machine-on-several-datasets/85952 "2022-08-22T06:18:09Z")

</div>

Hello! I’m new to the MLJ package but I gather that a fundamental aspect is that when you create a machine object you also define the data for the object. I’m in a situation where I have several very large dataframes th…

---

## [Enzyme.jl plus parallelstencil.jl?](https://discourse.julialang.org/t/enzyme-jl-plus-parallelstencil-jl/84310)

<div class="topic-metadata">

**Author:** [@Jakub\_Mitura](https://discourse.julialang.org/u/Jakub_Mitura)\
**Replies:** 5\
**Last updated:** [August 22, 2022, 6:09am UTC](https://discourse.julialang.org/t/enzyme-jl-plus-parallelstencil-jl/84310 "2022-08-22T06:09:25Z")

</div>

Anybody tried parallelstencil.jl cuda kernels differentiation with enzyme.jl ? Since python 1.7 enzyme supports Cuda.jl kernels so in pronciple I suppose it should be possible ?

---

## [Trouble coding a continuous / discrete 'mixture model' in Turing](https://discourse.julialang.org/t/trouble-coding-a-continuous-discrete-mixture-model-in-turing/86009)

<div class="topic-metadata">

**Author:** [@eduardo-zambrano](https://discourse.julialang.org/u/eduardo-zambrano)\
**Replies:** 20\
**Last updated:** [August 22, 2022, 4:07am UTC](https://discourse.julialang.org/t/trouble-coding-a-continuous-discrete-mixture-model-in-turing/86009 "2022-08-22T04:07:11Z")

</div>

Hi!. I have a generative process of the following kind: it generates a number of zeros, and then Normal draws, up to 1000, as follows: μ, σ, α, N = 0, 1, 0.3, 1000 # Parameters of the generative process logistic(x) = …

---

## [Network flow problem in JuMP](https://discourse.julialang.org/t/network-flow-problem-in-jump/86108)

<div class="topic-metadata">

**Author:** [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Replies:** 3\
**Last updated:** [August 22, 2022, 2:18am UTC](https://discourse.julialang.org/t/network-flow-problem-in-jump/86108 "2022-08-22T02:18:53Z")

</div>

Dear all, I have the shortest path problem coded in JuMP as follows: using JuMP import HiGHS import LinearAlgebra G = \[ 0 100 30 0 0 0 0 20 0 0 0 0 0 10 60 0 15 0 0 50 0 0 0 0 0 \] n = size(G)\[1\] s…

---

## [\`deleteat!\` does not support \`BitVector\` in Julia 1.6.7 (LTS)](https://discourse.julialang.org/t/deleteat-does-not-support-bitvector-in-julia-1-6-7-lts/86107)

<div class="topic-metadata">

**Author:** [@frankwswang](https://discourse.julialang.org/u/frankwswang)\
**Replies:** 6\
**Last updated:** [August 21, 2022, 10:46pm UTC](https://discourse.julialang.org/t/deleteat-does-not-support-bitvector-in-julia-1-6-7-lts/86107 "2022-08-21T22:46:52Z")

</div>

MWE: julia\> c = iseven.(rand(Int, 4)) 4-element BitVector: 1 1 0 0 julia\> deleteat!(c, \[false, false, false, false\]) ERROR: BoundsError: attempt to access 4-element BitVector at index \[false\] This error does not o…

---

## [Capturing available data written to redirected STDOUT and/or STDERR](https://discourse.julialang.org/t/capturing-available-data-written-to-redirected-stdout-and-or-stderr/6378)

<div class="topic-metadata">

**Author:** [@ScottPJones](https://discourse.julialang.org/u/ScottPJones)\
**Replies:** 4\
**Last updated:** [August 21, 2022, 7:26pm UTC](https://discourse.julialang.org/t/capturing-available-data-written-to-redirected-stdout-and-or-stderr/6378 "2022-08-21T19:26:51Z")

</div>

I’ve tried to write a set of functions that redirect both STDOUT and/or STDERR (capture\_stderr, capture\_stdout, capture\_console), and return with the data as a string (we use this for testing purposes). I had originally…

---

## [Track variables within DifferentialEquations.jl function](https://discourse.julialang.org/t/track-variables-within-differentialequations-jl-function/35777)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 22\
**Last updated:** [August 21, 2022, 7:19pm UTC](https://discourse.julialang.org/t/track-variables-within-differentialequations-jl-function/35777 "2022-08-21T19:19:14Z")

</div>

Hi, I have a simple function to solve: using DifferejntialEquations, Plots, BenchmarkTools var = \[\] function coupledd!(du, u, p, t) α, β, D1, D2 = p c1, c2 = u dc1 = α\*c1 + D1 \* (c2-c1) dc2 = β\*c2 + …

---

## [Plotting Half of a Upper Triangular Matrix](https://discourse.julialang.org/t/plotting-half-of-a-upper-triangular-matrix/86098)

<div class="topic-metadata">

**Author:** [@xztt](https://discourse.julialang.org/u/xztt)\
**Replies:** 2\
**Last updated:** [August 21, 2022, 6:53pm UTC](https://discourse.julialang.org/t/plotting-half-of-a-upper-triangular-matrix/86098 "2022-08-21T18:53:13Z")

</div>

Hi, I am plotting an upper triangular matrix where the bottom half of the matrix is full of zeros. The heatmap as it currently stands looks like the following I would like to just essentially fold this in half howeve…

---

## [Difference between allowrankdeficient and dropcollinear in lm function](https://discourse.julialang.org/t/difference-between-allowrankdeficient-and-dropcollinear-in-lm-function/86047)

<div class="topic-metadata">

**Author:** [@valperez](https://discourse.julialang.org/u/valperez)\
**Replies:** 2\
**Last updated:** [August 21, 2022, 6:44pm UTC](https://discourse.julialang.org/t/difference-between-allowrankdeficient-and-dropcollinear-in-lm-function/86047 "2022-08-21T18:44:04Z")

</div>

Hi there! I have a question regarding the documentation of the GLM package. I want to use the function lm(formula, data, allowrankdeficient=false; \[wts::AbstractVector\], dropcollinear::Bool=true) but I have a doubt…

---

## [Plot's won't show in VSC but in REPL](https://discourse.julialang.org/t/plots-wont-show-in-vsc-but-in-repl/86062)

<div class="topic-metadata">

**Author:** [@RobinKoehne](https://discourse.julialang.org/u/RobinKoehne)\
**Replies:** 8\
**Last updated:** [August 21, 2022, 5:41pm UTC](https://discourse.julialang.org/t/plots-wont-show-in-vsc-but-in-repl/86062 "2022-08-21T17:41:33Z")

</div>

Hello Guys. I’m quite new to Julia Programming and i have a Question. I have a .csv file which i want to extract some datas from. My Code is working just fine in the REPL, but as soon as i try to run the same Code in VSC…

---

## [Pluto and WGLMakie error](https://discourse.julialang.org/t/pluto-and-wglmakie-error/86093)

<div class="topic-metadata">

**Author:** [@contradict](https://discourse.julialang.org/u/contradict)\
**Replies:** 0\
**Last updated:** [August 21, 2022, 4:12pm UTC](https://discourse.julialang.org/t/pluto-and-wglmakie-error/86093 "2022-08-21T16:12:58Z")

</div>

I am getting a new error when trying to use WGLMakie inside Pluto and no plot output. I haven’t been able to find a discussion of this error and it seems to happen in a new environment with just Pluto. julia\> versioninf…

---

## [Query CDF and quantiles for MCMC Chains](https://discourse.julialang.org/t/query-cdf-and-quantiles-for-mcmc-chains/86088)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 4\
**Last updated:** [August 21, 2022, 3:12pm UTC](https://discourse.julialang.org/t/query-cdf-and-quantiles-for-mcmc-chains/86088 "2022-08-21T15:12:09Z")

</div>

I have a Chains object chain\_normal: julia\> @show chain\_normal chain\_normal = MCMC chain (1000×14×4 Array{Float64, 3}) Chains MCMC chain (1000×14×4 Array{Float64, 3}): Iterations = 501:1:1500 Number of chains =…

---

## [Non commutative variables Symbolics.jl](https://discourse.julialang.org/t/non-commutative-variables-symbolics-jl/86089)

<div class="topic-metadata">

**Author:** [@qwerty](https://discourse.julialang.org/u/qwerty)\
**Replies:** 1\
**Last updated:** [August 21, 2022, 2:46pm UTC](https://discourse.julialang.org/t/non-commutative-variables-symbolics-jl/86089 "2022-08-21T14:46:10Z")

</div>

I don’t understand how to work with variables that don’t commute. It would be nice if there was documentation with examples of non-commutativity with Symbolics.jl. Two particular examples would be useful: -there are v…

---

## [Some questions about eachoverlap in GenomicFeatures.jl](https://discourse.julialang.org/t/some-questions-about-eachoverlap-in-genomicfeatures-jl/85977)

<div class="topic-metadata">

**Author:** [@zhangchunyong](https://discourse.julialang.org/u/zhangchunyong)\
**Replies:** 4\
**Last updated:** [August 21, 2022, 12:25pm UTC](https://discourse.julialang.org/t/some-questions-about-eachoverlap-in-genomicfeatures-jl/85977 "2022-08-21T12:25:06Z")

</div>

During using the eachoverlap function in GenomicFeatures,I cannot know how to solve this problem. My problem is :if each interval in “col” contains any interval in “hhh” ,I will output interval "col ".Here is the pict…

---

## [GenomicVectors.jl](https://discourse.julialang.org/t/genomicvectors-jl/86084)

<div class="topic-metadata">

**Author:** [@zhangchunyong](https://discourse.julialang.org/u/zhangchunyong)\
**Replies:** 0\
**Last updated:** [August 21, 2022, 11:55am UTC](https://discourse.julialang.org/t/genomicvectors-jl/86084 "2022-08-21T11:55:22Z")

</div>

When I installed the packge named GenomicVectors，I got the error like the picture. When I removed the package XAM,I can install GenomicVectors,however it’s not the newest.It’s 0.4 and I can not install the XMA at al…

---

## [Standalone app: how to embed julia by calling DLL in c/c++](https://discourse.julialang.org/t/standalone-app-how-to-embed-julia-by-calling-dll-in-c-c/85088)

<div class="topic-metadata">

**Author:** [@islent](https://discourse.julialang.org/u/islent)\
**Replies:** 6\
**Last updated:** [August 21, 2022, 11:07am UTC](https://discourse.julialang.org/t/standalone-app-how-to-embed-julia-by-calling-dll-in-c-c/85088 "2022-08-21T11:07:51Z")

</div>

Following instructions from the doc: Libraries · PackageCompiler, I have successfully built julia package to DLL. However, I did not find a way to link the final executable in my Visual Studio C++ project: I got LNK2019 …

---

## [Best way to use CuSparseMatrixBSR](https://discourse.julialang.org/t/best-way-to-use-cusparsematrixbsr/86075)

<div class="topic-metadata">

**Author:** [@April-Hannah-Lena](https://discourse.julialang.org/u/April-Hannah-Lena)\
**Replies:** 7\
**Last updated:** [August 21, 2022, 9:42am UTC](https://discourse.julialang.org/t/best-way-to-use-cusparsematrixbsr/86075 "2022-08-21T09:42:12Z")

</div>

I’ve been writing a set of kernels in which I calculate many small (mostly on the order of ~10x10) square matrices column by column, like in this toy example using CUDA # each slice L\[:, :, j\] is a matrix of interest L…

---

## [Nested async and sync](https://discourse.julialang.org/t/nested-async-and-sync/86063)

<div class="topic-metadata">

**Author:** [@wuxinyu](https://discourse.julialang.org/u/wuxinyu)\
**Replies:** 1\
**Last updated:** [August 21, 2022, 5:17am UTC](https://discourse.julialang.org/t/nested-async-and-sync/86063 "2022-08-21T05:17:25Z")

</div>

I want to do multi Task (A,B) pairs which have no connections with each other. Each Task A include multi Task a. Task A has to be done before B start in the same one (A,B) pair. So it’s like @async for loop do multi (A,…

---

## [Suggestion: introduce something like a @inferable or @typestable macro to the language](https://discourse.julialang.org/t/suggestion-introduce-something-like-a-inferable-or-typestable-macro-to-the-language/86042)

<div class="topic-metadata">

**Author:** [@zp3](https://discourse.julialang.org/u/zp3)\
**Replies:** 30\
**Last updated:** [August 21, 2022, 1:14am UTC](https://discourse.julialang.org/t/suggestion-introduce-something-like-a-inferable-or-typestable-macro-to-the-language/86042 "2022-08-21T01:14:16Z")

</div>

Hi, I’m quite new to Julia and so far I can say that I fairly like the language. Especially, the generic programming ability in combination with multiple-dispatch is a great idea which I explicitly love. :yum: That sai…

---

## [Unable to properly build RCall](https://discourse.julialang.org/t/unable-to-properly-build-rcall/86078)

<div class="topic-metadata">

**Author:** [@aaportel](https://discourse.julialang.org/u/aaportel)\
**Replies:** 1\
**Last updated:** [August 20, 2022, 10:45pm UTC](https://discourse.julialang.org/t/unable-to-properly-build-rcall/86078 "2022-08-20T22:45:36Z")

</div>

I’m attempting to follow these tutorials, but when it comes time to add these packages: BenchmarkTools DataFrames DelimitedFiles CSV XLSX Downloads I get into an error when trying to add the RCall dependancy. I try the…

---

## [\[ANN\]: \`StandaloneIpopt.jl\`: Another option for using Ipopt in Julia](https://discourse.julialang.org/t/ann-standaloneipopt-jl-another-option-for-using-ipopt-in-julia/86014)

<div class="topic-metadata">

**Author:** [@cgeoga](https://discourse.julialang.org/u/cgeoga)\
**Replies:** 3\
**Last updated:** [August 20, 2022, 10:09pm UTC](https://discourse.julialang.org/t/ann-standaloneipopt-jl-another-option-for-using-ipopt-in-julia/86014 "2022-08-20T22:09:11Z")

</div>

Hey all—just wanted to quickly announce a new package in the official registries called StandaloneIpopt.jl. As the name suggests, it is a lightweight package that provides two functions: ipopt\_optimize and ipopt\_nlsolve. …

---

## [ERROR: UndefVarError: readdlm not defined](https://discourse.julialang.org/t/error-undefvarerror-readdlm-not-defined/24552)

<div class="topic-metadata">

**Author:** [@phylofun](https://discourse.julialang.org/u/phylofun)\
**Replies:** 3\
**Last updated:** [August 20, 2022, 9:59pm UTC](https://discourse.julialang.org/t/error-undefvarerror-readdlm-not-defined/24552 "2022-08-20T21:59:11Z")

</div>

I get this message when I try doing an analysis using Julia 1.1: ERROR: UndefVarError: readdlm not defined I tried using DelimitedFiles as suggested elsewhere (error in read data in JULIA v1.0) but received the same er…

---

## [Text! in Makie](https://discourse.julialang.org/t/text-in-makie/86074)

<div class="topic-metadata">

**Author:** [@xztt](https://discourse.julialang.org/u/xztt)\
**Replies:** 2\
**Last updated:** [August 20, 2022, 9:01pm UTC](https://discourse.julialang.org/t/text-in-makie/86074 "2022-08-20T21:01:06Z")

</div>

Given I have multiple plots in one figure can someone tell me why the following does not work. using CairoMakie fig = Figure() ax1 = Axis(fig\[1, 1\]) ax2 = Axis(fig\[1, 2\]) ax3 = Axis(fig\[2, 1:2\]) lines!(ax1, 0..10, sin)…

---

## [Wrap Julia package in Python: which is the best option?](https://discourse.julialang.org/t/wrap-julia-package-in-python-which-is-the-best-option/79344)

<div class="topic-metadata">

**Author:** [@marcobonici](https://discourse.julialang.org/u/marcobonici)\
**Replies:** 14\
**Last updated:** [August 20, 2022, 8:55pm UTC](https://discourse.julialang.org/t/wrap-julia-package-in-python-which-is-the-best-option/79344 "2022-08-20T20:55:34Z")

</div>

I have written some modules in Julia that I’d like to call from Python. While this is not an issue per se, I’d like to be able to call those packages without having Julia installed. Although this may look as a weird req…

---

## [Julia kernel doesn't connect when using jupyter](https://discourse.julialang.org/t/julia-kernel-doesnt-connect-when-using-jupyter/86052)

<div class="topic-metadata">

**Author:** [@aaportel](https://discourse.julialang.org/u/aaportel)\
**Replies:** 9\
**Last updated:** [August 20, 2022, 8:37pm UTC](https://discourse.julialang.org/t/julia-kernel-doesnt-connect-when-using-jupyter/86052 "2022-08-20T20:37:46Z")

</div>

Hi all, I’m doing my darndest to try and use Julia with jupyter as ssh’ing through an iPad is all I have access to. I have finally been able to install Julia and IJulia without precompile errors on the host computer in …

---

## [Testing async tasks](https://discourse.julialang.org/t/testing-async-tasks/23613)

<div class="topic-metadata">

**Author:** [@MaxPauer](https://discourse.julialang.org/u/MaxPauer)\
**Replies:** 1\
**Last updated:** [August 20, 2022, 7:42pm UTC](https://discourse.julialang.org/t/testing-async-tasks/23613 "2022-08-20T19:42:02Z")

</div>

Consider the following example: using Test function fail(fail::Bool) @test !fail end @testset "task\_good" begin task = @async fail(false) fetch(task) end @testset "task\_bad" begin task = @async fail(true) fetch(…

---

## [Turing NUTS chains getting stuck at the parameter bounds](https://discourse.julialang.org/t/turing-nuts-chains-getting-stuck-at-the-parameter-bounds/85947)

<div class="topic-metadata">

**Author:** [@fkrauer](https://discourse.julialang.org/u/fkrauer)\
**Replies:** 43\
**Last updated:** [August 20, 2022, 6:55pm UTC](https://discourse.julialang.org/t/turing-nuts-chains-getting-stuck-at-the-parameter-bounds/85947 "2022-08-20T18:55:16Z")

</div>

Hi all I have a medium sized ODE model with four estimated parameters, and I have problems with chain convergence when using Turing (NUTS) for inference. Depending on the initial draws, some chains converge, and some ch…

---

## [Flipping the y-axis of heatmap in CairoMakie](https://discourse.julialang.org/t/flipping-the-y-axis-of-heatmap-in-cairomakie/86055)

<div class="topic-metadata">

**Author:** [@Xavier\_Gonzalez](https://discourse.julialang.org/u/Xavier_Gonzalez)\
**Replies:** 3\
**Last updated:** [August 20, 2022, 5:56pm UTC](https://discourse.julialang.org/t/flipping-the-y-axis-of-heatmap-in-cairomakie/86055 "2022-08-20T17:56:45Z")

</div>

I am trying to flip the y-axis in some heatmaps. The below code (when I have only one heatmap) works fine: begin fig = Figure(resolution=(600, 600)) ax = Axis(fig\[1, 1\]) hm = heatmap!(fig\[1,1\],mat) cb = Colorbar(fi…

---

## [Does this style of “property broadcasting” already exist?](https://discourse.julialang.org/t/does-this-style-of-property-broadcasting-already-exist/85288)

<div class="topic-metadata">

**Author:** [@Jollywatt](https://discourse.julialang.org/u/Jollywatt)\
**Replies:** 3\
**Last updated:** [August 20, 2022, 5:52pm UTC](https://discourse.julialang.org/t/does-this-style-of-property-broadcasting-already-exist/85288 "2022-08-20T17:52:09Z")

</div>

Hi Julians, I’ve found myself wanting convenient ways to manipulate arrays of struct-like objects, such as: julia\> df = \[(x = 1,), (x = 2,), (x = 3,), (x = 4,), (x = 5,)\]; julia\> “df.y = df.x .^ 2” # pseudocode 5-elem…

---

## [MethodOfLines.jl: time derivative as initial conditions](https://discourse.julialang.org/t/methodoflines-jl-time-derivative-as-initial-conditions/86053)

<div class="topic-metadata">

**Author:** [@Molox](https://discourse.julialang.org/u/Molox)\
**Replies:** 4\
**Last updated:** [August 20, 2022, 5:08pm UTC](https://discourse.julialang.org/t/methodoflines-jl-time-derivative-as-initial-conditions/86053 "2022-08-20T17:08:56Z")

</div>

Hi, I am using MethodOfLines.jl for solving the beam vibration PDE. I need to implement an initial condition that the initial velocity is zero, or Dt(u(t=0,x)) ~ 0. I tried to put it into the bcs but failed. The prob…

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

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