# Latest

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

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

**Page:** 775

---

## [Specifying type of interpolated image in a struct](https://discourse.julialang.org/t/specifying-type-of-interpolated-image-in-a-struct/94978)

<div class="topic-metadata">

**Author:** [@rakshith95](https://discourse.julialang.org/u/rakshith95)\
**Replies:** 2\
**Last updated:** [February 21, 2023, 9:08pm UTC](https://discourse.julialang.org/t/specifying-type-of-interpolated-image-in-a-struct/94978 "2023-02-21T21:08:08Z")

</div>

I have a struct struct some\_struct{} interpolated\_img end where I want to store an interpolation ‘image’. When I print the typeof() such an image, I get Interpolations.BSplineInterpolation{Gray{Float64}, 2, Matrix{…

---

## [Excessive output truncated after 524338 bytes. julia](https://discourse.julialang.org/t/excessive-output-truncated-after-524338-bytes-julia/94935)

<div class="topic-metadata">

**Author:** [@Saba\_ghasemi](https://discourse.julialang.org/u/Saba_ghasemi)\
**Replies:** 12\
**Last updated:** [February 21, 2023, 9:07pm UTC](https://discourse.julialang.org/t/excessive-output-truncated-after-524338-bytes-julia/94935 "2023-02-21T21:07:22Z")

</div>

excessive output truncated after 524338 bytes. julia, How can I solve it?

---

## [TimeSeries Database](https://discourse.julialang.org/t/timeseries-database/94920)

<div class="topic-metadata">

**Author:** [@harsh\_kumar](https://discourse.julialang.org/u/harsh_kumar)\
**Replies:** 8\
**Last updated:** [February 21, 2023, 8:24pm UTC](https://discourse.julialang.org/t/timeseries-database/94920 "2023-02-21T20:24:08Z")

</div>

I have a process (websocket) that push data into a channel on realtime (couple of item every second). Each data points has a timestamp, group columns, and additional fields. I want to store this data on continuous basis …

---

## [Analysis of largescale python vs largescale julia?](https://discourse.julialang.org/t/analysis-of-largescale-python-vs-largescale-julia/94942)

<div class="topic-metadata">

**Author:** [@zeroexcuses](https://discourse.julialang.org/u/zeroexcuses)\
**Replies:** 7\
**Last updated:** [February 21, 2023, 8:13pm UTC](https://discourse.julialang.org/t/analysis-of-largescale-python-vs-largescale-julia/94942 "2023-02-21T20:13:59Z")

</div>

Does anyone have recommendation on article for largescale python codebase vs largescale julia codebase ? I’m fairly convinced Julia unlikely to replace OCaml / Scala for me, but I’m curious on reading about managing lar…

---

## [Pkg within compiled app \[PackageCompiler\]](https://discourse.julialang.org/t/pkg-within-compiled-app-packagecompiler/94963)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 2\
**Last updated:** [February 21, 2023, 8:07pm UTC](https://discourse.julialang.org/t/pkg-within-compiled-app-packagecompiler/94963 "2023-02-21T20:07:30Z")

</div>

Hi, I am experimenting with PackageCompiler.jl and was surprised that the app I build (using incremental=true) does not include Pkg itself. Does someone whether this is intended and if so, whether it is possible to por…

---

## [How can I set solPrint from GAMS in JuMP?](https://discourse.julialang.org/t/how-can-i-set-solprint-from-gams-in-jump/94892)

<div class="topic-metadata">

**Author:** [@Saba\_ghasemi](https://discourse.julialang.org/u/Saba_ghasemi)\
**Replies:** 10\
**Last updated:** [February 21, 2023, 6:59pm UTC](https://discourse.julialang.org/t/how-can-i-set-solprint-from-gams-in-jump/94892 "2023-02-21T18:59:12Z")

</div>

I wanna set solPrint. set\_optimizer\_attribute(model, GAMS.SolPrint(), “0”) Do anyone know how to fix this?

---

## [ZMQ CONFLATE Option](https://discourse.julialang.org/t/zmq-conflate-option/94800)

<div class="topic-metadata">

**Author:** [@hanshinlee77](https://discourse.julialang.org/u/hanshinlee77)\
**Replies:** 2\
**Last updated:** [February 21, 2023, 4:43pm UTC](https://discourse.julialang.org/t/zmq-conflate-option/94800 "2023-02-21T16:43:20Z")

</div>

Hi, I am using ZMQ.jl for a PUB-SUB socket operation. Occasionally, the operation gets into a situation where the subscriber becomes slow and as a result the messages from the publisher accumulates in the subscriber’s b…

---

## [Collecting lint](https://discourse.julialang.org/t/collecting-lint/94969)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 0\
**Last updated:** [February 21, 2023, 4:08pm UTC](https://discourse.julialang.org/t/collecting-lint/94969 "2023-02-21T16:08:05Z")

</div>

Are the linting facilities (packages?) described somewhere in one place? I know that I can use a linter in VSCode, but how about without? Any hints and experience will be appreciated.

---

## [Why on StackOverflow questions are closed so easily](https://discourse.julialang.org/t/why-on-stackoverflow-questions-are-closed-so-easily/94934)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 6\
**Last updated:** [February 21, 2023, 3:12pm UTC](https://discourse.julialang.org/t/why-on-stackoverflow-questions-are-closed-so-easily/94934 "2023-02-21T15:12:52Z")

</div>

In recent years I have found that is very too often that legit questions on so are just closed. Am I the only one? I mean, when this happens to my questions I feel emotional… getting BUM, your question is closed… it’s a…

---

## ["Go to defintition (F12)" doesn't work for functions in a package](https://discourse.julialang.org/t/go-to-defintition-f12-doesnt-work-for-functions-in-a-package/94881)

<div class="topic-metadata">

**Author:** [@kingoslo](https://discourse.julialang.org/u/kingoslo)\
**Replies:** 4\
**Last updated:** [February 21, 2023, 3:39pm UTC](https://discourse.julialang.org/t/go-to-defintition-f12-doesnt-work-for-functions-in-a-package/94881 "2023-02-21T15:39:41Z")

</div>

I am new to using Julia in VSCode. I have installed the Julia language support package that carries the Julia logo. What I want to do, is to find the definition function that was called at runtime. The way I have been t…

---

## [Why I get 1-element Vector{Sym} instead of just number as answer from SymPy?](https://discourse.julialang.org/t/why-i-get-1-element-vector-sym-instead-of-just-number-as-answer-from-sympy/94946)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 4\
**Last updated:** [February 21, 2023, 3:25pm UTC](https://discourse.julialang.org/t/why-i-get-1-element-vector-sym-instead-of-just-number-as-answer-from-sympy/94946 "2023-02-21T15:25:18Z")

</div>

Hi all, it is just a curious question. I am calculating k from this \\int\_{0}^{180} kx^{2} (180 - x) dx = 1 solving for k I should obtain \\frac{1}{87,480,000} but why the answer contains 1-element Vector? instead of j…

---

## [Error in Julia](https://discourse.julialang.org/t/error-in-julia/94954)

<div class="topic-metadata">

**Author:** [@nero](https://discourse.julialang.org/u/nero)\
**Replies:** 2\
**Last updated:** [February 21, 2023, 3:19pm UTC](https://discourse.julialang.org/t/error-in-julia/94954 "2023-02-21T15:19:22Z")

</div>

Greetings I encountered the following error: \[9.780207664750093e7, -4.344016826050785e7\]ERROR: LoadError: MethodError: Cannot convert an object of type Missing to an object of type Float64 Closest candidates are: con…

---

## [Dash.jl 3D plot combining line and surface](https://discourse.julialang.org/t/dash-jl-3d-plot-combining-line-and-surface/94918)

<div class="topic-metadata">

**Author:** [@Maucejo](https://discourse.julialang.org/u/Maucejo)\
**Replies:** 6\
**Last updated:** [February 21, 2023, 2:58pm UTC](https://discourse.julialang.org/t/dash-jl-3d-plot-combining-line-and-surface/94918 "2023-02-21T14:58:29Z")

</div>

Hi all, I am trying to develop a Dash app containing a 3d plot. This plot includes a 3d line and a 3d plane surface. The MWE below gives you a basic overview of the app. using PlotlyJS using Dash, DashBootstrapComponent…

---

## [GLMakie change SliderGrid on Menu](https://discourse.julialang.org/t/glmakie-change-slidergrid-on-menu/94914)

<div class="topic-metadata">

**Author:** [@vandenman](https://discourse.julialang.org/u/vandenman)\
**Replies:** 4\
**Last updated:** [February 21, 2023, 9:35am UTC](https://discourse.julialang.org/t/glmakie-change-slidergrid-on-menu/94914 "2023-02-21T09:35:01Z")

</div>

I’m trying to create a small interactive plot/ dashboard to showcase different network models during a presentation. My goal is to have a menu in the top left to select a model, a series of sliders below it to adjust the…

---

## [How to add Another Line Plot to DataFrame and CSV Plot?](https://discourse.julialang.org/t/how-to-add-another-line-plot-to-dataframe-and-csv-plot/94910)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 2\
**Last updated:** [February 21, 2023, 9:10am UTC](https://discourse.julialang.org/t/how-to-add-another-line-plot-to-dataframe-and-csv-plot/94910 "2023-02-21T09:10:35Z")

</div>

Hi all, I am trying to add another plot of Book Value per Share. It is following this tutorial: https://www.juliabloggers.com/using-julia-for-data-science-part-03-plotting/ this is my code: using CSV, Dates, DataFra…

---

## [Reinit! dynamicalsystems.jl](https://discourse.julialang.org/t/reinit-dynamicalsystems-jl/94620)

<div class="topic-metadata">

**Author:** [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Replies:** 4\
**Last updated:** [February 21, 2023, 6:01am UTC](https://discourse.julialang.org/t/reinit-dynamicalsystems-jl/94620 "2023-02-21T06:01:37Z")

</div>

Hello, I want to write code for an orbit diagram for a continuous system with a detailed setting, and I have a questions. Where can i find source code for function \_poincaresos from produce\_orbit diagram.jl? How do I bu…

---

## [Package errored during testing on Github Actions (exit code 541541187)](https://discourse.julialang.org/t/package-errored-during-testing-on-github-actions-exit-code-541541187/94947)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 0\
**Last updated:** [February 21, 2023, 6:00am UTC](https://discourse.julialang.org/t/package-errored-during-testing-on-github-actions-exit-code-541541187/94947 "2023-02-21T06:00:52Z")

</div>

For some reason that I don’t understand, tests for a package that I’m working on keep failing on Windows with the following error message: ERROR: LoadError: Package ApproxFunOrthogonalPolynomials errored during testing …

---

## [Implementation of self-attention in Transformers.jl?](https://discourse.julialang.org/t/implementation-of-self-attention-in-transformers-jl/94732)

<div class="topic-metadata">

**Author:** [@rkube](https://discourse.julialang.org/u/rkube)\
**Replies:** 9\
**Last updated:** [February 21, 2023, 4:51am UTC](https://discourse.julialang.org/t/implementation-of-self-attention-in-transformers-jl/94732 "2023-02-21T04:51:03Z")

</div>

Hi, I’m following this tutorial on implementing transformer architectures and have a question on how to best implement a self-attention block. My current code for a single attention head looks like this: # Self-attent…

---

## [Basic question on Julia symbolic. How to keep exp(1) as is and not convert it to a floating point number?](https://discourse.julialang.org/t/basic-question-on-julia-symbolic-how-to-keep-exp-1-as-is-and-not-convert-it-to-a-floating-point-number/86476)

<div class="topic-metadata">

**Author:** [@Nasser](https://discourse.julialang.org/u/Nasser)\
**Replies:** 22\
**Last updated:** [February 21, 2023, 4:35am UTC](https://discourse.julialang.org/t/basic-question-on-julia-symbolic-how-to-keep-exp-1-as-is-and-not-convert-it-to-a-floating-point-number/86476 "2023-02-21T04:35:38Z")

</div>

I am converting some symbolic integrals to see if I can evaluate them in Julia symbolic. Some of these have things like exp(1) but Julia automatically convert this to number 2.718281828459045 What do I need to keep it…

---

## [Does the julia intrinsic sum() apply fastmath by default?](https://discourse.julialang.org/t/does-the-julia-intrinsic-sum-apply-fastmath-by-default/94815)

<div class="topic-metadata">

**Author:** [@Ender\_L](https://discourse.julialang.org/u/Ender_L)\
**Replies:** 15\
**Last updated:** [February 21, 2023, 4:05am UTC](https://discourse.julialang.org/t/does-the-julia-intrinsic-sum-apply-fastmath-by-default/94815 "2023-02-21T04:05:00Z")

</div>

I noticed the output of sum() is different from custom loops julia\> function mysum(A) out = 0.0 for ii in eachindex(A) out += A\[ii\] end return out end my…

---

## [How to check where memory is used in REPL?](https://discourse.julialang.org/t/how-to-check-where-memory-is-used-in-repl/94895)

<div class="topic-metadata">

**Author:** [@jsjie](https://discourse.julialang.org/u/jsjie)\
**Replies:** 4\
**Last updated:** [February 21, 2023, 1:14am UTC](https://discourse.julialang.org/t/how-to-check-where-memory-is-used-in-repl/94895 "2023-02-21T01:14:16Z")

</div>

My package suffers from large memory usage, and I wanna know why by testing in REPL. I track the total message in two ways: examing result of top use the following code in REPL: my\_command = pipeline(\`cat /proc/$(ge…

---

## [How to apply an activation function to a subset of output units?](https://discourse.julialang.org/t/how-to-apply-an-activation-function-to-a-subset-of-output-units/33202)

<div class="topic-metadata">

**Author:** [@johnbb](https://discourse.julialang.org/u/johnbb)\
**Replies:** 4\
**Last updated:** [February 21, 2023, 12:34am UTC](https://discourse.julialang.org/t/how-to-apply-an-activation-function-to-a-subset-of-output-units/33202 "2023-02-21T00:34:19Z")

</div>

Using Flux I would like to apply an activation function to all but the first output unit. More precisely, I would like to constrain all but the first unit to be non-negative. How can I achieve that? Thanks.

---

## [Not fast enough backward pass on transformer model](https://discourse.julialang.org/t/not-fast-enough-backward-pass-on-transformer-model/94735)

<div class="topic-metadata">

**Author:** [@reachtarunhere](https://discourse.julialang.org/u/reachtarunhere)\
**Replies:** 5\
**Last updated:** [February 21, 2023, 12:25am UTC](https://discourse.julialang.org/t/not-fast-enough-backward-pass-on-transformer-model/94735 "2023-02-21T00:25:07Z")

</div>

I have implemented a basic transformer like model and have a reference version in PyTorch 2.0 (which does a few extra ops like masking but not less work basically) I am getting comparable performance in the forward pass …

---

## [Why CPU % reaches 80s when running julia code with no parallization?](https://discourse.julialang.org/t/why-cpu-reaches-80s-when-running-julia-code-with-no-parallization/94936)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 7\
**Last updated:** [February 21, 2023, 12:18am UTC](https://discourse.julialang.org/t/why-cpu-reaches-80s-when-running-julia-code-with-no-parallization/94936 "2023-02-21T00:18:22Z")

</div>

I have a julia code that consumes 34s (when using @time). I don’t have any parallelization in it (i.e., no parallel package is called nor directives) and nthreads()=1. However, when I check the task manager, I find that …

---

## [@infiltrate not getting triggered](https://discourse.julialang.org/t/infiltrate-not-getting-triggered/94937)

<div class="topic-metadata">

**Author:** [@prittjam](https://discourse.julialang.org/u/prittjam)\
**Replies:** 6\
**Last updated:** [February 20, 2023, 10:45pm UTC](https://discourse.julialang.org/t/infiltrate-not-getting-triggered/94937 "2023-02-20T22:45:23Z")

</div>

It seems that sometimes @infiltrate is not stopping execution. I don’t understand when and why it is happening. Anyone else experiences similar?

---

## [Working with Julia Symbolics](https://discourse.julialang.org/t/working-with-julia-symbolics/94933)

<div class="topic-metadata">

**Author:** [@Cougar](https://discourse.julialang.org/u/Cougar)\
**Replies:** 2\
**Last updated:** [February 20, 2023, 10:35pm UTC](https://discourse.julialang.org/t/working-with-julia-symbolics/94933 "2023-02-20T22:35:41Z")

</div>

Using Symbolics, wanting Julia to determine that \\lfloor\\, 10 \\sqrt{3} \\,\\rfloor = 17, and print 17 instead of floor(10sqrt(3)) … julia\> x = 10 \* Symbolics.Term(sqrt,\[3\]) 10sqrt(3) julia\> y = floor(x) floor(10sqrt(3))…

---

## [Move Colorbar in Makie a little to the right?](https://discourse.julialang.org/t/move-colorbar-in-makie-a-little-to-the-right/94912)

<div class="topic-metadata">

**Author:** [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)\
**Replies:** 2\
**Last updated:** [February 20, 2023, 9:28pm UTC](https://discourse.julialang.org/t/move-colorbar-in-makie-a-little-to-the-right/94912 "2023-02-20T21:28:57Z")

</div>

Hi all. I am doing some figures in InteractiveViz.jl that is based in GLMakie. I am adding a Colorbar in place (not with the standard f\[1,2\] of axis) and I need to move it a bit the the right. Any help? Colorbar(viz.…

---

## [Why is \`Test\` so meta-programming heavy?](https://discourse.julialang.org/t/why-is-test-so-meta-programming-heavy/94619)

<div class="topic-metadata">

**Author:** [@nrontsis](https://discourse.julialang.org/u/nrontsis)\
**Replies:** 29\
**Last updated:** [February 20, 2023, 8:14pm UTC](https://discourse.julialang.org/t/why-is-test-so-meta-programming-heavy/94619 "2023-02-20T20:14:33Z")

</div>

I am quite puzzled by the design choices of Julia’s Test - so I thought I should write my current understanding so that people can tell me what they think, or if I am misunderstanding something. As I understand it, Juli…

---

## [JuMP(+Juniper) Error registering user-defined function](https://discourse.julialang.org/t/jump-juniper-error-registering-user-defined-function/94909)

<div class="topic-metadata">

**Author:** [@PrimulaBunce](https://discourse.julialang.org/u/PrimulaBunce)\
**Replies:** 2\
**Last updated:** [February 20, 2023, 7:46pm UTC](https://discourse.julialang.org/t/jump-juniper-error-registering-user-defined-function/94909 "2023-02-20T19:46:36Z")

</div>

Hi, I’m trying to register a user-defined function in JuMP and get the following error: ERROR: Unable to register the function :f\_objective. Common reasons for this include: \* The function takes \`f(x::Vector)\` as in…

---

## [Symbolics.jl: Why doesn't a matrix multiplied by its inverse simplify to the identity?](https://discourse.julialang.org/t/symbolics-jl-why-doesnt-a-matrix-multiplied-by-its-inverse-simplify-to-the-identity/65978)

<div class="topic-metadata">

**Author:** [@garrek](https://discourse.julialang.org/u/garrek)\
**Replies:** 3\
**Last updated:** [February 20, 2023, 7:16pm UTC](https://discourse.julialang.org/t/symbolics-jl-why-doesnt-a-matrix-multiplied-by-its-inverse-simplify-to-the-identity/65978 "2023-02-20T19:16:36Z")

</div>

Expected behavior: Using simplify in the Symbolics.jl package, return the identity for the operation A^-1 \* A for a square matrix involving multiplication of trigonometric functions in the matrix elements (assuming det(A…

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

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