# Latest

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

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

**Page:** 1170

---

## [How to define a data-dependent model without using global variables](https://discourse.julialang.org/t/how-to-define-a-data-dependent-model-without-using-global-variables/73584)

<div class="topic-metadata">

**Author:** [@chen2021](https://discourse.julialang.org/u/chen2021)\
**Replies:** 4\
**Last updated:** [December 25, 2021, 4:40am UTC](https://discourse.julialang.org/t/how-to-define-a-data-dependent-model-without-using-global-variables/73584 "2021-12-25T04:40:20Z")

</div>

Hi, I am facing a problem that the network model depends on data. In fact, I am trying to train an iterator to solve $Au=f$，the model performs a single-step iteration u\_next = model(u), hence the model depends on A and f…

---

## [How to use a variable of \`Symbol\` type as a argument when using @eval to define function?](https://discourse.julialang.org/t/how-to-use-a-variable-of-symbol-type-as-a-argument-when-using-eval-to-define-function/73586)

<div class="topic-metadata">

**Author:** [@timacro](https://discourse.julialang.org/u/timacro)\
**Replies:** 4\
**Last updated:** [December 25, 2021, 2:04am UTC](https://discourse.julialang.org/t/how-to-use-a-variable-of-symbol-type-as-a-argument-when-using-eval-to-define-function/73586 "2021-12-25T02:04:12Z")

</div>

I try to use @eval to generate a function, with a Symbol as its argument, the following code works good: arg = :(a::String) @eval function hello($arg) print($arg) end got a function signature as hello(a::String) ..…

---

## [Appending rows to a dataframe is seemingly inconsistent and confusing](https://discourse.julialang.org/t/appending-rows-to-a-dataframe-is-seemingly-inconsistent-and-confusing/73298)

<div class="topic-metadata">

**Author:** [@JackStrauss](https://discourse.julialang.org/u/JackStrauss)\
**Replies:** 11\
**Last updated:** [December 24, 2021, 11:24pm UTC](https://discourse.julialang.org/t/appending-rows-to-a-dataframe-is-seemingly-inconsistent-and-confusing/73298 "2021-12-24T23:24:25Z")

</div>

Hi Everybody Coming from python and R, I find Julia a breath of fresh air. Usually so much better. But, I find dataframes, and especially adding rows to dataframes is very confusing, and much harder than R or python. H…

---

## [New: WildBootTests for wild-bootstrap-based inference on linear models](https://discourse.julialang.org/t/new-wildboottests-for-wild-bootstrap-based-inference-on-linear-models/73567)

<div class="topic-metadata">

**Author:** [@droodman](https://discourse.julialang.org/u/droodman)\
**Replies:** 1\
**Last updated:** [December 24, 2021, 10:49pm UTC](https://discourse.julialang.org/t/new-wildboottests-for-wild-bootstrap-based-inference-on-linear-models/73567 "2021-12-24T22:49:38Z")

</div>

WildBootTests.jl is a Julia translation of the Stata package boottest, which is the most developed program for performing inference on linear models using the wild bootstrap. So it is algorithmically mature, but not quit…

---

## [3d shape datasets in Julia?](https://discourse.julialang.org/t/3d-shape-datasets-in-julia/73594)

<div class="topic-metadata">

**Author:** [@DeepQ](https://discourse.julialang.org/u/DeepQ)\
**Replies:** 0\
**Last updated:** [December 24, 2021, 7:39pm UTC](https://discourse.julialang.org/t/3d-shape-datasets-in-julia/73594 "2021-12-24T19:39:22Z")

</div>

I want to use neural networks to create 3d shapes using Eikonal equation. I want to know where I could find small 3d datasets.

---

## [Smooth animation in Dash for Julia with dcc\_interval](https://discourse.julialang.org/t/smooth-animation-in-dash-for-julia-with-dcc-interval/70126)

<div class="topic-metadata">

**Author:** [@valeroc](https://discourse.julialang.org/u/valeroc)\
**Replies:** 0\
**Last updated:** [October 21, 2021, 5:14am UTC](https://discourse.julialang.org/t/smooth-animation-in-dash-for-julia-with-dcc-interval/70126 "2021-10-21T05:14:34Z")

</div>

Hi, I have been exploring how to do smooth animations in Dash for Julia and found a way of doing it using dcc\_interval. I am not sure this is the best way to proceed but it seems to work fine when running in the local se…

---

## [SOLVED: Animations and "\_display has no backend"](https://discourse.julialang.org/t/solved-animations-and-display-has-no-backend/28024)

<div class="topic-metadata">

**Author:** [@Brad\_Hines](https://discourse.julialang.org/u/Brad_Hines)\
**Replies:** 0\
**Last updated:** [August 27, 2019, 4:11am UTC](https://discourse.julialang.org/t/solved-animations-and-display-has-no-backend/28024 "2019-08-27T04:11:06Z")

</div>

Recording this just in case it helps someone else in the future. I have a function that sometimes I use for animation, and sometimes just to pop up an image. It had been working great, then suddenly failed with “\_displ…

---

## [VegaLite Line Plot Question](https://discourse.julialang.org/t/vegalite-line-plot-question/73562)

<div class="topic-metadata">

**Author:** [@dbjulia](https://discourse.julialang.org/u/dbjulia)\
**Replies:** 2\
**Last updated:** [December 24, 2021, 3:52pm UTC](https://discourse.julialang.org/t/vegalite-line-plot-question/73562 "2021-12-24T15:52:23Z")

</div>

I am trying to using VegaLite for a simple line plot. However, when I try and have the x-axis sort how the dataframe is sorted vs the default sort done Vegalite the line plot goes haywire. See below code and example can …

---

## [Changing '"' char by '\`' in FunSQL and MySQL query](https://discourse.julialang.org/t/changing-char-by-in-funsql-and-mysql-query/73589)

<div class="topic-metadata">

**Author:** [@cesarmarinhorj](https://discourse.julialang.org/u/cesarmarinhorj)\
**Replies:** 1\
**Last updated:** [December 24, 2021, 2:31pm UTC](https://discourse.julialang.org/t/changing-char-by-in-funsql-and-mysql-query/73589 "2021-12-24T14:31:26Z")

</div>

I am testing FunSQL (is amazing!!!) examples are in SQLite, ok, going to MySQL. my simple query dont works, because of extras ‘"’ chars around field names. Ok, so made a function, that replace them, as: function chang…

---

## [Animating a spring pendulum](https://discourse.julialang.org/t/animating-a-spring-pendulum/73588)

<div class="topic-metadata">

**Author:** [@Ogweno\_Emmanuel](https://discourse.julialang.org/u/Ogweno_Emmanuel)\
**Replies:** 2\
**Last updated:** [December 24, 2021, 2:16pm UTC](https://discourse.julialang.org/t/animating-a-spring-pendulum/73588 "2021-12-24T14:16:01Z")

</div>

Hello, I have been working on a mini-project; to solve a second-order coupled differential equation of a spring pendulum and to animate the swing of the pendulum. I have managed to solve the two coupled differential equ…

---

## [Trilinear interpolation in Julia?](https://discourse.julialang.org/t/trilinear-interpolation-in-julia/73547)

<div class="topic-metadata">

**Author:** [@DeepQ](https://discourse.julialang.org/u/DeepQ)\
**Replies:** 5\
**Last updated:** [December 24, 2021, 12:10pm UTC](https://discourse.julialang.org/t/trilinear-interpolation-in-julia/73547 "2021-12-24T12:10:41Z")

</div>

I need a package for graphics applications. Which package contains spatial mappings such as trilinear interpolation?

---

## [Lesson1 - creating .jl file and running it from Julia](https://discourse.julialang.org/t/lesson1-creating-jl-file-and-running-it-from-julia/73580)

<div class="topic-metadata">

**Author:** [@Derrick\_Kassen](https://discourse.julialang.org/u/Derrick_Kassen)\
**Replies:** 3\
**Last updated:** [December 24, 2021, 10:18am UTC](https://discourse.julialang.org/t/lesson1-creating-jl-file-and-running-it-from-julia/73580 "2021-12-24T10:18:37Z")

</div>

Hi there, I’ve installed Julia - using a Mac. I’ve created my first julia file and saved it in my Folder on my Desktop as a .jl file using Brackets (as text editor). When I launch Julia and type: include(“Example1.jl”)…

---

## [Julia in atom and jupyter notebook](https://discourse.julialang.org/t/julia-in-atom-and-jupyter-notebook/73576)

<div class="topic-metadata">

**Author:** [@Xuekui\_wang](https://discourse.julialang.org/u/Xuekui_wang)\
**Replies:** 0\
**Last updated:** [December 24, 2021, 8:05am UTC](https://discourse.julialang.org/t/julia-in-atom-and-jupyter-notebook/73576 "2021-12-24T08:05:25Z")

</div>

Now, I am using julia 1.6.3 in atom, everything is ok. When I add IJulia in REPL of atom, and jupyter notebook also was installed. then I build IJulia and used notebook for julia. However, everything in notebook was no…

---

## [Model issue: Model(Flux) return same output every time in Genie.jl](https://discourse.julialang.org/t/model-issue-model-flux-return-same-output-every-time-in-genie-jl/73528)

<div class="topic-metadata">

**Author:** [@Ashwani\_Rathee](https://discourse.julialang.org/u/Ashwani_Rathee)\
**Replies:** 1\
**Last updated:** [December 24, 2021, 7:38am UTC](https://discourse.julialang.org/t/model-issue-model-flux-return-same-output-every-time-in-genie-jl/73528 "2021-12-24T07:38:54Z")

</div>

I have been working on a real time speech recogniser system which can be used to play snakegame which uses Flux.jl, PortAudio.jl, GameZero.jl, Genie.jl and good amount of image and sound packages. But this genie model de…

---

## [StackOverflowError() while compiling a package with PackageCompiler.jl](https://discourse.julialang.org/t/stackoverflowerror-while-compiling-a-package-with-packagecompiler-jl/73571)

<div class="topic-metadata">

**Author:** [@guilhermebodin](https://discourse.julialang.org/u/guilhermebodin)\
**Replies:** 1\
**Last updated:** [December 24, 2021, 7:02am UTC](https://discourse.julialang.org/t/stackoverflowerror-while-compiling-a-package-with-packagecompiler-jl/73571 "2021-12-24T07:02:24Z")

</div>

Hello, I am trying to compile a private package and got this error StackOverflowError() \_ZNK4llvm5Value20stripInBoundsOffsetsENS\_12function\_refIFvPKS0\_EEE at C:\\Users\\guilhermebodin\\AppData\\Local\\Programs\\Julia-1.6.4\\bi…

---

## [Functions vs let](https://discourse.julialang.org/t/functions-vs-let/73573)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 1\
**Last updated:** [December 24, 2021, 4:26am UTC](https://discourse.julialang.org/t/functions-vs-let/73573 "2021-12-24T04:26:59Z")

</div>

They say don’t calculate in global scope, do it inside functions instead. Is let good enough for this purpose, so I don’t need to define and call a function?

---

## [Improving Channel throughput: batching](https://discourse.julialang.org/t/improving-channel-throughput-batching/73569)

<div class="topic-metadata">

**Author:** [@tbenst](https://discourse.julialang.org/u/tbenst)\
**Replies:** 3\
**Last updated:** [December 24, 2021, 4:14am UTC](https://discourse.julialang.org/t/improving-channel-throughput-batching/73569 "2021-12-24T04:14:38Z")

</div>

I’ve noticed when using Channel that my code spends a lot of time doing lock / unlock. To improve this, I implemented take!, put! (varargs), and puts!(vector) that allow for taking or putting multiple items at once. This…

---

## [Issue with LSTM with Flux](https://discourse.julialang.org/t/issue-with-lstm-with-flux/73563)

<div class="topic-metadata">

**Author:** [@Vishal\_Sharma1](https://discourse.julialang.org/u/Vishal_Sharma1)\
**Replies:** 0\
**Last updated:** [December 23, 2021, 11:54pm UTC](https://discourse.julialang.org/t/issue-with-lstm-with-flux/73563 "2021-12-23T23:54:41Z")

</div>

I am new to Flux and trying to get LSTM model for a time series prediction working but currently stuck at an error which I dont seem to understand. train\_data, train\_labels, test\_data, test\_labels = getData(df) model …

---

## [Simplify with Symbolics.jl](https://discourse.julialang.org/t/simplify-with-symbolics-jl/73545)

<div class="topic-metadata">

**Author:** [@sungj](https://discourse.julialang.org/u/sungj)\
**Replies:** 2\
**Last updated:** [December 23, 2021, 10:32pm UTC](https://discourse.julialang.org/t/simplify-with-symbolics-jl/73545 "2021-12-23T22:32:13Z")

</div>

Hi, How can I simplify this simple expression? julia\> using Symbolics julia\> @variables x, y, z 3-element Vector{Num}: x y z julia\> simplify( cos(x)^2\*cos(y)^2\*cos(z)^2 + cos(x)^2\*sin(y)^2\*cos(z)^2 ) (cos(x)^2)\*(c…

---

## [Modeling dynamic economic systems using ModelingToolkit (MTK)](https://discourse.julialang.org/t/modeling-dynamic-economic-systems-using-modelingtoolkit-mtk/72861)

<div class="topic-metadata">

**Author:** [@finmod](https://discourse.julialang.org/u/finmod)\
**Replies:** 14\
**Last updated:** [December 23, 2021, 9:38pm UTC](https://discourse.julialang.org/t/modeling-dynamic-economic-systems-using-modelingtoolkit-mtk/72861 "2021-12-23T21:38:56Z")

</div>

I am seeking help in specifying a dynamic economic model in MTK. Although I have followed the evolution of MTK since its creation, I have difficulties with “function” as a function can be the whole model, a function of p…

---

## [Readline function problem](https://discourse.julialang.org/t/readline-function-problem/71104)

<div class="topic-metadata">

**Author:** [@Salvatore\_Candita](https://discourse.julialang.org/u/Salvatore_Candita)\
**Replies:** 5\
**Last updated:** [December 23, 2021, 9:11pm UTC](https://discourse.julialang.org/t/readline-function-problem/71104 "2021-12-23T21:11:58Z")

</div>

hi everyone, i have a problem with the function readline in jypyter notebook using vscode: whenever i use this function, it gives me stacktrace error. I can’t understand why because if i use it in the terminal with juli…

---

## [Cannot return Result in OMJulia](https://discourse.julialang.org/t/cannot-return-result-in-omjulia/73406)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 11\
**Last updated:** [December 23, 2021, 8:43pm UTC](https://discourse.julialang.org/t/cannot-return-result-in-omjulia/73406 "2021-12-23T20:43:39Z")

</div>

@arun3688 arun3688 @JKRT RT @AnHeuermann AnHeuermann I am using OpenModelica and I am trying to read the output (i.e., s here). I tried several ways but could not succeed. Any idea to solve that? using OMJulia omc= O…

---

## [Julia v1.7.1 has been released](https://discourse.julialang.org/t/julia-v1-7-1-has-been-released/73549)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 0\
**Last updated:** [December 23, 2021, 8:31pm UTC](https://discourse.julialang.org/t/julia-v1-7-1-has-been-released/73549 "2021-12-23T20:31:38Z")

</div>

Julia version 1.7.1, the first patch release in the 1.7 series of releases, is now available. You can get binaries for glibc Linux (i686, x86-64, AArch64), musl Linux (x86-64), FreeBSD (x86-64), macOS (x86-64, AArch64), …

---

## [AssertionError: 0 \< tid \<= length(THREAD\_RNGs) during compilation with PackageCompiler](https://discourse.julialang.org/t/assertionerror-0-tid-length-thread-rngs-during-compilation-with-packagecompiler/69179)

<div class="topic-metadata">

**Author:** [@clarakoehne](https://discourse.julialang.org/u/clarakoehne)\
**Replies:** 16\
**Last updated:** [December 23, 2021, 8:17pm UTC](https://discourse.julialang.org/t/assertionerror-0-tid-length-thread-rngs-during-compilation-with-packagecompiler/69179 "2021-12-23T20:17:58Z")

</div>

Hey there, I’m trying to compile a project using the PackageCompiler module. The compilation is part of a conda build process, i.e. I’m trying to make and upload a bioconda package from my project. However, I get the fo…

---

## [On creating subpackage correctly- specific case](https://discourse.julialang.org/t/on-creating-subpackage-correctly-specific-case/73543)

<div class="topic-metadata">

**Author:** [@yewalenikhil65](https://discourse.julialang.org/u/yewalenikhil65)\
**Replies:** 3\
**Last updated:** [December 23, 2021, 8:02pm UTC](https://discourse.julialang.org/t/on-creating-subpackage-correctly-specific-case/73543 "2021-12-23T20:02:42Z")

</div>

How do one avoid re-importing (dont want to use using dep\_package\_1 more than once) a dependency in case of creating a sub-package: situation in detail as follows: module mypackage using dep\_package\_1 # dependency …

---

## [Instructions to install GMT.jl on Ubuntu](https://discourse.julialang.org/t/instructions-to-install-gmt-jl-on-ubuntu/73486)

<div class="topic-metadata">

**Author:** [@leon](https://discourse.julialang.org/u/leon)\
**Replies:** 13\
**Last updated:** [December 23, 2021, 7:54pm UTC](https://discourse.julialang.org/t/instructions-to-install-gmt-jl-on-ubuntu/73486 "2021-12-23T19:54:14Z")

</div>

Is this the correct way of installing GMT.jl on Ubuntu? https://github.com/GenericMappingTools/gmt/blob/master/BUILDING.md#build-and-runtime-dependencies It seems there are a lot of manual steps.

---

## [How to set the environment variable MATLAB\_ROOT when installing MATLAB.jl?](https://discourse.julialang.org/t/how-to-set-the-environment-variable-matlab-root-when-installing-matlab-jl/73536)

<div class="topic-metadata">

**Author:** [@leon](https://discourse.julialang.org/u/leon)\
**Replies:** 2\
**Last updated:** [December 23, 2021, 4:56pm UTC](https://discourse.julialang.org/t/how-to-set-the-environment-variable-matlab-root-when-installing-matlab-jl/73536 "2021-12-23T16:56:59Z")

</div>

My goal is to install MATLAB.jl package. The instructions say the below" “By default, MATLAB.jl uses the MATLAB installation with the greatest version number. To specify that a specific MATLAB installation should be use…

---

## [How to simulate friends on a GridSpace in Agents.jl](https://discourse.julialang.org/t/how-to-simulate-friends-on-a-gridspace-in-agents-jl/73484)

<div class="topic-metadata">

**Author:** [@sbacelar](https://discourse.julialang.org/u/sbacelar)\
**Replies:** 4\
**Last updated:** [December 23, 2021, 6:54pm UTC](https://discourse.julialang.org/t/how-to-simulate-friends-on-a-gridspace-in-agents-jl/73484 "2021-12-23T18:54:22Z")

</div>

I am using Agents.jl and I want to create for each agent a list of (the ids) other agents that are his friends. I am working on a GridSpace (not in a GraphSpace). For each agent, the list of friends has a random size be…

---

## [Function defined as multidimensional integral](https://discourse.julialang.org/t/function-defined-as-multidimensional-integral/73535)

<div class="topic-metadata">

**Author:** [@Federico\_Compagnin](https://discourse.julialang.org/u/Federico_Compagnin)\
**Replies:** 5\
**Last updated:** [December 23, 2021, 6:31pm UTC](https://discourse.julialang.org/t/function-defined-as-multidimensional-integral/73535 "2021-12-23T18:31:26Z")

</div>

Hi, I’m trying to define a new function as follows: meaning, I’d like to integrate over x and y, leaving z as a variable. I thought maybe to integrate z over (0,z) and then differentiate the function with respect to z…

---

## [How do a I get a type "stripped" of parameters?](https://discourse.julialang.org/t/how-do-a-i-get-a-type-stripped-of-parameters/73465)

<div class="topic-metadata">

**Author:** [@ablaom](https://discourse.julialang.org/u/ablaom)\
**Replies:** 10\
**Last updated:** [December 23, 2021, 6:15pm UTC](https://discourse.julialang.org/t/how-do-a-i-get-a-type-stripped-of-parameters/73465 "2021-12-23T18:15:47Z")

</div>

struct Foo{T} end What function takes Foo{Int} and returns the parent UnionAll type, Foo?

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

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