# Latest

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

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

**Page:** 756

---

## [Why is it that dataframe violates iterator interface?](https://discourse.julialang.org/t/why-is-it-that-dataframe-violates-iterator-interface/95906)

<div class="topic-metadata">

**Author:** [@freeman](https://discourse.julialang.org/u/freeman)\
**Replies:** 7\
**Last updated:** [March 13, 2023, 2:18am UTC](https://discourse.julialang.org/t/why-is-it-that-dataframe-violates-iterator-interface/95906 "2023-03-13T02:18:59Z")

</div>

using DataFrames df = DataFrame(:a=\>\[1,2,3\]) Base.IteratorSize(DataFrame) # Base.HasLength() length(df) # method length(::DataFrame) doesn't exist I’m ok with DataFrames not having length, but in that case why Base…

---

## [Chain the transformation without @chain macro](https://discourse.julialang.org/t/chain-the-transformation-without-chain-macro/95955)

<div class="topic-metadata">

**Author:** [@hungpham3112](https://discourse.julialang.org/u/hungpham3112)\
**Replies:** 4\
**Last updated:** [March 12, 2023, 10:24pm UTC](https://discourse.julialang.org/t/chain-the-transformation-without-chain-macro/95955 "2023-03-12T22:24:40Z")

</div>

Reading the DataFramesMeta.jl document helps me learn a clean way to chain the transformation with the @chain macro. From its document: @chain msleep begin @select :name :sleep\_total @rsubset :sleep\_total \> 16…

---

## [Error in using KNITRO with JuMP](https://discourse.julialang.org/t/error-in-using-knitro-with-jump/95951)

<div class="topic-metadata">

**Author:** [@Rick](https://discourse.julialang.org/u/Rick)\
**Replies:** 6\
**Last updated:** [March 12, 2023, 9:51pm UTC](https://discourse.julialang.org/t/error-in-using-knitro-with-jump/95951 "2023-03-12T21:51:31Z")

</div>

Hi everyone, I have just updated my packages, then I am unable to use KNITRO.jl with JuMP anymore. The code I run is: using KNITRO, JuMP model = Model(KNITRO.Optimizer) Then, I get the following error: The provided …

---

## [REPL-like interaction within Jupyter?](https://discourse.julialang.org/t/repl-like-interaction-within-jupyter/95976)

<div class="topic-metadata">

**Author:** [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Replies:** 1\
**Last updated:** [March 12, 2023, 8:39pm UTC](https://discourse.julialang.org/t/repl-like-interaction-within-jupyter/95976 "2023-03-12T20:39:30Z")

</div>

Is there a way to interact with Jupyter/Jupyterlab such that it behaves more like the REPL? That is, I do like the rich display of Jupyter and some other things, e.g. easier entry/editing of multiple lines before executi…

---

## [Can I get a code review on this wrapper class inheriting from AbstractArray](https://discourse.julialang.org/t/can-i-get-a-code-review-on-this-wrapper-class-inheriting-from-abstractarray/95974)

<div class="topic-metadata">

**Author:** [@bryaan](https://discourse.julialang.org/u/bryaan)\
**Replies:** 0\
**Last updated:** [March 12, 2023, 7:32pm UTC](https://discourse.julialang.org/t/can-i-get-a-code-review-on-this-wrapper-class-inheriting-from-abstractarray/95974 "2023-03-12T19:32:00Z")

</div>

Can I please get a code review on this wrapper class inheriting from AbstractArray? S = WrappedSeries(5) S\[1, :A\] += 1 S\[end, :A\] += 1 import Base: to\_index mutable struct WrappedSeries \<: AbstractArray{Int64,2} da…

---

## [How to convert the String15 datatype in DataFrames.jl to Float64](https://discourse.julialang.org/t/how-to-convert-the-string15-datatype-in-dataframes-jl-to-float64/95907)

<div class="topic-metadata">

**Author:** [@hungpham3112](https://discourse.julialang.org/u/hungpham3112)\
**Replies:** 9\
**Last updated:** [March 12, 2023, 5:52pm UTC](https://discourse.julialang.org/t/how-to-convert-the-string15-datatype-in-dataframes-jl-to-float64/95907 "2023-03-12T17:52:14Z")

</div>

I have a DataFrame with 2 columns in type String15 and String31, respectively. Now I want to convert element type from 2 columns to Float64 but I can’t found any document or example in DataFrames.jl’s document. My f…

---

## [Flux - Flux.train! is always login progress in pluto](https://discourse.julialang.org/t/flux-flux-train-is-always-login-progress-in-pluto/95966)

<div class="topic-metadata">

**Author:** [@jcbritobr](https://discourse.julialang.org/u/jcbritobr)\
**Replies:** 2\
**Last updated:** [March 12, 2023, 7:15pm UTC](https://discourse.julialang.org/t/flux-flux-train-is-always-login-progress-in-pluto/95966 "2023-03-12T19:15:49Z")

</div>

Hello, good afternoon. Pluto is always logging the progress multiple times when training a flux model as figure below shows: There are ways to supress this log or is a bug in Pluto.jl or Flux.jl?

---

## [Serialization format allow incremental write to file](https://discourse.julialang.org/t/serialization-format-allow-incremental-write-to-file/95464)

<div class="topic-metadata">

**Author:** [@Roger-luo](https://discourse.julialang.org/u/Roger-luo)\
**Replies:** 10\
**Last updated:** [March 12, 2023, 7:11pm UTC](https://discourse.julialang.org/t/serialization-format-allow-incremental-write-to-file/95464 "2023-03-12T19:11:50Z")

</div>

Is there any data format that supports incremental writes and allows flush to the file after the write? I find julia-arrow support incremental writes here: refactor Arrow.write to support incremental writes by baumgold ·…

---

## [When can one expect assignment to an array to run in parallel?](https://discourse.julialang.org/t/when-can-one-expect-assignment-to-an-array-to-run-in-parallel/95971)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 6\
**Last updated:** [March 12, 2023, 6:50pm UTC](https://discourse.julialang.org/t/when-can-one-expect-assignment-to-an-array-to-run-in-parallel/95971 "2023-03-12T18:50:08Z")

</div>

Consider N = 8\_000\_000\_000 a = zeros(Int64, N) a .= 1 For some reason I expected the broadcast assignment to run in parallel on multiple threads. According to my experiments, that is not happening. Does anyone have an…

---

## [Flux with Matrix input dimensions](https://discourse.julialang.org/t/flux-with-matrix-input-dimensions/43610)

<div class="topic-metadata">

**Author:** [@Ruan\_Stander](https://discourse.julialang.org/u/Ruan_Stander)\
**Replies:** 2\
**Last updated:** [March 12, 2023, 6:30pm UTC](https://discourse.julialang.org/t/flux-with-matrix-input-dimensions/43610 "2023-03-12T18:30:15Z")

</div>

Hi Just started using flux, cant get on top of input/layer dimensions where input is a matrix Adapting https://github.com/FluxML/model-zoo/blob/master/vision/mnist/mlp.jl to my input space but its not working My Input…

---

## [Weighted\_similarity and tabu search](https://discourse.julialang.org/t/weighted-similarity-and-tabu-search/95968)

<div class="topic-metadata">

**Author:** [@Andre1](https://discourse.julialang.org/u/Andre1)\
**Replies:** 1\
**Last updated:** [March 12, 2023, 5:54pm UTC](https://discourse.julialang.org/t/weighted-similarity-and-tabu-search/95968 "2023-03-12T17:54:59Z")

</div>

data = \[\["O", "U", "V", "buss", "bsh"\], \["NA", "hand", "machine", "other", "mis"\], \["NA", "simple", "medium", "full", "mis"\], \["NA", "shoulder-elbow", "elbow", "elbow-wrist", "wrist"\], \["NA", "curfed", "relaxed",…

---

## [Tables partitions](https://discourse.julialang.org/t/tables-partitions/95930)

<div class="topic-metadata">

**Author:** [@freeman](https://discourse.julialang.org/u/freeman)\
**Replies:** 4\
**Last updated:** [March 12, 2023, 5:21pm UTC](https://discourse.julialang.org/t/tables-partitions/95930 "2023-03-12T17:21:34Z")

</div>

Regarding the Tables.jl interface, I find the part about partitions quite confusing. For starters it’s quite sparse, as far as I can tell there’s only a few paragraphs \[1\] on Tables.partitions and Tables.partitioner. And…

---

## [Lazy broadcasting speed issues](https://discourse.julialang.org/t/lazy-broadcasting-speed-issues/94218)

<div class="topic-metadata">

**Author:** [@RainerHeintzmann](https://discourse.julialang.org/u/RainerHeintzmann)\
**Replies:** 13\
**Last updated:** [March 12, 2023, 4:52pm UTC](https://discourse.julialang.org/t/lazy-broadcasting-speed-issues/94218 "2023-03-12T16:52:22Z")

</div>

I am working on a new package called SeparableFunctions.jl with the aim to boost the performance for functions which are expensive to calculate on multidimensional grids, but can profit a lot from broadcasting. To this…

---

## [VS code - use Conda.jl's python in native integrated Jupyter Notebook support?](https://discourse.julialang.org/t/vs-code-use-conda-jls-python-in-native-integrated-jupyter-notebook-support/95938)

<div class="topic-metadata">

**Author:** [@beeblebrox](https://discourse.julialang.org/u/beeblebrox)\
**Replies:** 4\
**Last updated:** [March 12, 2023, 4:12pm UTC](https://discourse.julialang.org/t/vs-code-use-conda-jls-python-in-native-integrated-jupyter-notebook-support/95938 "2023-03-12T16:12:02Z")

</div>

Is there a way to use the local Julia’s miniconda installation of python within the native integrated Jupyter Notebook support offered in VS code by julia-vscode?

---

## [What happened to XLA.jl](https://discourse.julialang.org/t/what-happened-to-xla-jl/88088)

<div class="topic-metadata">

**Author:** [@Honza9723](https://discourse.julialang.org/u/Honza9723)\
**Replies:** 16\
**Last updated:** [March 12, 2023, 3:24pm UTC](https://discourse.julialang.org/t/what-happened-to-xla-jl/88088 "2023-03-12T15:24:22Z")

</div>

Dear All, I would like to ask, what happened to XLA.jl. When I checked the repository, it says it was archived. Is the project of building the Julia-to-XLA interface dead? Best, Jan

---

## [What is the best way to solve a ill-conditioned linear problem?](https://discourse.julialang.org/t/what-is-the-best-way-to-solve-a-ill-conditioned-linear-problem/95894)

<div class="topic-metadata">

**Author:** [@linwaytin](https://discourse.julialang.org/u/linwaytin)\
**Replies:** 15\
**Last updated:** [March 12, 2023, 12:59pm UTC](https://discourse.julialang.org/t/what-is-the-best-way-to-solve-a-ill-conditioned-linear-problem/95894 "2023-03-12T12:59:29Z")

</div>

Some background first: I’m a physicist and have little knowledge about numerical analysis and linear algebra, so maybe this is a meaningless question. I have a matrix A in double precision, which has elements ranging fr…

---

## [How to implement a model with missing observations in Turing?](https://discourse.julialang.org/t/how-to-implement-a-model-with-missing-observations-in-turing/95572)

<div class="topic-metadata">

**Author:** [@AdamR](https://discourse.julialang.org/u/AdamR)\
**Replies:** 6\
**Last updated:** [March 12, 2023, 12:04pm UTC](https://discourse.julialang.org/t/how-to-implement-a-model-with-missing-observations-in-turing/95572 "2023-03-12T12:04:13Z")

</div>

I would like to write in Julia the following toy Bernoulli model written in JAGS: model{ p0 ~ dbeta(1,1) for(i in 1:n){ y\[i\] ~ dbern(p0) } } Here’s the complete driver true\_p0 \<- 0.2 n \<- 600 y \<- sampl…

---

## [Best practice for element-wise vector value update without memory allocation](https://discourse.julialang.org/t/best-practice-for-element-wise-vector-value-update-without-memory-allocation/94864)

<div class="topic-metadata">

**Author:** [@Charles](https://discourse.julialang.org/u/Charles)\
**Replies:** 3\
**Last updated:** [March 12, 2023, 10:14am UTC](https://discourse.julialang.org/t/best-practice-for-element-wise-vector-value-update-without-memory-allocation/94864 "2023-03-12T10:14:12Z")

</div>

I am implementing Gaussian Elimination using Julia. The important thing is, when doing the elimination the row vectors are kept updating row by row. While writing a for loop to iterate over the row vector and assigning n…

---

## [ArchGDAL.read error: GDALError (CE\_Failure, code 4):not recognized as a supported file format](https://discourse.julialang.org/t/archgdal-read-error-gdalerror-ce-failure-code-4-not-recognized-as-a-supported-file-format/95959)

<div class="topic-metadata">

**Author:** [@sunayana](https://discourse.julialang.org/u/sunayana)\
**Replies:** 4\
**Last updated:** [March 12, 2023, 10:08am UTC](https://discourse.julialang.org/t/archgdal-read-error-gdalerror-ce-failure-code-4-not-recognized-as-a-supported-file-format/95959 "2023-03-12T10:08:44Z")

</div>

Hi, I am currently stuck with a strange issue in GDAL and do not understand how to solve it. I have a method inside an IO module: read\_image\_file(filename::AbstractPath) = AG.read(string(filename)) This method is bein…

---

## [An Issue in Defining a Mutating Function](https://discourse.julialang.org/t/an-issue-in-defining-a-mutating-function/95933)

<div class="topic-metadata">

**Author:** [@HoldenCaulfield](https://discourse.julialang.org/u/HoldenCaulfield)\
**Replies:** 6\
**Last updated:** [March 12, 2023, 9:33am UTC](https://discourse.julialang.org/t/an-issue-in-defining-a-mutating-function/95933 "2023-03-12T09:33:45Z")

</div>

This might sound a stupid question to experienced Julia users. When I define a simple mutating function as: function foo!(x) x = x + 1 end I expect the function to change the value of its argument. However when I e…

---

## [Summer Research Opportunity at U Utah](https://discourse.julialang.org/t/summer-research-opportunity-at-u-utah/95898)

<div class="topic-metadata">

**Author:** [@ben-greenman](https://discourse.julialang.org/u/ben-greenman)\
**Replies:** 2\
**Last updated:** [March 12, 2023, 3:22am UTC](https://discourse.julialang.org/t/summer-research-opportunity-at-u-utah/95898 "2023-03-12T03:22:10Z")

</div>

http://treu.cs.utah.edu/ Applications are now open from undergraduate students (US Citizens, Permanent Residents) at all levels to be selected to this 10-week Research Experience for Undergraduates summer internship spo…

---

## [Readdlm, comments=true instead of false](https://discourse.julialang.org/t/readdlm-comments-true-instead-of-false/95810)

<div class="topic-metadata">

**Author:** [@marllos](https://discourse.julialang.org/u/marllos)\
**Replies:** 2\
**Last updated:** [March 12, 2023, 1:57am UTC](https://discourse.julialang.org/t/readdlm-comments-true-instead-of-false/95810 "2023-03-12T01:57:04Z")

</div>

Wouldn’t that be better? This would allow adding (commented) information to the end of a data file, without having to change the code.

---

## [Are "Closures should be avoided whenever possible" still valid in Julia v1.9+?](https://discourse.julialang.org/t/are-closures-should-be-avoided-whenever-possible-still-valid-in-julia-v1-9/95893)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 5\
**Last updated:** [March 12, 2023, 12:32am UTC](https://discourse.julialang.org/t/are-closures-should-be-avoided-whenever-possible-still-valid-in-julia-v1-9/95893 "2023-03-12T00:32:39Z")

</div>

I have posted the same question on Are the examples in "Closures should be avoided whenever possible" still valid in Julia v1.9+? · Issue #34 · SciML/SciMLStyle · GitHub. I just tested the examples in the section “Closu…

---

## [Problem Using annotate! to add info to an animated plot but it overlaps and cannot be read](https://discourse.julialang.org/t/problem-using-annotate-to-add-info-to-an-animated-plot-but-it-overlaps-and-cannot-be-read/95935)

<div class="topic-metadata">

**Author:** [@J\_Braulio\_Ramz\_G](https://discourse.julialang.org/u/J_Braulio_Ramz_G)\
**Replies:** 1\
**Last updated:** [March 11, 2023, 9:05pm UTC](https://discourse.julialang.org/t/problem-using-annotate-to-add-info-to-an-animated-plot-but-it-overlaps-and-cannot-be-read/95935 "2023-03-11T21:05:39Z")

</div>

Hi I am triying to use !annotate() to add text info like current iteration, aproximation and relative error to an animation of Newton-Raphson method but the previous info is accumulating in the new frames and overlaps.…

---

## [PCA on one time series variable into components](https://discourse.julialang.org/t/pca-on-one-time-series-variable-into-components/95915)

<div class="topic-metadata">

**Author:** [@BMval](https://discourse.julialang.org/u/BMval)\
**Replies:** 3\
**Last updated:** [March 11, 2023, 8:54pm UTC](https://discourse.julialang.org/t/pca-on-one-time-series-variable-into-components/95915 "2023-03-11T20:54:54Z")

</div>

I tried to use PCA from MultivariateStats, and I got a little bit stuck. I have a one-time series variable - Y. I need to decompose it into orthogonal factors (by using PCA). It looks like a number of factors can be l…

---

## [The step-by-step of the SymPy package procedure](https://discourse.julialang.org/t/the-step-by-step-of-the-sympy-package-procedure/95901)

<div class="topic-metadata">

**Author:** [@maoc](https://discourse.julialang.org/u/maoc)\
**Replies:** 3\
**Last updated:** [March 11, 2023, 8:08pm UTC](https://discourse.julialang.org/t/the-step-by-step-of-the-sympy-package-procedure/95901 "2023-03-11T20:08:49Z")

</div>

I am reading the tutorial of the SymPy package. I would like to know if there is a way to show the step-by-step calculations that the package performs. For example, we know that this works well: using SymPy x = symbols(…

---

## [Corrupted project.toml and/or manifest.toml files](https://discourse.julialang.org/t/corrupted-project-toml-and-or-manifest-toml-files/95923)

<div class="topic-metadata">

**Author:** [@vsoler](https://discourse.julialang.org/u/vsoler)\
**Replies:** 2\
**Last updated:** [March 11, 2023, 7:26pm UTC](https://discourse.julialang.org/t/corrupted-project-toml-and-or-manifest-toml-files/95923 "2023-03-11T19:26:15Z")

</div>

I think that one or two of my project files (project.toml and/or manifest.toml) are corrupted. Every time that I try to install a new package, I get the following error: I am thinking of deleting the two files and r…

---

## [Maximizing a term with barrier in JuMP](https://discourse.julialang.org/t/maximizing-a-term-with-barrier-in-jump/95884)

<div class="topic-metadata">

**Author:** [@Shayan](https://discourse.julialang.org/u/Shayan)\
**Replies:** 7\
**Last updated:** [March 11, 2023, 5:39pm UTC](https://discourse.julialang.org/t/maximizing-a-term-with-barrier-in-jump/95884 "2023-03-11T17:39:01Z")

</div>

I’m sorry that the title isn’t clear enough; I promise to provide a suitable description with a minimal reproducible example. I want to optimize the following model to achieve the optimal set of w\_j (which is a vector): …

---

## [How to call a recursive function without stackoverflow?](https://discourse.julialang.org/t/how-to-call-a-recursive-function-without-stackoverflow/95865)

<div class="topic-metadata">

**Author:** [@AwesomeQuest](https://discourse.julialang.org/u/AwesomeQuest)\
**Replies:** 10\
**Last updated:** [March 11, 2023, 5:11pm UTC](https://discourse.julialang.org/t/how-to-call-a-recursive-function-without-stackoverflow/95865 "2023-03-11T17:11:41Z")

</div>

When calling julia\> f(x) = x\>1 ? √(6+f(x-1)) : 1 f (generic function with 1 method) julia\> f(104475) 3.0 julia\> f(104476) ERROR: StackOverflowError: Stacktrace: \[1\] \< @ .\\REPL\[76\]:1 \[inlined\] \[2\] \> @ .\\operato…

---

## [Problem with using Distributed for a Monte Carlo simulation](https://discourse.julialang.org/t/problem-with-using-distributed-for-a-monte-carlo-simulation/95508)

<div class="topic-metadata">

**Author:** [@greivin](https://discourse.julialang.org/u/greivin)\
**Replies:** 6\
**Last updated:** [March 11, 2023, 4:07pm UTC](https://discourse.julialang.org/t/problem-with-using-distributed-for-a-monte-carlo-simulation/95508 "2023-03-11T16:07:53Z")

</div>

I’m using the Distributed package to parallelize a for loop during a Monte Carlo simulation, this for loop is running over several initial conditions to generate a CSV file of L/2 x N entries where L is the size of the s…

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

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