# Latest

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

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

**Page:** 359

---

## [Creating Julia Package Documentation](https://discourse.julialang.org/t/creating-julia-package-documentation/117296)

<div class="topic-metadata">

**Author:** [@luke98](https://discourse.julialang.org/u/luke98)\
**Replies:** 6\
**Last updated:** [July 21, 2024, 3:15pm UTC](https://discourse.julialang.org/t/creating-julia-package-documentation/117296 "2024-07-21T15:15:21Z")

</div>

Dear All, I am trying to create a website with the documentation for a Julia Package that I am helping to develop. I am using Julia 1.10 and the Documenter.jl package version v1.5.0. I am following the instructions. I …

---

## [Developing stdlib workflow](https://discourse.julialang.org/t/developing-stdlib-workflow/117282)

<div class="topic-metadata">

**Author:** [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Replies:** 2\
**Last updated:** [July 21, 2024, 2:27pm UTC](https://discourse.julialang.org/t/developing-stdlib-workflow/117282 "2024-07-21T14:27:45Z")

</div>

I wanted to poke around Distributed.jl. But the tests on the current commit included in Julia 1.10 are failing. I tried to clone Distributed.jl, activate its project, and then import it (per the instructions in the Pkg.j…

---

## [Trying to use \`GRBreadmodel\`](https://discourse.julialang.org/t/trying-to-use-grbreadmodel/117199)

<div class="topic-metadata">

**Author:** [@sstroemer](https://discourse.julialang.org/u/sstroemer)\
**Replies:** 4\
**Last updated:** [July 21, 2024, 12:06pm UTC](https://discourse.julialang.org/t/trying-to-use-grbreadmodel/117199 "2024-07-21T12:06:55Z")

</div>

I’m trying something like using JuMP import Gurobi grb\_model = Gurobi.Optimizer() Gurobi.GRBreadmodel( grb\_model.env, "foo.lp", Ptr{Gurobi.GRBmodel}(pointer\_from\_objref(grb\_model)) ) model = direct\_model(g…

---

## [Blending colours of overlapping lines with lighten mode](https://discourse.julialang.org/t/blending-colours-of-overlapping-lines-with-lighten-mode/117291)

<div class="topic-metadata">

**Author:** [@BenCichos](https://discourse.julialang.org/u/BenCichos)\
**Replies:** 0\
**Last updated:** [July 21, 2024, 9:05am UTC](https://discourse.julialang.org/t/blending-colours-of-overlapping-lines-with-lighten-mode/117291 "2024-07-21T09:05:38Z")

</div>

I want to plot Rays with multiple colours in Makie. Sometimes these rays might overlap each other, for example when I want to show light diffraction from a prism, I would want to represent a white ray but made out of mul…

---

## [An elementary symbolics question: simplifying a nested/continued fraction?](https://discourse.julialang.org/t/an-elementary-symbolics-question-simplifying-a-nested-continued-fraction/117170)

<div class="topic-metadata">

**Author:** [@amca01](https://discourse.julialang.org/u/amca01)\
**Replies:** 5\
**Last updated:** [July 21, 2024, 8:27am UTC](https://discourse.julialang.org/t/an-elementary-symbolics-question-simplifying-a-nested-continued-fraction/117170 "2024-07-21T08:27:49Z")

</div>

(Julia version 1.10.3, Symbolics version 5.33.0) Here’s a simple example: using Symbolics @variables y eq = 1/(7+1/(2+1/(4+y))) simplify(eq) simplify\_fractions(eq) expand(eq) None of the last three work - the fractio…

---

## [Starting With Julia!](https://discourse.julialang.org/t/starting-with-julia/117285)

<div class="topic-metadata">

**Author:** [@ZherpiaWhiskers](https://discourse.julialang.org/u/ZherpiaWhiskers)\
**Replies:** 6\
**Last updated:** [July 21, 2024, 7:14am UTC](https://discourse.julialang.org/t/starting-with-julia/117285 "2024-07-21T07:14:28Z")

</div>

Heya! I’m a bit new to Julia, so, i’ve been studying the language for a couple of days, i already know some of the syntax, i’ve learned various types of data structures and I’m going to learn algorithms by implementing t…

---

## [\[ANN\] AlgebraOfGraphics v0.7](https://discourse.julialang.org/t/ann-algebraofgraphics-v0-7/117124)

<div class="topic-metadata">

**Author:** [@jules](https://discourse.julialang.org/u/jules)\
**Replies:** 1\
**Last updated:** [July 21, 2024, 5:45am UTC](https://discourse.julialang.org/t/ann-algebraofgraphics-v0-7/117124 "2024-07-21T05:45:26Z")

</div>

Hello everybody, I’m excited to present version 0.7 of AlgebraOfGraphics.jl. This is work that I’ve been doing during the last two or three months, as we at PumasAI like to use the package but it had been in need of som…

---

## [Notebook widgets do not show up](https://discourse.julialang.org/t/notebook-widgets-do-not-show-up/116985)

<div class="topic-metadata">

**Author:** [@mocalvao](https://discourse.julialang.org/u/mocalvao)\
**Replies:** 1\
**Last updated:** [July 21, 2024, 2:11am UTC](https://discourse.julialang.org/t/notebook-widgets-do-not-show-up/116985 "2024-07-21T02:11:06Z")

</div>

I have Julia version 1.10.4 and the following packages installed in my work environment: \[61744808\] DynamicalSystems v3.3.17 \[7073ff75\] IJulia v1.25.0 \[c601a237\] Interact v0.10.5 \[91a5bcdd\] Plots v1.40.5 \[c3e4b0f8\] …

---

## [How to copy a Axis from fig1 to fig2 in makie?](https://discourse.julialang.org/t/how-to-copy-a-axis-from-fig1-to-fig2-in-makie/92716)

<div class="topic-metadata">

**Author:** [@tiZ](https://discourse.julialang.org/u/tiZ)\
**Replies:** 4\
**Last updated:** [July 20, 2024, 11:24pm UTC](https://discourse.julialang.org/t/how-to-copy-a-axis-from-fig1-to-fig2-in-makie/92716 "2024-07-20T23:24:44Z")

</div>

Hi, I plot a scatter plot in fig1 position \[1,1\], then a lines plot in fig2 position \[1,1\], any idea on how to copy the scatter from fig1\[1,1\] into fig2\[1,2\]? I do some try but failed: x,y = rand(10), rand(10) fig1, a…

---

## [OrderedDict from OrderedCollections.jl](https://discourse.julialang.org/t/ordereddict-from-orderedcollections-jl/117283)

<div class="topic-metadata">

**Author:** [@scottrsm](https://discourse.julialang.org/u/scottrsm)\
**Replies:** 4\
**Last updated:** [July 20, 2024, 10:38pm UTC](https://discourse.julialang.org/t/ordereddict-from-orderedcollections-jl/117283 "2024-07-20T22:38:11Z")

</div>

I tried merging two OrderedDicts with merge (also with merge!). The resulting dictionary was of type OrderedDict but was not Ordered!!!

---

## [Rasters: can I select certain time steps of a lazy rasterseries before or while reading it into memory?](https://discourse.julialang.org/t/rasters-can-i-select-certain-time-steps-of-a-lazy-rasterseries-before-or-while-reading-it-into-memory/116328)

<div class="topic-metadata">

**Author:** [@aasdelat](https://discourse.julialang.org/u/aasdelat)\
**Replies:** 6\
**Last updated:** [July 20, 2024, 8:38pm UTC](https://discourse.julialang.org/t/rasters-can-i-select-certain-time-steps-of-a-lazy-rasterseries-before-or-while-reading-it-into-memory/116328 "2024-07-20T20:38:28Z")

</div>

I have a bunch of grib files, each covering a different time period, but the same spatial extent. I have opened them as a RasterSeries (library Rasters.jl) with lazy=true, so that the data are not loaded into memory. da…

---

## [Exodus.jl error in write from scratch example](https://discourse.julialang.org/t/exodus-jl-error-in-write-from-scratch-example/111696)

<div class="topic-metadata">

**Author:** [@jman87](https://discourse.julialang.org/u/jman87)\
**Replies:** 11\
**Last updated:** [July 20, 2024, 6:15pm UTC](https://discourse.julialang.org/t/exodus-jl-error-in-write-from-scratch-example/111696 "2024-07-20T18:15:21Z")

</div>

@Craig\_Hamel I just installed Exodus.jl on my M2 MacBook Air running Julia 1.10.2. When I try to run the " Write example from scratch" example shown here: GitHub - cmhamel/Exodus.jl: A julia interface for accessing th…

---

## [\[ANN\] REPLSmuggler.jl: Send code to your Julia REPL, and get Neo-Vim diagnostics in return](https://discourse.julialang.org/t/ann-replsmuggler-jl-send-code-to-your-julia-repl-and-get-neo-vim-diagnostics-in-return/111420)

<div class="topic-metadata">

**Author:** [@klafyvel](https://discourse.julialang.org/u/klafyvel)\
**Replies:** 4\
**Last updated:** [July 20, 2024, 5:46pm UTC](https://discourse.julialang.org/t/ann-replsmuggler-jl-send-code-to-your-julia-repl-and-get-neo-vim-diagnostics-in-return/111420 "2024-07-20T17:46:33Z")

</div>

Hi there! I have worked a lot with NeoVim and vim-slime during my PhD. This workflow is great, but I was missing some features, such as having the correct line numbering in exceptions. I have put together a small Julia …

---

## [Custom gradients for function. Resource for rrule and frule](https://discourse.julialang.org/t/custom-gradients-for-function-resource-for-rrule-and-frule/117154)

<div class="topic-metadata">

**Author:** [@KapilKhanal](https://discourse.julialang.org/u/KapilKhanal)\
**Replies:** 18\
**Last updated:** [July 20, 2024, 4:37pm UTC](https://discourse.julialang.org/t/custom-gradients-for-function-resource-for-rrule-and-frule/117154 "2024-07-20T16:37:16Z")

</div>

I am trying to create a custom gradients for a greens function whose term by term direct differentiation is not that accurate and we have a derivation of it’s derivatives and would like to use those. For the simple MWE e…

---

## [Dense Layers in Attention Don't Train](https://discourse.julialang.org/t/dense-layers-in-attention-dont-train/117190)

<div class="topic-metadata">

**Author:** [@Helectus](https://discourse.julialang.org/u/Helectus)\
**Replies:** 1\
**Last updated:** [July 20, 2024, 4:19pm UTC](https://discourse.julialang.org/t/dense-layers-in-attention-dont-train/117190 "2024-07-20T16:19:15Z")

</div>

I am trying to create a transformer model using Flux.jl from scratch. I have an encoder struct that has an attention struct, which includes Q, K, V, O dense layers. My problem is that Dense.weights and Dense.bias don’t s…

---

## [How to make a struct that contains a reference to other memory?](https://discourse.julialang.org/t/how-to-make-a-struct-that-contains-a-reference-to-other-memory/117195)

<div class="topic-metadata">

**Author:** [@AwesomeQuest](https://discourse.julialang.org/u/AwesomeQuest)\
**Replies:** 12\
**Last updated:** [July 20, 2024, 3:53pm UTC](https://discourse.julialang.org/t/how-to-make-a-struct-that-contains-a-reference-to-other-memory/117195 "2024-07-20T15:53:04Z")

</div>

I have a vector of nodes, something like struct Node x::Float64 # more fields end nodes = Vector{Node}(undef, bignumber) And I have a vector of Elements that each contain some nodes struct Element numN…

---

## [Fast read operations from a large array of low-dimensional SVectors](https://discourse.julialang.org/t/fast-read-operations-from-a-large-array-of-low-dimensional-svectors/117264)

<div class="topic-metadata">

**Author:** [@dchatter](https://discourse.julialang.org/u/dchatter)\
**Replies:** 6\
**Last updated:** [July 20, 2024, 2:39pm UTC](https://discourse.julialang.org/t/fast-read-operations-from-a-large-array-of-low-dimensional-svectors/117264 "2024-07-20T14:39:18Z")

</div>

I am looking for a suitable data structure to store the graph of a real-valued function on a rectangular grid in d dimensions; the purpose is given below. The dimension d is at most 5, and SVectors are quite suitable. Ho…

---

## [Understanding SnoopCompile timings](https://discourse.julialang.org/t/understanding-snoopcompile-timings/116892)

<div class="topic-metadata">

**Author:** [@theogf](https://discourse.julialang.org/u/theogf)\
**Replies:** 2\
**Last updated:** [July 20, 2024, 2:22pm UTC](https://discourse.julialang.org/t/understanding-snoopcompile-timings/116892 "2024-07-20T14:22:26Z")

</div>

Hi, First of all SnoopCompile.jl is such an amazing package! Thanks a lot @tim.holy . After using it for a while there is still something I have trouble understanding: When running @snoopi\_deep f(), the exclusive/incl…

---

## [How to create a rolling horizon approach?](https://discourse.julialang.org/t/how-to-create-a-rolling-horizon-approach/117269)

<div class="topic-metadata">

**Author:** [@Jeroen\_Schilder](https://discourse.julialang.org/u/Jeroen_Schilder)\
**Replies:** 2\
**Last updated:** [July 20, 2024, 1:20pm UTC](https://discourse.julialang.org/t/how-to-create-a-rolling-horizon-approach/117269 "2024-07-20T13:20:53Z")

</div>

Hi guys, I failed my first attempt for my bachelor thesis :frowning: , luckily I got a chance to correct my failings, and I have to give a Julia model (link below) a ‘rolling horizon approach’, where an agents optimizes …

---

## [3D interpolation in Julia](https://discourse.julialang.org/t/3d-interpolation-in-julia/117035)

<div class="topic-metadata">

**Author:** [@jgr](https://discourse.julialang.org/u/jgr)\
**Replies:** 21\
**Last updated:** [July 20, 2024, 6:25am UTC](https://discourse.julialang.org/t/3d-interpolation-in-julia/117035 "2024-07-20T06:25:02Z")

</div>

I am doing 3D interpolation with the nodes being \[x,y,z\], where x is a 1\*nx vector, y is 1\*ny,1\*nx, the corresponding values to be interpolated is V which is a nx\*ny\*nz matrix. I use Dierckx for 1d/2d interpolation, but …

---

## [Why \`length(2) == length(\[2\])\`?](https://discourse.julialang.org/t/why-length-2-length-2/117262)

<div class="topic-metadata">

**Author:** [@ykkan](https://discourse.julialang.org/u/ykkan)\
**Replies:** 2\
**Last updated:** [July 20, 2024, 6:16am UTC](https://discourse.julialang.org/t/why-length-2-length-2/117262 "2024-07-20T06:16:17Z")

</div>

Hi everyone, What is the idea behind that the legnth of a single number is 1 instead of 0? Does anyone know the reason for that design? On the other hand, we have length(\[:x\])==1, but when typing length(:x), we will get…

---

## [Calling Fortran shared library in Julia always returns 0.0](https://discourse.julialang.org/t/calling-fortran-shared-library-in-julia-always-returns-0-0/117239)

<div class="topic-metadata">

**Author:** [@tianyi\_zhang](https://discourse.julialang.org/u/tianyi_zhang)\
**Replies:** 4\
**Last updated:** [July 20, 2024, 2:59am UTC](https://discourse.julialang.org/t/calling-fortran-shared-library-in-julia-always-returns-0-0/117239 "2024-07-20T02:59:07Z")

</div>

Hello, everyone in the Julia discourse community, this is my first post here and I’m having a problem with calling Fortran in Julia. The Fortran code I’m calling can be downloaded here, which is a scientific code. What…

---

## [Symbolics Simplification](https://discourse.julialang.org/t/symbolics-simplification/117232)

<div class="topic-metadata">

**Author:** [@brombo](https://discourse.julialang.org/u/brombo)\
**Replies:** 1\
**Last updated:** [July 20, 2024, 1:38am UTC](https://discourse.julialang.org/t/symbolics-simplification/117232 "2024-07-20T01:38:28Z")

</div>

I have started to use the Symbolics package. I am familiar with Sympy and wonder how the simplification of expression in Symbolics compares to that in Sympy both in terms of capability and speed? Also how actively is t…

---

## [Why is there a difference between CWTs generated in python vs julia](https://discourse.julialang.org/t/why-is-there-a-difference-between-cwts-generated-in-python-vs-julia/117259)

<div class="topic-metadata">

**Author:** [@bryaan](https://discourse.julialang.org/u/bryaan)\
**Replies:** 0\
**Last updated:** [July 20, 2024, 12:30am UTC](https://discourse.julialang.org/t/why-is-there-a-difference-between-cwts-generated-in-python-vs-julia/117259 "2024-07-20T00:30:41Z")

</div>

pywt and ContinuousWavelets.jl give very different heatmap results for a cwt. What is the reason for this? In julia: In python:

---

## [How to set the number of scales output of Wavelets.jl](https://discourse.julialang.org/t/how-to-set-the-number-of-scales-output-of-wavelets-jl/117251)

<div class="topic-metadata">

**Author:** [@bryaan](https://discourse.julialang.org/u/bryaan)\
**Replies:** 0\
**Last updated:** [July 19, 2024, 6:34pm UTC](https://discourse.julialang.org/t/how-to-set-the-number-of-scales-output-of-wavelets-jl/117251 "2024-07-19T18:34:32Z")

</div>

By default for my signal Wavelets.jl cwt is giving 28 columns in the output Y matrix. How can I set this to a constant number of columns no matter the signal? using Wavelets Y = Wavelets.cwt(signal, wavelet(WT.dog2))

---

## [Calling julia functions from c and vice versa](https://discourse.julialang.org/t/calling-julia-functions-from-c-and-vice-versa/117254)

<div class="topic-metadata">

**Author:** [@PeterCourcoux](https://discourse.julialang.org/u/PeterCourcoux)\
**Replies:** 1\
**Last updated:** [July 19, 2024, 7:47pm UTC](https://discourse.julialang.org/t/calling-julia-functions-from-c-and-vice-versa/117254 "2024-07-19T19:47:32Z")

</div>

I’m new to both Julia and c. I hope what I’m trying to do makes sense! The general idea is to try to use the enlightenment foundation libraries (enlightenment.org) to build UI’s for julia code, so will need to call both …

---

## [Parquet2.jl 0.2.25 outputting corrupted files (0.2.26 fix now up)](https://discourse.julialang.org/t/parquet2-jl-0-2-25-outputting-corrupted-files-0-2-26-fix-now-up/117102)

<div class="topic-metadata">

**Author:** [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)\
**Replies:** 5\
**Last updated:** [July 19, 2024, 6:29pm UTC](https://discourse.julialang.org/t/parquet2-jl-0-2-25-outputting-corrupted-files-0-2-26-fix-now-up/117102 "2024-07-19T18:29:10Z")

</div>

Recently there has been a change in the parquet thrift metadata schema which I included in Parquet2.jl as of 0.2.25. Unfortunately it looks like this is now outputting corrupt files in many circumstances (can confirm th…

---

## [Conflicts between vscode-vim and Julia code block execution](https://discourse.julialang.org/t/conflicts-between-vscode-vim-and-julia-code-block-execution/117198)

<div class="topic-metadata">

**Author:** [@Strange\_Xue](https://discourse.julialang.org/u/Strange_Xue)\
**Replies:** 2\
**Last updated:** [July 19, 2024, 5:09pm UTC](https://discourse.julialang.org/t/conflicts-between-vscode-vim-and-julia-code-block-execution/117198 "2024-07-19T17:09:01Z")

</div>

HI guys, I use vscode and vscode-vim extension. When executing Julia code blocks through ctrl + enter in normal model, then the mouse cursor will move through, if I click Esc or some moving commands like e, w, then the c…

---

## [Function works correctly for single file, but not in a loop?](https://discourse.julialang.org/t/function-works-correctly-for-single-file-but-not-in-a-loop/116988)

<div class="topic-metadata">

**Author:** [@GeodeticR](https://discourse.julialang.org/u/GeodeticR)\
**Replies:** 8\
**Last updated:** [July 19, 2024, 4:57pm UTC](https://discourse.julialang.org/t/function-works-correctly-for-single-file-but-not-in-a-loop/116988 "2024-07-19T16:57:34Z")

</div>

Okay, I am at a loss here. I have this loop here to skip any data that doesn’t meet a certain threshold. But what I cannot seem to figure out is why this isn’t working in the loop I have, but works fine when I enter it …

---

## [Some strange linking behavior in Julia](https://discourse.julialang.org/t/some-strange-linking-behavior-in-julia/117182)

<div class="topic-metadata">

**Author:** [@dmitry-kabanov](https://discourse.julialang.org/u/dmitry-kabanov)\
**Replies:** 2\
**Last updated:** [July 19, 2024, 10:42am UTC](https://discourse.julialang.org/t/some-strange-linking-behavior-in-julia/117182 "2024-07-19T10:42:20Z")

</div>

Hi, I have some code that embeds Julia and uses OrdinaryDiffEqs.jl. I am also having unit tests, which are organized in such what that the OrdinaryDiffEqs.jl package gets reloaded, while Julia is kept between tests, beca…

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

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