# Latest

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

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

**Page:** 877

---

## [Convert DataFrames 1.3 DataFrame to DataFrames 1.4](https://discourse.julialang.org/t/convert-dataframes-1-3-dataframe-to-dataframes-1-4/88267)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 14\
**Last updated:** [November 2, 2022, 2:10pm UTC](https://discourse.julialang.org/t/convert-dataframes-1-3-dataframe-to-dataframes-1-4/88267 "2022-11-02T14:10:59Z")

</div>

I serialized a DataFrame from DataFrames.jl@1.3. Can I convert it to be compatible with DataFrames.jl@1.4 so I can load it in an environment with the new version?

---

## [FFTW Performance](https://discourse.julialang.org/t/fftw-performance/77175)

<div class="topic-metadata">

**Author:** [@jonas-kr](https://discourse.julialang.org/u/jonas-kr)\
**Replies:** 25\
**Last updated:** [November 2, 2022, 1:05pm UTC](https://discourse.julialang.org/t/fftw-performance/77175 "2022-11-02T13:05:36Z")

</div>

I noticed pretty weird runtimes of FFTs using the FFTW-backend, especially on Windows. If I switch to the MKL-backend, the execution time is back to normal (on AMD and Intel systems). To figure out, whether FFTW is the …

---

## [Iteration reverse in for loop](https://discourse.julialang.org/t/iteration-reverse-in-for-loop/44551)

<div class="topic-metadata">

**Author:** [@Fuad\_Sami](https://discourse.julialang.org/u/Fuad_Sami)\
**Replies:** 6\
**Last updated:** [August 8, 2020, 7:00pm UTC](https://discourse.julialang.org/t/iteration-reverse-in-for-loop/44551 "2020-08-08T19:00:11Z")

</div>

hi all in python if i want to track reverse through the for loop i write this for i in range(len(digits)-1,-1,-1): there is some thing similar in julia ?

---

## [Get multiple elements from named tuples](https://discourse.julialang.org/t/get-multiple-elements-from-named-tuples/89614)

<div class="topic-metadata">

**Author:** [@johnbb](https://discourse.julialang.org/u/johnbb)\
**Replies:** 4\
**Last updated:** [November 2, 2022, 11:26am UTC](https://discourse.julialang.org/t/get-multiple-elements-from-named-tuples/89614 "2022-11-02T11:26:37Z")

</div>

Why does the following not work for named tuples? x = (a=1, b=2, c=3) x\[1:2\] x\[\[1,2\]\] With unnamed tuples like x = (1, 2, 3) it works fine. Tested with Julia 1.8.2.

---

## [Diagonal elements of matrix product](https://discourse.julialang.org/t/diagonal-elements-of-matrix-product/31418)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 12\
**Last updated:** [November 2, 2022, 11:26am UTC](https://discourse.julialang.org/t/diagonal-elements-of-matrix-product/31418 "2022-11-02T11:26:16Z")

</div>

I have two matrices A and B, and I need to compute the diagonal elements of the product A\*B as fast as possible, and store them in a pre-allocated vector. What’s the fastest way to do this? I mean faster than writing my…

---

## [Removing numeric labels from axis](https://discourse.julialang.org/t/removing-numeric-labels-from-axis/89237)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 12\
**Last updated:** [November 2, 2022, 11:04am UTC](https://discourse.julialang.org/t/removing-numeric-labels-from-axis/89237 "2022-11-02T11:04:52Z")

</div>

I fear this might be a stupid question . . . but, how does one remove the numeric labels from an axis in a plot? I searched the documentation https://docs.juliaplots.org/latest/attributes/ but didn’t find an option. (…

---

## [Is there an updated guide to host interactive Pluto notebooks online?](https://discourse.julialang.org/t/is-there-an-updated-guide-to-host-interactive-pluto-notebooks-online/89653)

<div class="topic-metadata">

**Author:** [@RayleighLord](https://discourse.julialang.org/u/RayleighLord)\
**Replies:** 2\
**Last updated:** [November 2, 2022, 10:43am UTC](https://discourse.julialang.org/t/is-there-an-updated-guide-to-host-interactive-pluto-notebooks-online/89653 "2022-11-02T10:43:41Z")

</div>

I am very interested in the possibility to host Pluto notebooks online with the interactive capabilities of the different sliders. However, I have not found a recent guide that uses the PlutoSliderServer package to achie…

---

## [Science books using Julia](https://discourse.julialang.org/t/science-books-using-julia/89649)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 2\
**Last updated:** [November 2, 2022, 10:37am UTC](https://discourse.julialang.org/t/science-books-using-julia/89649 "2022-11-02T10:37:38Z")

</div>

I don’t recall exactly where the overview of science books using Julia is located, but here are 3 books from SIAM Books in the October 2022 Inside SIAM newsletter: Kelley, C.T. (2022). Solving Nonlinear Equations with …

---

## [Accessing solutions from earlier times in Callback functions](https://discourse.julialang.org/t/accessing-solutions-from-earlier-times-in-callback-functions/89613)

<div class="topic-metadata">

**Author:** [@LM\_Julia](https://discourse.julialang.org/u/LM_Julia)\
**Replies:** 4\
**Last updated:** [November 2, 2022, 10:28am UTC](https://discourse.julialang.org/t/accessing-solutions-from-earlier-times-in-callback-functions/89613 "2022-11-02T10:28:40Z")

</div>

Hi everyone, I’ve only recently started using Julia and I was wondering if it’s possible to access the values obtained at earlier times by a solver in a callback function. For example, I’m trying to identify maxima (as …

---

## [Plotting data with 2D lat/lons in geomakie](https://discourse.julialang.org/t/plotting-data-with-2d-lat-lons-in-geomakie/88648)

<div class="topic-metadata">

**Author:** [@k945](https://discourse.julialang.org/u/k945)\
**Replies:** 8\
**Last updated:** [November 2, 2022, 9:37am UTC](https://discourse.julialang.org/t/plotting-data-with-2d-lat-lons-in-geomakie/88648 "2022-11-02T09:37:24Z")

</div>

Is it possible to plot data with 2d lat/lons using GeoMakie? I have so far been unable to properly project WRF simulation data onto a map. Using test data, this is what I have tried so far: using GeoMakie, CairoMa…

---

## [Making an iterator that splats keys and values quickly into kwargs](https://discourse.julialang.org/t/making-an-iterator-that-splats-keys-and-values-quickly-into-kwargs/89357)

<div class="topic-metadata">

**Author:** [@uniment](https://discourse.julialang.org/u/uniment)\
**Replies:** 19\
**Last updated:** [November 2, 2022, 9:33am UTC](https://discourse.julialang.org/t/making-an-iterator-that-splats-keys-and-values-quickly-into-kwargs/89357 "2022-11-02T09:33:42Z")

</div>

This question is about how to improve iterator performance when kwargs splatting like (; x...). I have information stored in a structure something like this: struct MyStruct{T1A, T1B, T2A, T2B} a::NamedTuple{T1A, T…

---

## [Between Matrix{Matrix{Any}} and Matrix{Any}](https://discourse.julialang.org/t/between-matrix-matrix-any-and-matrix-any/74534)

<div class="topic-metadata">

**Author:** [@frydaydeep](https://discourse.julialang.org/u/frydaydeep)\
**Replies:** 4\
**Last updated:** [November 2, 2022, 9:28am UTC](https://discourse.julialang.org/t/between-matrix-matrix-any-and-matrix-any/74534 "2022-11-02T09:28:22Z")

</div>

function ⊗(A::T,B::T) where T\<:Array \[i\*B for i in A\] end a = ⊗(rand(2,2),rand(3,3)) typeof(a) Matrix{Matrix{Float64}} (alias for Array{Array{Float64, 2}, 2}) I know: a = kron(rand(2,2),rand(3,3)) But I’m trying …

---

## [Linear Regression step by step for newcomers](https://discourse.julialang.org/t/linear-regression-step-by-step-for-newcomers/89621)

<div class="topic-metadata">

**Author:** [@Troiss](https://discourse.julialang.org/u/Troiss)\
**Replies:** 7\
**Last updated:** [November 2, 2022, 9:00am UTC](https://discourse.julialang.org/t/linear-regression-step-by-step-for-newcomers/89621 "2022-11-02T09:00:44Z")

</div>

Hello. I’m very new to machine and even newer to Julia, as a whole, thought the syntax is still easy to understand. I got a task to train linear regression a set of data (X, y), in which X is the matrix of input vectors,…

---

## [Help building MWE for 1.8 latency regression](https://discourse.julialang.org/t/help-building-mwe-for-1-8-latency-regression/84796)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 11\
**Last updated:** [November 2, 2022, 8:02am UTC](https://discourse.julialang.org/t/help-building-mwe-for-1-8-latency-regression/84796 "2022-11-02T08:02:29Z")

</div>

Motivated by the SnoopPrecompile announcement, I checked out my package’s TTFX on 1.8rc3. Using a sample script like: # test\_startup.jl @time using CMBLensing @time LenseFlow(FlatMap(randn(10,10))/1e6) \* FlatMap(randn(1…

---

## [Function output confusion](https://discourse.julialang.org/t/function-output-confusion/89589)

<div class="topic-metadata">

**Author:** [@chadagreene](https://discourse.julialang.org/u/chadagreene)\
**Replies:** 14\
**Last updated:** [November 2, 2022, 7:46am UTC](https://discourse.julialang.org/t/function-output-confusion/89589 "2022-11-02T07:46:21Z")

</div>

I have a simple function that changes the first element of any matrix to the number 99. It looks like this: function foo(a) a\[1\] = 99 end Now when I apply the function to a matrix, here’s what I get: x = \[1 2 3 4 …

---

## [Openlibm and Java OpenJDK Mathematics floating point repairs](https://discourse.julialang.org/t/openlibm-and-java-openjdk-mathematics-floating-point-repairs/89645)

<div class="topic-metadata">

**Author:** [@SergioMinervini](https://discourse.julialang.org/u/SergioMinervini)\
**Replies:** 0\
**Last updated:** [November 2, 2022, 6:30am UTC](https://discourse.julialang.org/t/openlibm-and-java-openjdk-mathematics-floating-point-repairs/89645 "2022-11-02T06:30:06Z")

</div>

To oscardsmith and other fdlibm developers, openlibm strikes me as being the perfect correction and replacement for fdlibm, which is what java.lang.StrictMath presently uses. Java’s floating point errors involving float…

---

## [Simulating no internet connection](https://discourse.julialang.org/t/simulating-no-internet-connection/89640)

<div class="topic-metadata">

**Author:** [@Name1](https://discourse.julialang.org/u/Name1)\
**Replies:** 1\
**Last updated:** [November 2, 2022, 5:33am UTC](https://discourse.julialang.org/t/simulating-no-internet-connection/89640 "2022-11-02T05:33:57Z")

</div>

Hi all, catch e if e isa (Sockets.DNSError) # print message elseif e isa (HTTP.StatusError) # print message end end # ... I know that the Sockets.DNSError can either be triggered by an inval…

---

## [Julia fails to precompile plots](https://discourse.julialang.org/t/julia-fails-to-precompile-plots/88411)

<div class="topic-metadata">

**Author:** [@Matteo](https://discourse.julialang.org/u/Matteo)\
**Replies:** 32\
**Last updated:** [November 2, 2022, 2:03am UTC](https://discourse.julialang.org/t/julia-fails-to-precompile-plots/88411 "2022-11-02T02:03:34Z")

</div>

I’m using Julia 1.8 on my Mac with Atom. I know that Atom is not anymore the editor recommended for Julia, but I think my problem is not related to Atom. In fact I have a problem with the package “Plots”: when I run the …

---

## [Is there a NamedArray or DimensionalData type package that can combine orthogonal dimensions?](https://discourse.julialang.org/t/is-there-a-namedarray-or-dimensionaldata-type-package-that-can-combine-orthogonal-dimensions/89610)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 4\
**Last updated:** [November 2, 2022, 1:29am UTC](https://discourse.julialang.org/t/is-there-a-namedarray-or-dimensionaldata-type-package-that-can-combine-orthogonal-dimensions/89610 "2022-11-02T01:29:44Z")

</div>

Vectorised operations on regular arrays produce a cross product across dimensions. e.g. x = \[1 2 3\] a = reshape( x, (3,1,1)) b = reshape( x, (1,3,1)) c = reshape( x, (1,1,3)) X = @. a + b + c X\[3,3,3\] # =9 Simila…

---

## [Help with failing package compilaton of AbstractFFTs](https://discourse.julialang.org/t/help-with-failing-package-compilaton-of-abstractffts/88938)

<div class="topic-metadata">

**Author:** [@votroto](https://discourse.julialang.org/u/votroto)\
**Replies:** 11\
**Last updated:** [November 2, 2022, 12:59am UTC](https://discourse.julialang.org/t/help-with-failing-package-compilaton-of-abstractffts/88938 "2022-11-02T00:59:32Z")

</div>

Hi I’m trying to install CUDA.jl, but its dependency AbstractFFTs keeps failing. Here is an output from the session. Is there any way to debug it? Is the problem on my end? Neither Julia 1.8, 1.7, nor 1.6 works. $ julia…

---

## [Using a mix of maintained and unmaintained packages?](https://discourse.julialang.org/t/using-a-mix-of-maintained-and-unmaintained-packages/89622)

<div class="topic-metadata">

**Author:** [@Kirby\_Zhang](https://discourse.julialang.org/u/Kirby_Zhang)\
**Replies:** 3\
**Last updated:** [November 2, 2022, 12:18am UTC](https://discourse.julialang.org/t/using-a-mix-of-maintained-and-unmaintained-packages/89622 "2022-11-02T00:18:29Z")

</div>

Say packages A and B both depend on HTTP, but B isn’t being maintained anymore and still uses 0.9.17. A is fresh and up-to-date and can run on HTTP 1.5.1. I want to use both packages A and B in my application, but I don’…

---

## [From toy to production code with sparse matrix and sparse-direct factorizations](https://discourse.julialang.org/t/from-toy-to-production-code-with-sparse-matrix-and-sparse-direct-factorizations/89105)

<div class="topic-metadata">

**Author:** [@Gravlax](https://discourse.julialang.org/u/Gravlax)\
**Replies:** 17\
**Last updated:** [November 1, 2022, 10:01pm UTC](https://discourse.julialang.org/t/from-toy-to-production-code-with-sparse-matrix-and-sparse-direct-factorizations/89105 "2022-11-01T22:01:25Z")

</div>

Dear all, I would like to port a toy code that assembles one sparse matrix and solves one linear system of equation to a production code that assembles many sparse matrices and solves many systems of equation iterativel…

---

## [\`Vector{Bool}\` to Int](https://discourse.julialang.org/t/vector-bool-to-int/89560)

<div class="topic-metadata">

**Author:** [@this\_josh](https://discourse.julialang.org/u/this_josh)\
**Replies:** 14\
**Last updated:** [November 1, 2022, 9:07pm UTC](https://discourse.julialang.org/t/vector-bool-to-int/89560 "2022-11-01T21:07:51Z")

</div>

I’m using PyCall to interact with a python package which returns integers as a Vector{Bool}, e.g. \[true, true, false, true, true, true, false, true\]. How can I easily convert this to an integer? In a previous question i…

---

## [Show right y-axis using twinx() with Plots pyplot()](https://discourse.julialang.org/t/show-right-y-axis-using-twinx-with-plots-pyplot/30750)

<div class="topic-metadata">

**Author:** [@juliauser](https://discourse.julialang.org/u/juliauser)\
**Replies:** 10\
**Last updated:** [November 1, 2022, 8:49pm UTC](https://discourse.julialang.org/t/show-right-y-axis-using-twinx-with-plots-pyplot/30750 "2022-11-01T20:49:43Z")

</div>

Hi, I am using twinx() to overlay 2 graphs with different y-axis, but only the y-axis on the left shows up in the plot. On the right, I only see numbers. Also, the y-label on the right gets cut out. Does anyone know ho…

---

## [Rlocusplot provide gain K](https://discourse.julialang.org/t/rlocusplot-provide-gain-k/89578)

<div class="topic-metadata">

**Author:** [@GottDengDirk](https://discourse.julialang.org/u/GottDengDirk)\
**Replies:** 5\
**Last updated:** [November 1, 2022, 8:23pm UTC](https://discourse.julialang.org/t/rlocusplot-provide-gain-k/89578 "2022-11-01T20:23:13Z")

</div>

Hello, i have a problem that i want to provide K for rlocusplot, but it does no work. thanks in advance using ControlSystems w0=2\*pi D=0.1 Ki=0.05 sys = Kiw0^2/(s^3+2Dw0s^2+w0^2s+Kiw0^2) k=range(1e-6,stop=1000,le…

---

## [Can't Install Python with CondaPkg in Docker](https://discourse.julialang.org/t/cant-install-python-with-condapkg-in-docker/89631)

<div class="topic-metadata">

**Author:** [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Replies:** 0\
**Last updated:** [November 1, 2022, 8:03pm UTC](https://discourse.julialang.org/t/cant-install-python-with-condapkg-in-docker/89631 "2022-11-01T20:03:28Z")

</div>

I started a conversation here, but I’m under the impression that this is not a CondaPkg issue, so I’m wondering if the wider community can help. I have a project that uses PythonCall. It works well on my computer (Windo…

---

## [Flux - LSTM - Issue with input format for multiple features](https://discourse.julialang.org/t/flux-lstm-issue-with-input-format-for-multiple-features/55272)

<div class="topic-metadata">

**Author:** [@thomaszub](https://discourse.julialang.org/u/thomaszub)\
**Replies:** 9\
**Last updated:** [November 1, 2022, 7:52pm UTC](https://discourse.julialang.org/t/flux-lstm-issue-with-input-format-for-multiple-features/55272 "2022-11-01T19:52:54Z")

</div>

Hi community, I’m diving into machine learning in Julia and currently having some issues with the input format for a LSTM model. The target is to predict the current activity of a human based on motion data from a smart…

---

## [LightOSM and OpenStreetMapX read different nodes from one and the same osm file](https://discourse.julialang.org/t/lightosm-and-openstreetmapx-read-different-nodes-from-one-and-the-same-osm-file/89628)

<div class="topic-metadata">

**Author:** [@ctrebbau](https://discourse.julialang.org/u/ctrebbau)\
**Replies:** 0\
**Last updated:** [November 1, 2022, 7:13pm UTC](https://discourse.julialang.org/t/lightosm-and-openstreetmapx-read-different-nodes-from-one-and-the-same-osm-file/89628 "2022-11-01T19:13:50Z")

</div>

Anyone have a quick idea why this fails? g1 = LightOSM.graph\_from\_file( data\_file, ... largest\_connected\_component=true) g2 = OpenStreetMapX.get\_map\_data( …

---

## [Twinx() not keeping ticks in same position](https://discourse.julialang.org/t/twinx-not-keeping-ticks-in-same-position/89623)

<div class="topic-metadata">

**Author:** [@PeeVee](https://discourse.julialang.org/u/PeeVee)\
**Replies:** 2\
**Last updated:** [November 1, 2022, 6:58pm UTC](https://discourse.julialang.org/t/twinx-not-keeping-ticks-in-same-position/89623 "2022-11-01T18:58:17Z")

</div>

Hi, I’ve been trying to get a shared x-axis to work, but it seems like twinx() is not able to keep the x-ticks in the same position. Here is an example: using Random, Plots Random.seed!(2018) plot(randn(100), ylabel=…

---

## [Understanding version compatibility message](https://discourse.julialang.org/t/understanding-version-compatibility-message/89627)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 1\
**Last updated:** [November 1, 2022, 6:54pm UTC](https://discourse.julialang.org/t/understanding-version-compatibility-message/89627 "2022-11-01T18:54:57Z")

</div>

In Julia 1.8, I get the following result by pkg\> st -o: (@v1.8) pkg\> st -o MyPkg1 Status \`~/.julia/environments/v1.8/Project.toml\` ⌅ \[1766def0\] MyPkg1 v0.1.4 (\<v0.2.1): MyPkg2, MyPkg3, MyPkg4 Does this means that MyPkg…

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

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