# Latest

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

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

**Page:** 1004

---

## [Having problems to modifying a DataFrame using a for loop and eachcol](https://discourse.julialang.org/t/having-problems-to-modifying-a-dataframe-using-a-for-loop-and-eachcol/83143)

<div class="topic-metadata">

**Author:** [@Juan\_Mac\_Donagh](https://discourse.julialang.org/u/Juan_Mac_Donagh)\
**Replies:** 2\
**Last updated:** [June 21, 2022, 8:51pm UTC](https://discourse.julialang.org/t/having-problems-to-modifying-a-dataframe-using-a-for-loop-and-eachcol/83143 "2022-06-21T20:51:49Z")

</div>

Hi all, I am having some issues with this: I have a DataFrame that has a lot of columns that are strings, but I need to convert them to vectors of Ints, ie: df = DataFrame( Mtx\_1 = ("0 0 0 1 1 0"), Mtx\_2 = ("0 0 0 0 1 …

---

## [Precompilation and package compiler](https://discourse.julialang.org/t/precompilation-and-package-compiler/83141)

<div class="topic-metadata">

**Author:** [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Replies:** 4\
**Last updated:** [June 21, 2022, 8:37pm UTC](https://discourse.julialang.org/t/precompilation-and-package-compiler/83141 "2022-06-21T20:37:06Z")

</div>

Hello, we’re creating binaries using PackageCompiler.jl, and it’s working well, but… right now we have a script create\_precompile.jl which we use to create a build/MyPackage\_precompile.jl file full of precompile statemen…

---

## [CUDA.jl - Memory Efficient Operations, Manipulations and Calculations on Large Sparse Arrays](https://discourse.julialang.org/t/cuda-jl-memory-efficient-operations-manipulations-and-calculations-on-large-sparse-arrays/83091)

<div class="topic-metadata">

**Author:** [@moukann](https://discourse.julialang.org/u/moukann)\
**Replies:** 6\
**Last updated:** [June 21, 2022, 7:54pm UTC](https://discourse.julialang.org/t/cuda-jl-memory-efficient-operations-manipulations-and-calculations-on-large-sparse-arrays/83091 "2022-06-21T19:54:00Z")

</div>

Hello all, I formerly created this topic, my problem is continuing until this day: The problem is related to GPU RAM and its size. The global system is a square matrix, consisting of Float64 values. However, it is mos…

---

## [Repetitive, intrusive error in Juno: "MethodError: no method matching peekchar(::IOBuffer)"](https://discourse.julialang.org/t/repetitive-intrusive-error-in-juno-methoderror-no-method-matching-peekchar-iobuffer/76718)

<div class="topic-metadata">

**Author:** [@Jameson\_Quinn](https://discourse.julialang.org/u/Jameson_Quinn)\
**Replies:** 2\
**Last updated:** [June 21, 2022, 7:50pm UTC](https://discourse.julialang.org/t/repetitive-intrusive-error-in-juno-methoderror-no-method-matching-peekchar-iobuffer/76718 "2022-06-21T19:50:43Z")

</div>

I’m using Juno in Atom, with atom 1.59.0 x64 on a mac M1 Pro. Julia-client is version 0.12.6, and julia itself is version 1.7.1. I’m getting repetitive and intrusive errors, sometimes just when moving my mouse. These ap…

---

## [Prepending a type to an array](https://discourse.julialang.org/t/prepending-a-type-to-an-array/83140)

<div class="topic-metadata">

**Author:** [@Yly](https://discourse.julialang.org/u/Yly)\
**Replies:** 2\
**Last updated:** [June 21, 2022, 7:33pm UTC](https://discourse.julialang.org/t/prepending-a-type-to-an-array/83140 "2022-06-21T19:33:19Z")

</div>

In reading about mixture models in Distributions.jl, I found this code snippet: Normal\[ Normal(-2.0, 1.2), Normal(0.0, 1.0), Normal(3.0, 2.5)\] This syntax is unfamiliar to me. The only documentation I can fin…

---

## [Confusing plot titles with subplots](https://discourse.julialang.org/t/confusing-plot-titles-with-subplots/83127)

<div class="topic-metadata">

**Author:** [@polhager](https://discourse.julialang.org/u/polhager)\
**Replies:** 1\
**Last updated:** [June 21, 2022, 5:23pm UTC](https://discourse.julialang.org/t/confusing-plot-titles-with-subplots/83127 "2022-06-21T17:23:49Z")

</div>

Hello! I am trying to create a few rows of subplots, each row containing the same number of subplots as well as a title. I have done this with nested plots of lists. using Plots plotly() x = 0:0.01:10 n = 3 m = 5 plo…

---

## [Tracking down instant crashes with multithreading](https://discourse.julialang.org/t/tracking-down-instant-crashes-with-multithreading/82686)

<div class="topic-metadata">

**Author:** [@Jon\_Barker](https://discourse.julialang.org/u/Jon_Barker)\
**Replies:** 5\
**Last updated:** [June 21, 2022, 5:17pm UTC](https://discourse.julialang.org/t/tracking-down-instant-crashes-with-multithreading/82686 "2022-06-21T17:17:48Z")

</div>

Hi All, I’m working on converting a program from multi-process to multi-threading. I’ve been through the code and am very confident that everything works in its own memoryspace (not writing to the same variables at the…

---

## [How to turn off minor tick labels in PlotlyJS.jl](https://discourse.julialang.org/t/how-to-turn-off-minor-tick-labels-in-plotlyjs-jl/69301)

<div class="topic-metadata">

**Author:** [@deepakvinod](https://discourse.julialang.org/u/deepakvinod)\
**Replies:** 3\
**Last updated:** [June 21, 2022, 4:13pm UTC](https://discourse.julialang.org/t/how-to-turn-off-minor-tick-labels-in-plotlyjs-jl/69301 "2022-06-21T16:13:39Z")

</div>

Hi, I am trying to figure out how to turn off the minor tick labels in PlotlJS as they are too crowded and overlapping for log scale axes. I could not find anything here: Layout.xaxis in Julia Example: Any help/sug…

---

## [Stop allocating memory when replacing structs in for-loops](https://discourse.julialang.org/t/stop-allocating-memory-when-replacing-structs-in-for-loops/83125)

<div class="topic-metadata">

**Author:** [@Joseph\_Bradley](https://discourse.julialang.org/u/Joseph_Bradley)\
**Replies:** 5\
**Last updated:** [June 21, 2022, 3:40pm UTC](https://discourse.julialang.org/t/stop-allocating-memory-when-replacing-structs-in-for-loops/83125 "2022-06-21T15:40:38Z")

</div>

I’m working on a project where I have to simulate many systems and track some observable across the many systems. When I try to create new systems in for-loops, I end up getting allocations of O(n\_trials) when it isn’t n…

---

## [Julia for Education: Package Selection](https://discourse.julialang.org/t/julia-for-education-package-selection/82852)

<div class="topic-metadata">

**Author:** [@patrick](https://discourse.julialang.org/u/patrick)\
**Replies:** 36\
**Last updated:** [June 21, 2022, 2:58pm UTC](https://discourse.julialang.org/t/julia-for-education-package-selection/82852 "2022-06-21T14:58:36Z")

</div>

This thread is a continuation of discussions about using Julia for education in this thread and this thread. Some people, including myself, expressed the opinion that more clarity around the package ecosystem would make …

---

## [Pushfirst! for Channel](https://discourse.julialang.org/t/pushfirst-for-channel/83113)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 7\
**Last updated:** [June 21, 2022, 1:38pm UTC](https://discourse.julialang.org/t/pushfirst-for-channel/83113 "2022-06-21T13:38:53Z")

</div>

Hi all :slight\_smile: Is there an reason why the is no pushfirst! for Channel? Cheers

---

## [Organizing Julia code](https://discourse.julialang.org/t/organizing-julia-code/42081)

<div class="topic-metadata">

**Author:** [@alan](https://discourse.julialang.org/u/alan)\
**Replies:** 11\
**Last updated:** [June 21, 2022, 1:30pm UTC](https://discourse.julialang.org/t/organizing-julia-code/42081 "2022-06-21T13:30:33Z")

</div>

I understand that Julia projects conventionally have src and test directories. How does one connect the latter to the former? This works: include("../src/foo.jl") But perhaps there is a better way, involving some co…

---

## [Why Optim.seconds(res) does not exist?](https://discourse.julialang.org/t/why-optim-seconds-res-does-not-exist/83123)

<div class="topic-metadata">

**Author:** [@axel365](https://discourse.julialang.org/u/axel365)\
**Replies:** 1\
**Last updated:** [June 21, 2022, 1:29pm UTC](https://discourse.julialang.org/t/why-optim-seconds-res-does-not-exist/83123 "2022-06-21T13:29:06Z")

</div>

Almost all is in the title… With Optim.jl, wouldn’t it be useful to have a function that can access the number of seconds run for an optimization problem? If this exists already, i did not find it.

---

## [Makie: RGB legend colors](https://discourse.julialang.org/t/makie-rgb-legend-colors/83086)

<div class="topic-metadata">

**Author:** [@hendri54](https://discourse.julialang.org/u/hendri54)\
**Replies:** 5\
**Last updated:** [June 21, 2022, 12:16pm UTC](https://discourse.julialang.org/t/makie-rgb-legend-colors/83086 "2022-06-21T12:16:39Z")

</div>

How do I create legend entries in Makie using RBG colors? The following worked in CairoMakie 0.7: using CairoMakie, ColorSchemes f = Figure() Axis(f\[1, 1\]) labelV = \["lbl $j" for j = 1 : 3\]; n = length(labelV); elemen…

---

## [\[ANN\] Trixi.jl v0.3: SciML integration and a new modular approach for easy extension](https://discourse.julialang.org/t/ann-trixi-jl-v0-3-sciml-integration-and-a-new-modular-approach-for-easy-extension/50419)

<div class="topic-metadata">

**Author:** [@ranocha](https://discourse.julialang.org/u/ranocha)\
**Replies:** 81\
**Last updated:** [June 21, 2022, 11:09am UTC](https://discourse.julialang.org/t/ann-trixi-jl-v0-3-sciml-integration-and-a-new-modular-approach-for-easy-extension/50419 "2022-06-21T11:09:54Z")

</div>

Trixi.jl is a tree-based numerical simulation framework for hyperbolic PDEs in Julia. We have rewritten Trixi.jl completely to make it more modular and Julian - we made the transition from “Trixi as a monolith” to “Trixi…

---

## [Issue with example in DiffEqParamEstim.jl](https://discourse.julialang.org/t/issue-with-example-in-diffeqparamestim-jl/83067)

<div class="topic-metadata">

**Author:** [@Curio\_math](https://discourse.julialang.org/u/Curio_math)\
**Replies:** 2\
**Last updated:** [June 21, 2022, 10:03am UTC](https://discourse.julialang.org/t/issue-with-example-in-diffeqparamestim-jl/83067 "2022-06-21T10:03:53Z")

</div>

Hi, I am excited to try parameter estimation on my model using DiffEqParamEstim.jl package. I thought of trying out some examples in the documentation and then choose the best method for my model. But I found some of th…

---

## [Indexing a DataFrame with a boolean DataFrame](https://discourse.julialang.org/t/indexing-a-dataframe-with-a-boolean-dataframe/83108)

<div class="topic-metadata">

**Author:** [@CarloLucibello](https://discourse.julialang.org/u/CarloLucibello)\
**Replies:** 3\
**Last updated:** [June 21, 2022, 9:52am UTC](https://discourse.julialang.org/t/indexing-a-dataframe-with-a-boolean-dataframe/83108 "2022-06-21T09:52:32Z")

</div>

I would like to set some values across a whole datafame using a boolean mask, similarly to this example with plain arrays: julia\> x = rand(3, 3) 3×3 Matrix{Float64}: 0.0559191 0.249678 0.165318 0.845124 0.83681 …

---

## [Infeasibilities with economic dispatch model](https://discourse.julialang.org/t/infeasibilities-with-economic-dispatch-model/82571)

<div class="topic-metadata">

**Author:** [@mbah](https://discourse.julialang.org/u/mbah)\
**Replies:** 4\
**Last updated:** [June 21, 2022, 7:25am UTC](https://discourse.julialang.org/t/infeasibilities-with-economic-dispatch-model/82571 "2022-06-21T07:25:19Z")

</div>

Hello, I am currently working on a network economic dispatch model. The basic transport model below works with only conventional generators. However, whenever I add renewable injection constraints with hourly capacity f…

---

## [How to pretty print an InMemoryDataset?](https://discourse.julialang.org/t/how-to-pretty-print-an-inmemorydataset/82909)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [June 21, 2022, 4:02am UTC](https://discourse.julialang.org/t/how-to-pretty-print-an-inmemorydataset/82909 "2022-06-21T04:02:06Z")

</div>

When I print an InMemoryDataSet, how can I suppress the lines: Row │ time RTR addr d1 d2 data3 data4 data5 data6 │ identity identity hex hex2 hex2 hex2 hex2 …

---

## [Does Parameters.jl support a Varargs ... constuctor](https://discourse.julialang.org/t/does-parameters-jl-support-a-varargs-constuctor/83100)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 2\
**Last updated:** [June 21, 2022, 1:12am UTC](https://discourse.julialang.org/t/does-parameters-jl-support-a-varargs-constuctor/83100 "2022-06-21T01:12:07Z")

</div>

a,b,c = 1:3 @with\_kw mutable struct T a b end T(;a,b) works T(;a,b,c) fails Can the kwargs constructor have a Varargs component X... ? It allowed me to create one T(;a,b, X... ) = T(;a,b) B…

---

## [How to use Interact.jl to make sliders for reaction network parameters](https://discourse.julialang.org/t/how-to-use-interact-jl-to-make-sliders-for-reaction-network-parameters/83051)

<div class="topic-metadata">

**Author:** [@Dragolonth](https://discourse.julialang.org/u/Dragolonth)\
**Replies:** 3\
**Last updated:** [June 21, 2022, 12:18am UTC](https://discourse.julialang.org/t/how-to-use-interact-jl-to-make-sliders-for-reaction-network-parameters/83051 "2022-06-21T00:18:37Z")

</div>

Hi everyone. I’m learning Julia currently and have stumbled into a roadblock. I have a reaction network which I’ve defined in Catalyst. I’d like to use Interact to create sliders for the parameters to see how the traject…

---

## [How do I can I selectively inspect and use learned parameters in an MLJ pipeline?](https://discourse.julialang.org/t/how-do-i-can-i-selectively-inspect-and-use-learned-parameters-in-an-mlj-pipeline/83097)

<div class="topic-metadata">

**Author:** [@ablaom](https://discourse.julialang.org/u/ablaom)\
**Replies:** 1\
**Last updated:** [June 20, 2022, 10:57pm UTC](https://discourse.julialang.org/t/how-do-i-can-i-selectively-inspect-and-use-learned-parameters-in-an-mlj-pipeline/83097 "2022-06-20T22:57:25Z")

</div>

From a question on slack: If I have a pipeline like this @pipeline ContinuousEncoder(drop\_last=true) Standardizer() can I specify to inverse\_transform the standadizer part so that I won’t have to break up the pipeline? …

---

## [Is e.g. SciPy better than Julia's packageS and how do good packages map to Julia's?](https://discourse.julialang.org/t/is-e-g-scipy-better-than-julias-packages-and-how-do-good-packages-map-to-julias/83092)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 0\
**Last updated:** [June 20, 2022, 9:59pm UTC](https://discourse.julialang.org/t/is-e-g-scipy-better-than-julias-packages-and-how-do-good-packages-map-to-julias/83092 "2022-06-20T21:59:20Z")

</div>

@gideonsimpson to nip this in the bud, you can use ALL Python packages from Julia, e.g. with PythonCall.jl as you note, Python now has NumPy/SciPy. So all that core functionality that comes to mind when you think of …

---

## [Type-Instability Caused by Wrapping Type-Stable Function](https://discourse.julialang.org/t/type-instability-caused-by-wrapping-type-stable-function/83089)

<div class="topic-metadata">

**Author:** [@dleather](https://discourse.julialang.org/u/dleather)\
**Replies:** 2\
**Last updated:** [June 20, 2022, 8:46pm UTC](https://discourse.julialang.org/t/type-instability-caused-by-wrapping-type-stable-function/83089 "2022-06-20T20:46:03Z")

</div>

The following results are puzzling to me. I have a type-stable function eval\_logprior stored in structure prior\_struct which I type as ::Function. Input: eval\_logprior = prior\_struct.eval\_logprior @code\_warntype eval\_l…

---

## [Finding patterns in vectors](https://discourse.julialang.org/t/finding-patterns-in-vectors/82833)

<div class="topic-metadata">

**Author:** [@duodenum](https://discourse.julialang.org/u/duodenum)\
**Replies:** 9\
**Last updated:** [June 20, 2022, 8:06pm UTC](https://discourse.julialang.org/t/finding-patterns-in-vectors/82833 "2022-06-20T20:06:39Z")

</div>

Hello, I’m trying to write a Julia implementation of Lempel-Ziv Complexity. Specifically I’m stuck at the pattern-finding part of the algorithm. Let’s say I have a vector: \[1, 0, 0, 1\]. It contains the pattern \[1, 0\] bu…

---

## [Consistency between \`keys\`, \`values\`, and \`getindex\` for \`Pair\` type](https://discourse.julialang.org/t/consistency-between-keys-values-and-getindex-for-pair-type/83088)

<div class="topic-metadata">

**Author:** [@goretkin](https://discourse.julialang.org/u/goretkin)\
**Replies:** 1\
**Last updated:** [June 20, 2022, 7:25pm UTC](https://discourse.julialang.org/t/consistency-between-keys-values-and-getindex-for-pair-type/83088 "2022-06-20T19:25:39Z")

</div>

Consider julia\> nt = (;a = 10, b = 20) (a = 10, b = 20) julia\> \[(;k, v) for (k, v) in pairs(nt)\] 2-element Vector{NamedTuple{(:k, :v), Tuple{Symbol, Int64}}}: (k = :a, v = 10) (k = :b, v = 20) The above suggests tha…

---

## [Meaning of 2 minimum times of \`@btime\`](https://discourse.julialang.org/t/meaning-of-2-minimum-times-of-btime/83041)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 13\
**Last updated:** [June 20, 2022, 7:25pm UTC](https://discourse.julialang.org/t/meaning-of-2-minimum-times-of-btime/83041 "2022-06-20T19:25:08Z")

</div>

I know that \<1ns @btime timings mean that the compiler hoisted the method call out of the benchmark loop completely, but it’s a consistent number ~0.034ns. What does that number mean, where does it come from? julia\> @bt…

---

## [\[ANN\] BiweightStats.jl v0.2: Robust statistics based on the biweight transform](https://discourse.julialang.org/t/ann-biweightstats-jl-v0-2-robust-statistics-based-on-the-biweight-transform/83058)

<div class="topic-metadata">

**Author:** [@mileslucas](https://discourse.julialang.org/u/mileslucas)\
**Replies:** 2\
**Last updated:** [June 20, 2022, 6:37pm UTC](https://discourse.julialang.org/t/ann-biweightstats-jl-v0-2-robust-statistics-based-on-the-biweight-transform/83058 "2022-06-20T18:37:58Z")

</div>

I’m announcing a new package, BiweightStats.jl (docs). It implements a suite of robust statistics based on the biweight transform. This transform, as implemented, will skip any non-finite values, and will filter any val…

---

## [Facing Issue with GeoStats package in Julia](https://discourse.julialang.org/t/facing-issue-with-geostats-package-in-julia/83087)

<div class="topic-metadata">

**Author:** [@Goku](https://discourse.julialang.org/u/Goku)\
**Replies:** 0\
**Last updated:** [June 20, 2022, 6:31pm UTC](https://discourse.julialang.org/t/facing-issue-with-geostats-package-in-julia/83087 "2022-06-20T18:31:31Z")

</div>

Can someone help me with this. I have the GeoStats package and the variography package installed , but when I try to use the Empirical variogram function , its throwing the error as shown in the picture. The code I am us…

---

## [Gadfly boxplot is getting plotted like a vertical straight line (missing the box part)](https://discourse.julialang.org/t/gadfly-boxplot-is-getting-plotted-like-a-vertical-straight-line-missing-the-box-part/80946)

<div class="topic-metadata">

**Author:** [@rkmalaiya](https://discourse.julialang.org/u/rkmalaiya)\
**Replies:** 4\
**Last updated:** [June 20, 2022, 6:26pm UTC](https://discourse.julialang.org/t/gadfly-boxplot-is-getting-plotted-like-a-vertical-straight-line-missing-the-box-part/80946 "2022-06-20T18:26:24Z")

</div>

Hello, I am trying to make a boxplot using Gadfly but all I see are straight vertical lines. Also, this seems to be a very tricky issue. It only happens for a specific combination of data points, and I am not able to fi…

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

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