# Latest

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

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

**Page:** 530

---

## [How to get information about symbol scoping in Julia while compilation?](https://discourse.julialang.org/t/how-to-get-information-about-symbol-scoping-in-julia-while-compilation/107643)

<div class="topic-metadata">

**Author:** [@Akhil\_Akkapelli](https://discourse.julialang.org/u/Akhil_Akkapelli)\
**Replies:** 3\
**Last updated:** [December 15, 2023, 4:01pm UTC](https://discourse.julialang.org/t/how-to-get-information-about-symbol-scoping-in-julia-while-compilation/107643 "2023-12-15T16:01:50Z")

</div>

I’m interested in understanding how Julia determines the scope of each symbol during compilation. I’d like to get detailed information about the scope of every symbol instance in the code, ideally as output from the comp…

---

## [Documenter.jl: Link to Source not working](https://discourse.julialang.org/t/documenter-jl-link-to-source-not-working/107673)

<div class="topic-metadata">

**Author:** [@kealme](https://discourse.julialang.org/u/kealme)\
**Replies:** 0\
**Last updated:** [December 15, 2023, 3:22pm UTC](https://discourse.julialang.org/t/documenter-jl-link-to-source-not-working/107673 "2023-12-15T15:22:54Z")

</div>

Hi, I’m using Documenter.jl to create my documentation. However, the “Link to Source”, which is available in every HTML-page, where i reference to some function of my package, is broken. It actually appears, but just li…

---

## [Speeding up JuMP model creation with sets that depend on other indexes](https://discourse.julialang.org/t/speeding-up-jump-model-creation-with-sets-that-depend-on-other-indexes/107333)

<div class="topic-metadata">

**Author:** [@abelsiqueira](https://discourse.julialang.org/u/abelsiqueira)\
**Replies:** 8\
**Last updated:** [December 15, 2023, 3:18pm UTC](https://discourse.julialang.org/t/speeding-up-jump-model-creation-with-sets-that-depend-on-other-indexes/107333 "2023-12-15T15:18:48Z")

</div>

I am looking for tips on building a model with variables, expressions, and constraints over sets that depends on indexes from other sets. For instance: @expression(model, \[i = 1:5, j = blah\[i\]\], ...) where blah is a di…

---

## [Fieldnames for a user-defined struct](https://discourse.julialang.org/t/fieldnames-for-a-user-defined-struct/107661)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 3\
**Last updated:** [December 15, 2023, 3:03pm UTC](https://discourse.julialang.org/t/fieldnames-for-a-user-defined-struct/107661 "2023-12-15T15:03:37Z")

</div>

Suppose I have a variable ‘x’ which is of type ‘mydatatype’ which is a user-defined struct. When I tried fieldnames(x) I got a method error. Is it because I need a method of ‘fieldnames’ for my self-defined datatype? …

---

## [\[Workgroup\] JuliaHealth End of Year Celebration! 🎉](https://discourse.julialang.org/t/workgroup-juliahealth-end-of-year-celebration/107304)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 1\
**Last updated:** [December 15, 2023, 2:53pm UTC](https://discourse.julialang.org/t/workgroup-juliahealth-end-of-year-celebration/107304 "2023-12-15T14:53:05Z")

</div>

Hey JuliaHealth folks! As I cancelled last month’s meeting in lieu of combining November’s and December’s meeting into one final meeting for the year, let’s meet next Friday December 15th at 10AM EST to do a year end Ju…

---

## [Does it make sense to short-circuit \`isassigned\` for arrays of bitstypes?](https://discourse.julialang.org/t/does-it-make-sense-to-short-circuit-isassigned-for-arrays-of-bitstypes/107666)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 0\
**Last updated:** [December 15, 2023, 2:11pm UTC](https://discourse.julialang.org/t/does-it-make-sense-to-short-circuit-isassigned-for-arrays-of-bitstypes/107666 "2023-12-15T14:11:29Z")

</div>

E.g. something like julia\> @inline \_isassigned(A::Array{Float64}, inds...) = (@boundscheck checkbounds(Bool, A, inds...); true) \_isassigned (generic function with 1 method) julia\> @code\_typed (A -\> @inbounds \_isassigne…

---

## [Fields of a struct](https://discourse.julialang.org/t/fields-of-a-struct/107664)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 5\
**Last updated:** [December 15, 2023, 2:03pm UTC](https://discourse.julialang.org/t/fields-of-a-struct/107664 "2023-12-15T14:03:27Z")

</div>

julia\> fieldnames(typeof(state)) (:hamiltonian, :replicas, :maxlength, :r\_strat, :s\_strat, :τ\_strat, :post\_step, :replica) julia\> state.step 5000 julia\> state.laststep 5000 It is strange that while the variable ‘state…

---

## [Trying to understand pointers and aliasing](https://discourse.julialang.org/t/trying-to-understand-pointers-and-aliasing/107604)

<div class="topic-metadata">

**Author:** [@LucasMontoya4](https://discourse.julialang.org/u/LucasMontoya4)\
**Replies:** 5\
**Last updated:** [December 15, 2023, 1:11pm UTC](https://discourse.julialang.org/t/trying-to-understand-pointers-and-aliasing/107604 "2023-12-15T13:11:53Z")

</div>

Hi there, I’m trying to understand what the difference is when you copy elements of an array to another array, vs. setting one equal to another (which results in both just being pointers to the same piece of memory, if I…

---

## [Centred subplot in Makie](https://discourse.julialang.org/t/centred-subplot-in-makie/107660)

<div class="topic-metadata">

**Author:** [@xztt](https://discourse.julialang.org/u/xztt)\
**Replies:** 1\
**Last updated:** [December 15, 2023, 1:09pm UTC](https://discourse.julialang.org/t/centred-subplot-in-makie/107660 "2023-12-15T13:09:58Z")

</div>

Hi, I am looking for a way to do the below in the image. I know I could generate a subplot which spans the whole length of A and B however I can not appear to find an intuitive way to plot a third figure C which spans h…

---

## [Function discovery](https://discourse.julialang.org/t/function-discovery/107652)

<div class="topic-metadata">

**Author:** [@glebm](https://discourse.julialang.org/u/glebm)\
**Replies:** 3\
**Last updated:** [December 15, 2023, 12:28pm UTC](https://discourse.julialang.org/t/function-discovery/107652 "2023-12-15T12:28:42Z")

</div>

Today I wrote my first program in Julia (solution for Advent of Code 15)! A problem I immediately hit is function discovery. E.g. if have an object x, what can I do with it? In many other languages I type x. and the IDE…

---

## [MethodError: no method matching add\_to\_expression!(::JuMP.AffExpr, ::JuMP.QuadExpr)](https://discourse.julialang.org/t/methoderror-no-method-matching-add-to-expression-jump-affexpr-jump-quadexpr/107379)

<div class="topic-metadata">

**Author:** [@Betristor](https://discourse.julialang.org/u/Betristor)\
**Replies:** 2\
**Last updated:** [December 15, 2023, 12:18pm UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-add-to-expression-jump-affexpr-jump-quadexpr/107379 "2023-12-15T12:18:21Z")

</div>

I got a model like using JuMP, Ipopt m = Model(Ipopt.Optimizer) @variable(m, x\[i=1:2\]\>=0) @expression(m, e1\[i=1:2\], i\*m\[:x\]\[i\]) ## Affine @expression(m, e2\[i=1:2\], m\[:x\]\[i\]^i) ## At most quadric add\_to\_expression!.(m\[:e…

---

## [Adding Plotly package](https://discourse.julialang.org/t/adding-plotly-package/107658)

<div class="topic-metadata">

**Author:** [@soo\_y](https://discourse.julialang.org/u/soo_y)\
**Replies:** 0\
**Last updated:** [December 15, 2023, 11:54am UTC](https://discourse.julialang.org/t/adding-plotly-package/107658 "2023-12-15T11:54:52Z")

</div>

I am trying to install Plotly. But it has been like below for hours and hours and no progress. Is there something going on with this package? \_ \_ \_(\_)\_ | Documentation: https://docs.julialang.org (\_) …

---

## [\[ANN\] New package \`GroupPresentations\`](https://discourse.julialang.org/t/ann-new-package-grouppresentations/107605)

<div class="topic-metadata">

**Author:** [@Jean\_Michel](https://discourse.julialang.org/u/Jean_Michel)\
**Replies:** 2\
**Last updated:** [December 15, 2023, 11:42am UTC](https://discourse.julialang.org/t/ann-new-package-grouppresentations/107605 "2023-12-15T11:42:58Z")

</div>

GroupPresentations is a port of some GAP3/VkCurve functionality on presentations of finitely presented groups. We have defined just enough functionality on finitely presented groups so that presentations can be…

---

## [Julia User Group Mainz (Germany)](https://discourse.julialang.org/t/julia-user-group-mainz-germany/107656)

<div class="topic-metadata">

**Author:** [@ranocha](https://discourse.julialang.org/u/ranocha)\
**Replies:** 0\
**Last updated:** [December 15, 2023, 11:26am UTC](https://discourse.julialang.org/t/julia-user-group-mainz-germany/107656 "2023-12-15T11:26:14Z")

</div>

We have initiated a new Julia User Group in Mainz (Germany). It provides a platform for everybody interested in Julia - both people new to Julia and people having worked with Julia for years. Our meetings shall provide o…

---

## [Stuck using backtracking](https://discourse.julialang.org/t/stuck-using-backtracking/107222)

<div class="topic-metadata">

**Author:** [@bombusfragrans](https://discourse.julialang.org/u/bombusfragrans)\
**Replies:** 2\
**Last updated:** [December 15, 2023, 9:15am UTC](https://discourse.julialang.org/t/stuck-using-backtracking/107222 "2023-12-15T09:15:04Z")

</div>

Hello. To improve my skills I am experimenting with backtracking as a potential approach to solve a verbal arithmetic (alphametics) puzzle. As a starting point I tried to develop a simple implementation of a backtracki…

---

## [What is the @named macro needed for?](https://discourse.julialang.org/t/what-is-the-named-macro-needed-for/107647)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [December 15, 2023, 8:48am UTC](https://discourse.julialang.org/t/what-is-the-named-macro-needed-for/107647 "2023-12-15T08:48:05Z")

</div>

Why is the @named macro needed here: @named sys = ODESystem(eqs, t) I am NOT giving a name to the ODE system… But I get an error if I leave it out.

---

## [JuliaUserGroupMunich: Tim Besard, GPU Programming in Julia: What, Why and How?](https://discourse.julialang.org/t/juliausergroupmunich-tim-besard-gpu-programming-in-julia-what-why-and-how/106358)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 4\
**Last updated:** [December 15, 2023, 7:49am UTC](https://discourse.julialang.org/t/juliausergroupmunich-tim-besard-gpu-programming-in-julia-what-why-and-how/106358 "2023-12-15T07:49:55Z")

</div>

Join us online :spiral\_calendar: Monday 4. Monday 11. December 2023 :clock630: CET 18:30. organized via meetup GPU Programming in Julia: What, Why and How? ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ I am glad to welcome Tim Besar…

---

## [How do I restrict the number of digits in the REPL display?](https://discourse.julialang.org/t/how-do-i-restrict-the-number-of-digits-in-the-repl-display/107501)

<div class="topic-metadata">

**Author:** [@chandra](https://discourse.julialang.org/u/chandra)\
**Replies:** 9\
**Last updated:** [December 15, 2023, 3:30am UTC](https://discourse.julialang.org/t/how-do-i-restrict-the-number-of-digits-in-the-repl-display/107501 "2023-12-15T03:30:26Z")

</div>

I wish to restrict the number of significant digits displayed on the REPL according to a context-dependent format like format in MATLAB or Octave. I have looked through the documentation, but have not seen what I am lo…

---

## [A problem: writing results to a file in parallel](https://discourse.julialang.org/t/a-problem-writing-results-to-a-file-in-parallel/106172)

<div class="topic-metadata">

**Author:** [@zhpf0530](https://discourse.julialang.org/u/zhpf0530)\
**Replies:** 14\
**Last updated:** [December 15, 2023, 1:28am UTC](https://discourse.julialang.org/t/a-problem-writing-results-to-a-file-in-parallel/106172 "2023-12-15T01:28:20Z")

</div>

I’m a newbie in julia language, I’ve written a parallel code using Distributed, and I want to write the intermediate results of the program’s calculations to a file, this is my code. using Distributed # Set up p…

---

## [How to break down string into chunk of n Kb while maintaining meaning](https://discourse.julialang.org/t/how-to-break-down-string-into-chunk-of-n-kb-while-maintaining-meaning/107629)

<div class="topic-metadata">

**Author:** [@Simone\_Gabbriellini](https://discourse.julialang.org/u/Simone_Gabbriellini)\
**Replies:** 1\
**Last updated:** [December 14, 2023, 11:45pm UTC](https://discourse.julialang.org/t/how-to-break-down-string-into-chunk-of-n-kb-while-maintaining-meaning/107629 "2023-12-14T23:45:22Z")

</div>

I am sending string to AWS Translate but I need to respect the 10000Kb limit for the string. in case I have longer strings, I am using this approach my\_long\_string = "some very long text...." # AWS limit aws\_limit = 10…

---

## [How to best preallocate nested tuples of dataframes to store simulation results?](https://discourse.julialang.org/t/how-to-best-preallocate-nested-tuples-of-dataframes-to-store-simulation-results/107543)

<div class="topic-metadata">

**Author:** [@Tetrakai](https://discourse.julialang.org/u/Tetrakai)\
**Replies:** 31\
**Last updated:** [December 14, 2023, 10:56pm UTC](https://discourse.julialang.org/t/how-to-best-preallocate-nested-tuples-of-dataframes-to-store-simulation-results/107543 "2023-12-14T22:56:13Z")

</div>

I’m trying to run some sport game simulations and programmatically store the results in the most efficient manner. Even if not strictly necessary for my purpose, I am trying to learn how to do right. Right now my order …

---

## [Issue with BifurcationKit.continuation and arbitrary ODE system - MethodErrors (Convert, ambiguous, Incorrect matrix dimensions...)](https://discourse.julialang.org/t/issue-with-bifurcationkit-continuation-and-arbitrary-ode-system-methoderrors-convert-ambiguous-incorrect-matrix-dimensions/107636)

<div class="topic-metadata">

**Author:** [@Mahnoor\_Pop](https://discourse.julialang.org/u/Mahnoor_Pop)\
**Replies:** 0\
**Last updated:** [December 14, 2023, 10:44pm UTC](https://discourse.julialang.org/t/issue-with-bifurcationkit-continuation-and-arbitrary-ode-system-methoderrors-convert-ambiguous-incorrect-matrix-dimensions/107636 "2023-12-14T22:44:28Z")

</div>

Hi all! I’m trying to set up a pipeline for creating an ODE system based on a network of interactions. As a simple example, the corresponding system for the following network would be as such: \\frac{dA}{dt}=-A+\\Phi(FB…

---

## [Are there guidelines or rules of thumb on how to stack hidden layers in a RNN?](https://discourse.julialang.org/t/are-there-guidelines-or-rules-of-thumb-on-how-to-stack-hidden-layers-in-a-rnn/107307)

<div class="topic-metadata">

**Author:** [@Hugo](https://discourse.julialang.org/u/Hugo)\
**Replies:** 5\
**Last updated:** [December 14, 2023, 10:25pm UTC](https://discourse.julialang.org/t/are-there-guidelines-or-rules-of-thumb-on-how-to-stack-hidden-layers-in-a-rnn/107307 "2023-12-14T22:25:03Z")

</div>

I’m currently working on the prediction of chaotic data and I have decided to see how well would an RNN, namely an LSTM, would do. I am fairly new to the topic of Neural Networks, but I have found a spate of helpful reso…

---

## [Number of solvers available for DifferentialEquations.jl?](https://discourse.julialang.org/t/number-of-solvers-available-for-differentialequations-jl/107607)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 8\
**Last updated:** [December 14, 2023, 10:14pm UTC](https://discourse.julialang.org/t/number-of-solvers-available-for-differentialequations-jl/107607 "2023-12-14T22:14:23Z")

</div>

I am preparing a talk. I would like to know: How many different solvers are available when you use the package DifferentialEquations.jl? I don’t need the exact number, just an estimate…

---

## [Plots, InitError GR\_jll not defined](https://discourse.julialang.org/t/plots-initerror-gr-jll-not-defined/107633)

<div class="topic-metadata">

**Author:** [@hilbertstraum](https://discourse.julialang.org/u/hilbertstraum)\
**Replies:** 0\
**Last updated:** [December 14, 2023, 9:25pm UTC](https://discourse.julialang.org/t/plots-initerror-gr-jll-not-defined/107633 "2023-12-14T21:25:32Z")

</div>

Hi, im new to Julia and wanted to try out some plotting with the Plots-Package. Did run into similar problems as: or: but the solution did not work out for me. I got the GR.plot(rand(10)) to work, but “using Plots…

---

## [Why Turing.jl does not work with NUTS() and HMC() samplers?](https://discourse.julialang.org/t/why-turing-jl-does-not-work-with-nuts-and-hmc-samplers/107616)

<div class="topic-metadata">

**Author:** [@josimar](https://discourse.julialang.org/u/josimar)\
**Replies:** 2\
**Last updated:** [December 14, 2023, 7:19pm UTC](https://discourse.julialang.org/t/why-turing-jl-does-not-work-with-nuts-and-hmc-samplers/107616 "2023-12-14T19:19:50Z")

</div>

I am experimenting with the Turing.jl package. I am trying to run the example model below but I get an error messagge when I try to use the NUTS() or the HMC() samplers. The error only occurs when I try to slice the arra…

---

## [Change the values in colorbar to cover all values](https://discourse.julialang.org/t/change-the-values-in-colorbar-to-cover-all-values/107603)

<div class="topic-metadata">

**Author:** [@quantum](https://discourse.julialang.org/u/quantum)\
**Replies:** 0\
**Last updated:** [December 14, 2023, 9:07am UTC](https://discourse.julialang.org/t/change-the-values-in-colorbar-to-cover-all-values/107603 "2023-12-14T09:07:40Z")

</div>

I am new to python and Julia. I want add a color bar to a scatter plot. But the values of colorbar just cover one group of points. How can I change the color bar to cover all the values? My code attached. fig, ax = PyPl…

---

## [Julia packages with Singularity](https://discourse.julialang.org/t/julia-packages-with-singularity/19883)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 19\
**Last updated:** [December 14, 2023, 6:14pm UTC](https://discourse.julialang.org/t/julia-packages-with-singularity/19883 "2023-12-14T18:14:15Z")

</div>

How do we create Singularity containers which contains a reproducible set of packages which are installed at countainer build time? Singularity https://www.sylabs.io/ This discussion should follow on from a thread on t…

---

## [Reproducing MATLAB's \`filter\` behavior](https://discourse.julialang.org/t/reproducing-matlabs-filter-behavior/107619)

<div class="topic-metadata">

**Author:** [@Abdulrhmn\_Ghanem](https://discourse.julialang.org/u/Abdulrhmn_Ghanem)\
**Replies:** 2\
**Last updated:** [December 14, 2023, 5:50pm UTC](https://discourse.julialang.org/t/reproducing-matlabs-filter-behavior/107619 "2023-12-14T17:50:08Z")

</div>

Hi I am trying to reproduce the following matlab code using julia. NEst = 1000 % length estimation record \[b,a\] = cheby1(3, 0.5, 2\*\[0.15 0.3\]); % the coefficients of the true IIR system % gen…

---

## [How do I change the dimension of an array](https://discourse.julialang.org/t/how-do-i-change-the-dimension-of-an-array/107623)

<div class="topic-metadata">

**Author:** [@Leon6](https://discourse.julialang.org/u/Leon6)\
**Replies:** 3\
**Last updated:** [December 14, 2023, 5:47pm UTC](https://discourse.julialang.org/t/how-do-i-change-the-dimension-of-an-array/107623 "2023-12-14T17:47:25Z")

</div>

If I have an array with the size of 33x180x360, how do I change it to the size of 33x360x180? Thank you.

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

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