# Latest

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

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

**Page:** 837

---

## [Parallelize groupby combine](https://discourse.julialang.org/t/parallelize-groupby-combine/91710)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 2\
**Last updated:** [December 15, 2022, 8:05pm UTC](https://discourse.julialang.org/t/parallelize-groupby-combine/91710 "2022-12-15T20:05:39Z")

</div>

For transform(df, cols =\> ByRow(f)) I can parallelize by replacing ByRow with a parallel map . Is it possible to parallelize combine(groupby(df, cols), ...) ?

---

## [Tail-call recursion](https://discourse.julialang.org/t/tail-call-recursion/87847)

<div class="topic-metadata">

**Author:** [@gbellomia](https://discourse.julialang.org/u/gbellomia)\
**Replies:** 41\
**Last updated:** [December 15, 2022, 7:38pm UTC](https://discourse.julialang.org/t/tail-call-recursion/87847 "2022-12-15T19:38:26Z")

</div>

Does Julia have tail call elimination? And how good it is implemented? To clarify: it really is a design choice somehow, strongly functional oriented or pure functional languages normally are really good at this, as recu…

---

## [What's a good way to add method to \`Base.MainInclude.eval\`?](https://discourse.julialang.org/t/whats-a-good-way-to-add-method-to-base-maininclude-eval/91697)

<div class="topic-metadata">

**Author:** [@iago-lito](https://discourse.julialang.org/u/iago-lito)\
**Replies:** 1\
**Last updated:** [December 15, 2022, 7:34pm UTC](https://discourse.julialang.org/t/whats-a-good-way-to-add-method-to-base-maininclude-eval/91697 "2022-12-15T19:34:38Z")

</div>

My module provides utilities to generate optimized code based on user input. For instance, a generate function returns values of type Expr, that the user is responsible to evaluate whenever they need: code, data = gene…

---

## [Unreliable computations on GPU with Flux](https://discourse.julialang.org/t/unreliable-computations-on-gpu-with-flux/91696)

<div class="topic-metadata">

**Author:** [@Avec](https://discourse.julialang.org/u/Avec)\
**Replies:** 1\
**Last updated:** [December 15, 2022, 4:09pm UTC](https://discourse.julialang.org/t/unreliable-computations-on-gpu-with-flux/91696 "2022-12-15T16:09:04Z")

</div>

Hi all, I have a problem with optimization of convolutional neural networks on GPU. I would like to run a couple of experiments from the same initial values of network parameters, but for some reason, when it is run on G…

---

## [Prioritising GPU Primitives from Vendor-Specialised Libraries](https://discourse.julialang.org/t/prioritising-gpu-primitives-from-vendor-specialised-libraries/91700)

<div class="topic-metadata">

**Author:** [@anicusan](https://discourse.julialang.org/u/anicusan)\
**Replies:** 1\
**Last updated:** [December 15, 2022, 3:49pm UTC](https://discourse.julialang.org/t/prioritising-gpu-primitives-from-vendor-specialised-libraries/91700 "2022-12-15T15:49:39Z")

</div>

Hi, and thank you for the amazing Julia GPGPU ecosystem you’re building! I’d like to hear your thoughts on GPU primitives on our platforms. Julia - with multiple dispatch, homoiconicity and libraries like GPUCompiler a…

---

## [Wrong font style being selected in Makie](https://discourse.julialang.org/t/wrong-font-style-being-selected-in-makie/91640)

<div class="topic-metadata">

**Author:** [@vembha](https://discourse.julialang.org/u/vembha)\
**Replies:** 6\
**Last updated:** [December 15, 2022, 2:34pm UTC](https://discourse.julialang.org/t/wrong-font-style-being-selected-in-makie/91640 "2022-12-15T14:34:08Z")

</div>

Hello, While plotting using ‘Makie.jl’, I am passing the command titlefont = "Arial" in Axis() command to change the title font to Arial, and as expected, I get to see Arial font being used. But when I pass titlefont = …

---

## [How to Obtain the Final Numerical Result if The Integral is in Gamma function?](https://discourse.julialang.org/t/how-to-obtain-the-final-numerical-result-if-the-integral-is-in-gamma-function/91699)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 3\
**Last updated:** [December 15, 2022, 2:19pm UTC](https://discourse.julialang.org/t/how-to-obtain-the-final-numerical-result-if-the-integral-is-in-gamma-function/91699 "2022-12-15T14:19:48Z")

</div>

Hi all, I compute using this code: using SymPy integrate(3+ sin(x^2), (x, 0, 2)) The answer is not a single number, but a fraction with Gamma function, which should be able to be computed with Julia, but I do not kno…

---

## [\[ANN\] AutomationLabs.jl](https://discourse.julialang.org/t/ann-automationlabs-jl/91705)

<div class="topic-metadata">

**Author:** [@bienpierre](https://discourse.julialang.org/u/bienpierre)\
**Replies:** 0\
**Last updated:** [December 15, 2022, 1:52pm UTC](https://discourse.julialang.org/t/ann-automationlabs-jl/91705 "2022-12-15T13:52:51Z")

</div>

Hi everyone, I have released the package AutomationLabs.jl and subpackages AutomationLabsIdentification.jl, AutomationLabsModelPredictiveControl.jl and AutomationLabsDepot.jl. See AutomationLabs github page for details. …

---

## [\[ANN\] Quaternions.jl v0.7.0](https://discourse.julialang.org/t/ann-quaternions-jl-v0-7-0/91368)

<div class="topic-metadata">

**Author:** [@hyrodium](https://discourse.julialang.org/u/hyrodium)\
**Replies:** 4\
**Last updated:** [December 15, 2022, 1:51pm UTC](https://discourse.julialang.org/t/ann-quaternions-jl-v0-7-0/91368 "2022-12-15T13:51:08Z")

</div>

@sethaxen and I have been working on maintaining the Quaternion.jl this year. Today, version v0.7.0 has been released with some breaking changes, and this will likely be the last release before v1.0.0. The changes we w…

---

## [Problem with boundary conditions in Gridap and GridapGmsh](https://discourse.julialang.org/t/problem-with-boundary-conditions-in-gridap-and-gridapgmsh/89658)

<div class="topic-metadata">

**Author:** [@rouckas](https://discourse.julialang.org/u/rouckas)\
**Replies:** 1\
**Last updated:** [December 15, 2022, 1:39pm UTC](https://discourse.julialang.org/t/problem-with-boundary-conditions-in-gridap-and-gridapgmsh/89658 "2022-12-15T13:39:25Z")

</div>

Dear all, I am trying to solve some 2D electrostatic problem (Poisson Equation) using Gripap.jl and gmsh for mesh generation. I solve for the potential in space bounded by conductors, which have surface potentials presc…

---

## [Error precompiling Plots: RecipesBase.jl:607 needs to be placed at the top level, or use "eval"](https://discourse.julialang.org/t/error-precompiling-plots-recipesbase-jl-607-needs-to-be-placed-at-the-top-level-or-use-eval/91694)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 7\
**Last updated:** [December 15, 2022, 12:56pm UTC](https://discourse.julialang.org/t/error-precompiling-plots-recipesbase-jl-607-needs-to-be-placed-at-the-top-level-or-use-eval/91694 "2022-12-15T12:56:22Z")

</div>

Any hint on how to solve this precompilation problem? I’m using an environment and all the packages seem up to date. precompile Precompiling project... ✗ Plots 0 dependencies successfully precompiled in 2 seconds. 1…

---

## [Why I can't plot the integral function with SymPy and Plots?](https://discourse.julialang.org/t/why-i-cant-plot-the-integral-function-with-sympy-and-plots/91690)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 7\
**Last updated:** [December 15, 2022, 11:50am UTC](https://discourse.julialang.org/t/why-i-cant-plot-the-integral-function-with-sympy-and-plots/91690 "2022-12-15T11:50:50Z")

</div>

Hi all, I have this simple integral function: \\int (5 + \\sin \\ x)^{4} \\ dx and I want to plot the integral function above so I use this code: using SymPy, Plots f(x) = integrate((5 + sin(x))^4) plot(f) but it gets…

---

## [TableView/Blink alternatives](https://discourse.julialang.org/t/tableview-blink-alternatives/90232)

<div class="topic-metadata">

**Author:** [@Paul\_Soderlind](https://discourse.julialang.org/u/Paul_Soderlind)\
**Replies:** 8\
**Last updated:** [December 15, 2022, 10:16am UTC](https://discourse.julialang.org/t/tableview-blink-alternatives/90232 "2022-12-15T10:16:00Z")

</div>

Is there a good alternative to the TableView/Blink combination? I used to pretty-print tables with w = Blink.Window() body!(w,showtable(tab,height = "100vh")) But it seems that the manifest of Blink has not been updat…

---

## [Why the \`sqrt(x)\` does not including the minus part?](https://discourse.julialang.org/t/why-the-sqrt-x-does-not-including-the-minus-part/91676)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 4\
**Last updated:** [December 15, 2022, 9:09am UTC](https://discourse.julialang.org/t/why-the-sqrt-x-does-not-including-the-minus-part/91676 "2022-12-15T09:09:55Z")

</div>

HI all, I try this: sqrt(1) why it only returns 1.0 not +1 and -1 ? How to get all the roots? Which packages to use? Thanks.

---

## [Using LsqFit on complex data](https://discourse.julialang.org/t/using-lsqfit-on-complex-data/79620)

<div class="topic-metadata">

**Author:** [@PazzyBoardman449](https://discourse.julialang.org/u/PazzyBoardman449)\
**Replies:** 7\
**Last updated:** [December 15, 2022, 7:32am UTC](https://discourse.julialang.org/t/using-lsqfit-on-complex-data/79620 "2022-12-15T07:32:30Z")

</div>

I’m trying to use LsqFit.jl to fit data that is complex (in the form x + im\*y). For purposes of showing the problem, I’m using the example provided on GitHub for LsqFit but I’m changing the model such that it has an imag…

---

## [How to Simplify Symbolic Calculations with SymPy (A+B)(A-B) = A^{2} - B^{2}](https://discourse.julialang.org/t/how-to-simplify-symbolic-calculations-with-sympy-a-b-a-b-a-2-b-2/91680)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 2\
**Last updated:** [December 15, 2022, 7:27am UTC](https://discourse.julialang.org/t/how-to-simplify-symbolic-calculations-with-sympy-a-b-a-b-a-2-b-2/91680 "2022-12-15T07:27:45Z")

</div>

Hi all, I have this integral with Mean Value Theorem to find value of c: \\frac{\\int\_{A}^{B} (ax+b) \\ dx}{B-A} = f(c) with f(c) = ac+b then I use this code: using SymPy x, a, b = symbols("x a b") A, B = symbols("A…

---

## [Can Gnuplot Made by Lazarus Plot 3D surface along with its orthogonal line in Julia?](https://discourse.julialang.org/t/can-gnuplot-made-by-lazarus-plot-3d-surface-along-with-its-orthogonal-line-in-julia/91429)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 4\
**Last updated:** [December 15, 2022, 7:06am UTC](https://discourse.julialang.org/t/can-gnuplot-made-by-lazarus-plot-3d-surface-along-with-its-orthogonal-line-in-julia/91429 "2022-12-15T07:06:30Z")

</div>

I have been looking how to create this: Then saw this link: and this discussion: I tried with LazySets to create without the plane: using LazySets, LaTeXStrings using Plots: plot, plot!, text, lens!, bbox gr() …

---

## [How to Use SymPy to calculate Definite Integrals with Symbols of Constant?](https://discourse.julialang.org/t/how-to-use-sympy-to-calculate-definite-integrals-with-symbols-of-constant/91673)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 2\
**Last updated:** [December 15, 2022, 6:58am UTC](https://discourse.julialang.org/t/how-to-use-sympy-to-calculate-definite-integrals-with-symbols-of-constant/91673 "2022-12-15T06:58:21Z")

</div>

Hi all, I am using SymPy to try calculate this \\int\_{A}^{B} ax+b \\ dx the function f(x) = ax+b where a and b are constant in symbolics. The integral is definite but, the interval of the integral is in symbolics too A …

---

## [How to Use SymPy to calculate definite integral for Absolute value function / |x|?](https://discourse.julialang.org/t/how-to-use-sympy-to-calculate-definite-integral-for-absolute-value-function-x/91674)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 1\
**Last updated:** [December 15, 2022, 6:51am UTC](https://discourse.julialang.org/t/how-to-use-sympy-to-calculate-definite-integral-for-absolute-value-function-x/91674 "2022-12-15T06:51:26Z")

</div>

Hi all, another integral problem, I thought this could be done to calculate the simple: \\int\_{-2}^{2} |x| \\ dx with this code: x = symbols("x") f(x) = abs(x) integrate(f, (x, -2, 2)) The errors: LoadError: Method…

---

## [How to animate Sierpinski triangle construction](https://discourse.julialang.org/t/how-to-animate-sierpinski-triangle-construction/91315)

<div class="topic-metadata">

**Author:** [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Replies:** 21\
**Last updated:** [December 15, 2022, 6:43am UTC](https://discourse.julialang.org/t/how-to-animate-sierpinski-triangle-construction/91315 "2022-12-15T06:43:00Z")

</div>

How do I get an animated gif from the following construction? Possibly also changing the functions used, if a different function is more suitable for the case. using Plots gr() tr=\[(0,0),(1,0),0.5.\*(1,sqrt(3))\] p=plot(…

---

## [Compare Windows And Linux](https://discourse.julialang.org/t/compare-windows-and-linux/88406)

<div class="topic-metadata">

**Author:** [@empireofhappy](https://discourse.julialang.org/u/empireofhappy)\
**Replies:** 82\
**Last updated:** [December 15, 2022, 6:39am UTC](https://discourse.julialang.org/t/compare-windows-and-linux/88406 "2022-12-15T06:39:48Z")

</div>

Hello, my dear friend! Joking. Fellows! I research some info (for my personal experience, not for assignment or smt) about Windows and Linux operating systems. I’m comparing these operating systems to know what’s reall…

---

## [Large FASTA datasets?](https://discourse.julialang.org/t/large-fasta-datasets/90786)

<div class="topic-metadata">

**Author:** [@M-PERSIC](https://discourse.julialang.org/u/M-PERSIC)\
**Replies:** 7\
**Last updated:** [December 15, 2022, 6:21am UTC](https://discourse.julialang.org/t/large-fasta-datasets/90786 "2022-12-15T06:21:59Z")

</div>

Hello! Apologies if this is the wrong place to post this question. I’m playing around with TranscodingStreams and I want to compare the compression of FASTA files with different codecs. I can make my own randomized FAST…

---

## [Creating an animation with data from dataframe using GLMakie?](https://discourse.julialang.org/t/creating-an-animation-with-data-from-dataframe-using-glmakie/91627)

<div class="topic-metadata">

**Author:** [@rud-lucien](https://discourse.julialang.org/u/rud-lucien)\
**Replies:** 5\
**Last updated:** [December 15, 2022, 1:47am UTC](https://discourse.julialang.org/t/creating-an-animation-with-data-from-dataframe-using-glmakie/91627 "2022-12-15T01:47:13Z")

</div>

Hi, Hoping to get some help figuring how to create an animation in Makie using data from a DataFrame. Specifically I was trying to animate a point moving through a line using the scatter function. Below is about as far …

---

## [How can I declare a function in a module for the sole purpose of being extended by users?](https://discourse.julialang.org/t/how-can-i-declare-a-function-in-a-module-for-the-sole-purpose-of-being-extended-by-users/91661)

<div class="topic-metadata">

**Author:** [@Chong\_Wang](https://discourse.julialang.org/u/Chong_Wang)\
**Replies:** 1\
**Last updated:** [December 15, 2022, 12:07am UTC](https://discourse.julialang.org/t/how-can-i-declare-a-function-in-a-module-for-the-sole-purpose-of-being-extended-by-users/91661 "2022-12-15T00:07:33Z")

</div>

Suppose I have such a module module Foo abstract type Bar end function do\_something(bar::Bar) bar\_prepared = prepare(bar) "do something" end end My intention for the user is that the user will define a concr…

---

## [How can I call Julia's StaticArrays.SMatrix from Python](https://discourse.julialang.org/t/how-can-i-call-julias-staticarrays-smatrix-from-python/91660)

<div class="topic-metadata">

**Author:** [@bd1](https://discourse.julialang.org/u/bd1)\
**Replies:** 0\
**Last updated:** [December 14, 2022, 11:18pm UTC](https://discourse.julialang.org/t/how-can-i-call-julias-staticarrays-smatrix-from-python/91660 "2022-12-14T23:18:34Z")

</div>

I am trying to run Julia code from Python using PyJulia. I am confused about how should I run mat = SMatrix{2, 2}(\[1 2; 3 4\]) in Python? I was trying from julia import StaticArrays as sa mat = sa.SMatrix{2, 2}(\[1 2; …

---

## [Comparison of Automatic Differentiation (AD)?](https://discourse.julialang.org/t/comparison-of-automatic-differentiation-ad/91544)

<div class="topic-metadata">

**Author:** [@bdas123](https://discourse.julialang.org/u/bdas123)\
**Replies:** 6\
**Last updated:** [December 14, 2022, 11:05pm UTC](https://discourse.julialang.org/t/comparison-of-automatic-differentiation-ad/91544 "2022-12-14T23:05:22Z")

</div>

Hello! Has there been a recent study (within the past year) that compares the speed/performance of difference Automatic Differentiation packages (Zygote, ReverseDiff, etc.)?

---

## [Function that fixes an argument of another function](https://discourse.julialang.org/t/function-that-fixes-an-argument-of-another-function/91423)

<div class="topic-metadata">

**Author:** [@DanielVandH](https://discourse.julialang.org/u/DanielVandH)\
**Replies:** 4\
**Last updated:** [December 14, 2022, 10:46pm UTC](https://discourse.julialang.org/t/function-that-fixes-an-argument-of-another-function/91423 "2022-12-14T22:46:46Z")

</div>

I need to define a function that fixes the value of another function’s argument. One way is the following: using InvertedIndices, PreallocationTools, BenchmarkTools function construct\_fixed\_f(g, n, val, cache) new\_f…

---

## [Convert between indexing formats](https://discourse.julialang.org/t/convert-between-indexing-formats/91658)

<div class="topic-metadata">

**Author:** [@smartalecH](https://discourse.julialang.org/u/smartalecH)\
**Replies:** 2\
**Last updated:** [December 14, 2022, 10:50pm UTC](https://discourse.julialang.org/t/convert-between-indexing-formats/91658 "2022-12-14T22:50:59Z")

</div>

Julia’s eachindex function makes it really easy to iterate over multidimensional arrays. Sometimes, however, I need access to not just the sequential index as described in memory (an Int) but also the individual dimensio…

---

## [Loading a module with Project.toml containing the name field but no uuid](https://discourse.julialang.org/t/loading-a-module-with-project-toml-containing-the-name-field-but-no-uuid/91651)

<div class="topic-metadata">

**Author:** [@Olivier\_Merchiers](https://discourse.julialang.org/u/Olivier_Merchiers)\
**Replies:** 2\
**Last updated:** [December 14, 2022, 10:13pm UTC](https://discourse.julialang.org/t/loading-a-module-with-project-toml-containing-the-name-field-but-no-uuid/91651 "2022-12-14T22:13:31Z")

</div>

Hello everyone, I’m on a constant quest to find the easiest way to load a module without using include. I discovered recently through the use of the DrWatson.jl package that you can do using MyPkg from its environment …

---

## [DataDrivenProblem strange error](https://discourse.julialang.org/t/datadrivenproblem-strange-error/91621)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 10\
**Last updated:** [December 14, 2022, 6:58pm UTC](https://discourse.julialang.org/t/datadrivenproblem-strange-error/91621 "2022-12-14T18:58:56Z")

</div>

I have come across an error when running a data fitting problem of continuous time. I have created a MWE example to demonstrate with synthetic data. While the data might not have a good fit, the error produced does not s…

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

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