# Latest

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

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

**Page:** 856

---

## [PlotlyJS.jl question](https://discourse.julialang.org/t/plotlyjs-jl-question/90403)

<div class="topic-metadata">

**Author:** [@Djamil\_Lakhdar-Hamin](https://discourse.julialang.org/u/Djamil_Lakhdar-Hamin)\
**Replies:** 7\
**Last updated:** [November 23, 2022, 5:43pm UTC](https://discourse.julialang.org/t/plotlyjs-jl-question/90403 "2022-11-23T17:43:20Z")

</div>

What if I am trying to animate the evolution of a surface after the execution of some command that modifies the z component of the surface? I have written the following but the trace does not update when you run the code…

---

## [Concise call keyword arg with default by conditional](https://discourse.julialang.org/t/concise-call-keyword-arg-with-default-by-conditional/90716)

<div class="topic-metadata">

**Author:** [@taotree](https://discourse.julialang.org/u/taotree)\
**Replies:** 2\
**Last updated:** [November 23, 2022, 5:04pm UTC](https://discourse.julialang.org/t/concise-call-keyword-arg-with-default-by-conditional/90716 "2022-11-23T17:04:05Z")

</div>

I tried to show an example below. This might be a bit persnickety, but it seems like it would be nice to have a cleaner solution for this situation. I have function A with a keyword argument that specifies a default val…

---

## [Delay Differential Equation Interruptions](https://discourse.julialang.org/t/delay-differential-equation-interruptions/90704)

<div class="topic-metadata">

**Author:** [@Mark\_Williams](https://discourse.julialang.org/u/Mark_Williams)\
**Replies:** 1\
**Last updated:** [November 23, 2022, 4:57pm UTC](https://discourse.julialang.org/t/delay-differential-equation-interruptions/90704 "2022-11-23T16:57:55Z")

</div>

I’m trying to simulate a Covid model using a delay differential equation in DifferentialEquations.jl but I’m having a bit of difficultly getting it to work. I’m not sure If I’m applying the methods correctly. The model …

---

## [\`invoke\` for non-conforming types](https://discourse.julialang.org/t/invoke-for-non-conforming-types/90720)

<div class="topic-metadata">

**Author:** [@erik-f](https://discourse.julialang.org/u/erik-f)\
**Replies:** 0\
**Last updated:** [November 23, 2022, 4:32pm UTC](https://discourse.julialang.org/t/invoke-for-non-conforming-types/90720 "2022-11-23T16:32:32Z")

</div>

Is there a way to invoke a function f1(::A) = nothing with an argument that is not of the type A? So basically invoke(f1, Tuple{A}, a) where a is not of the type A. As for the context: For advanced testing, I want …

---

## [\[ANN\] GeoStats.jl v0.36](https://discourse.julialang.org/t/ann-geostats-jl-v0-36/90708)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 0\
**Last updated:** [November 23, 2022, 1:39pm UTC](https://discourse.julialang.org/t/ann-geostats-jl-v0-36/90708 "2022-11-23T13:39:19Z")

</div>

OVERVIEW GeoStats.jl v0.36 is out with major usability and performance improvements. We are one step closer to a unique experience for geodata science and geostatistical learning in pure Julia. TL;DR this release provid…

---

## [\[ANN\] DataPipes.jl 0.3.0](https://discourse.julialang.org/t/ann-datapipes-jl-0-3-0/60734)

<div class="topic-metadata">

**Author:** [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Replies:** 67\
**Last updated:** [November 23, 2022, 10:39am UTC](https://discourse.julialang.org/t/ann-datapipes-jl-0-3-0/60734 "2022-11-23T10:39:37Z")

</div>

Yet another take on piping in Julia. Even with multiple existing implementations of the piping concept in general, I didn’t find one that is convenient enough \[for my usecases\] while still remains general. Additionally,…

---

## [Argmax returns wrong value](https://discourse.julialang.org/t/argmax-returns-wrong-value/90645)

<div class="topic-metadata">

**Author:** [@lukas\_r](https://discourse.julialang.org/u/lukas_r)\
**Replies:** 13\
**Last updated:** [November 23, 2022, 2:48pm UTC](https://discourse.julialang.org/t/argmax-returns-wrong-value/90645 "2022-11-23T14:48:17Z")

</div>

I have an array of n vectors (of varying length) that I am searching for the largest value. For this I first find the vector containing the largest value with argmax(array) and then find the index of that value with argm…

---

## [Why the integral of |x| is not exact? with SymPy](https://discourse.julialang.org/t/why-the-integral-of-x-is-not-exact-with-sympy/90705)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 5\
**Last updated:** [November 23, 2022, 2:39pm UTC](https://discourse.julialang.org/t/why-the-integral-of-x-is-not-exact-with-sympy/90705 "2022-11-23T14:39:03Z")

</div>

Dear all, I have tried SymPy to compute indefinite integral of |x|, this is the code: using SymPy # we can also use @vars x y z x = symbols("x") integrate(abs(x)) but the result is like this at terminal, different f…

---

## [Agents.jl: why use it?](https://discourse.julialang.org/t/agents-jl-why-use-it/90711)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 1\
**Last updated:** [November 23, 2022, 2:26pm UTC](https://discourse.julialang.org/t/agents-jl-why-use-it/90711 "2022-11-23T14:26:18Z")

</div>

Hi there… many years ago I worked in C++ creating my own agent-based model. Today, in the Julia world, which do you think is the main advantage of using an ABM framework as Agents.jl instead of coding the agents manuall…

---

## [Compiling sysimage fails](https://discourse.julialang.org/t/compiling-sysimage-fails/90713)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 0\
**Last updated:** [November 23, 2022, 2:23pm UTC](https://discourse.julialang.org/t/compiling-sysimage-fails/90713 "2022-11-23T14:23:42Z")

</div>

In trying to compile a sysimage, the following bug is encountered: julia\> using PackageCompiler julia\> create\_sysimage(;sysimage\_path=joinpath(homedir(), ".julia", "environments", string("v", VERSION.major, ".", VERSIO…

---

## [Get the output of a Julia function called from C](https://discourse.julialang.org/t/get-the-output-of-a-julia-function-called-from-c/90699)

<div class="topic-metadata">

**Author:** [@nvenkov1](https://discourse.julialang.org/u/nvenkov1)\
**Replies:** 6\
**Last updated:** [November 23, 2022, 2:08pm UTC](https://discourse.julialang.org/t/get-the-output-of-a-julia-function-called-from-c/90699 "2022-11-23T14:08:08Z")

</div>

I have a Julia module called MyGramSchmidt which contains a function called fwht that takes a Vector{Float64} as input and returns a Vector{Float64}. I would like to define a C variable and use it to get the output of fw…

---

## [Why sleep() throws EOFError?](https://discourse.julialang.org/t/why-sleep-throws-eoferror/46106)

<div class="topic-metadata">

**Author:** [@tisztamo](https://discourse.julialang.org/u/tisztamo)\
**Replies:** 1\
**Last updated:** [November 23, 2022, 12:31pm UTC](https://discourse.julialang.org/t/why-sleep-throws-eoferror/46106 "2022-11-23T12:31:58Z")

</div>

I got this, but cannot reproduce it for now: ┌ Error: xxxx │ exception = │ EOFError: read end of file │ Stacktrace: │ \[1\] wait at ./asyncevent.jl:128 \[inlined\] │ \[2\] sleep at ./asyncevent.jl:213 \[inlined…

---

## [DomainError while solving ODE](https://discourse.julialang.org/t/domainerror-while-solving-ode/53199)

<div class="topic-metadata">

**Author:** [@zamk](https://discourse.julialang.org/u/zamk)\
**Replies:** 10\
**Last updated:** [November 23, 2022, 12:14pm UTC](https://discourse.julialang.org/t/domainerror-while-solving-ode/53199 "2022-11-23T12:14:26Z")

</div>

I have been trying to estimate the parameters of the model included in the code below. When I run the code below, it solves for random parameters it generates. However, sometimes I get this: ERROR: DomainError with -0.11…

---

## [Confusion over Named Tuples](https://discourse.julialang.org/t/confusion-over-named-tuples/90558)

<div class="topic-metadata">

**Author:** [@Mark\_Williams](https://discourse.julialang.org/u/Mark_Williams)\
**Replies:** 2\
**Last updated:** [November 23, 2022, 12:10pm UTC](https://discourse.julialang.org/t/confusion-over-named-tuples/90558 "2022-11-23T12:10:50Z")

</div>

I have a function which takes as arguments named tuples. But I’m struggling to get it work as I would hope. As a minimal working example consider. function test(x; a=1.0, b=1.0, c=1.0) return x + a + 5\*b + 10\*c end …

---

## [Modular multiplication without overflow](https://discourse.julialang.org/t/modular-multiplication-without-overflow/90421)

<div class="topic-metadata">

**Author:** [@Lilith](https://discourse.julialang.org/u/Lilith)\
**Replies:** 32\
**Last updated:** [November 23, 2022, 12:08pm UTC](https://discourse.julialang.org/t/modular-multiplication-without-overflow/90421 "2022-11-23T12:08:16Z")

</div>

Let’s say I have three integers of the same type and want to compute (a \* b) % c. a \* b might overflow producing wrong results even though the mathematically correct answer (e.g. using BigInts) would not overflow. What i…

---

## [Replace Vector at indices and return a copy](https://discourse.julialang.org/t/replace-vector-at-indices-and-return-a-copy/90692)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 9\
**Last updated:** [November 23, 2022, 10:28am UTC](https://discourse.julialang.org/t/replace-vector-at-indices-and-return-a-copy/90692 "2022-11-23T10:28:18Z")

</div>

What’s the easiest way to return a copy of a Vector with replaced elements at some indices with some specific values ? I can start with one approach: julia\> v = \[10,20,30,40,50\]; julia\> inds = \[2,5\]; julia\> vals = \[2…

---

## [Error compiling C code that runs Julia code](https://discourse.julialang.org/t/error-compiling-c-code-that-runs-julia-code/90694)

<div class="topic-metadata">

**Author:** [@nvenkov1](https://discourse.julialang.org/u/nvenkov1)\
**Replies:** 1\
**Last updated:** [November 23, 2022, 10:05am UTC](https://discourse.julialang.org/t/error-compiling-c-code-that-runs-julia-code/90694 "2022-11-23T10:05:46Z")

</div>

My Julia folder is /home/nxf93431/julia-1.8.1/ and I write the following main.c file in C: #include \<julia.h\> JULIA\_DEFINE\_FAST\_TLS int main(int argc, char \*argv\[\]) { jl\_init(); jl\_eval\_string("print(sqrt(2.))"); …

---

## [Is Sphinx's Julia domain usable?](https://discourse.julialang.org/t/is-sphinxs-julia-domain-usable/90610)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 1\
**Last updated:** [November 23, 2022, 10:01am UTC](https://discourse.julialang.org/t/is-sphinxs-julia-domain-usable/90610 "2022-11-23T10:01:45Z")

</div>

I have to learn Sphinx for a Python project, and I’m wondering if it can be also useful for Julia. The Julia support for Sphinx seems to be not very up-to-date, although I recognize that sometimes old code is still very …

---

## [\[ANN\] pyjulia version 0.6.0](https://discourse.julialang.org/t/ann-pyjulia-version-0-6-0/90652)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 3\
**Last updated:** [November 23, 2022, 9:53am UTC](https://discourse.julialang.org/t/ann-pyjulia-version-0-6-0/90652 "2022-11-23T09:53:56Z")

</div>

pyjulia 0.6.0 has been released. Key changes: Dropped support for Python 2.7 Allow for a custom system image on init Pass “threads” and “min-optimize” options See the link above for details and other changes. Distri…

---

## [Recommended way to develop/fix with packages](https://discourse.julialang.org/t/recommended-way-to-develop-fix-with-packages/14436)

<div class="topic-metadata">

**Author:** [@Jaap\_Haitsma](https://discourse.julialang.org/u/Jaap_Haitsma)\
**Replies:** 18\
**Last updated:** [November 23, 2022, 8:51am UTC](https://discourse.julialang.org/t/recommended-way-to-develop-fix-with-packages/14436 "2022-11-23T08:51:48Z")

</div>

What’s the easiest way to provide patches to packages. I guess I should for the project on github but how do I make then sure that Julia uses my branch instead of the one I installed?

---

## [Vulnerabilities in binary executables, especially for Windows platform](https://discourse.julialang.org/t/vulnerabilities-in-binary-executables-especially-for-windows-platform/90688)

<div class="topic-metadata">

**Author:** [@jsjie](https://discourse.julialang.org/u/jsjie)\
**Replies:** 0\
**Last updated:** [November 23, 2022, 8:15am UTC](https://discourse.julialang.org/t/vulnerabilities-in-binary-executables-especially-for-windows-platform/90688 "2022-11-23T08:15:12Z")

</div>

We’ve developed a julia package and compile it with PackageCompiler.jl. We can produce binary executables for both Windows and Linux platforms, and they work fine. Problems occur, however, when we begin to do vulnerabil…

---

## [Equivalent to matplotlib kwarg "origin" in Plots.jl](https://discourse.julialang.org/t/equivalent-to-matplotlib-kwarg-origin-in-plots-jl/90670)

<div class="topic-metadata">

**Author:** [@ClarkGuilty](https://discourse.julialang.org/u/ClarkGuilty)\
**Replies:** 4\
**Last updated:** [November 23, 2022, 7:08am UTC](https://discourse.julialang.org/t/equivalent-to-matplotlib-kwarg-origin-in-plots-jl/90670 "2022-11-23T07:08:38Z")

</div>

Hello everyone, In matplotlib you can control the origin of imshow plots using the “origin” kwarg: plt.imshow(image,origin='lower') In Julia you can show an image using Plots.heatmap(image). But, is there an equivalen…

---

## [Julia No Longer Working In Atom](https://discourse.julialang.org/t/julia-no-longer-working-in-atom/90667)

<div class="topic-metadata">

**Author:** [@mcket747](https://discourse.julialang.org/u/mcket747)\
**Replies:** 4\
**Last updated:** [November 23, 2022, 4:49am UTC](https://discourse.julialang.org/t/julia-no-longer-working-in-atom/90667 "2022-11-23T04:49:14Z")

</div>

Hello. I am new to Julia and I have been using Atom for the last few months. Suddenly, I am unable to run any of my code and I am not sure why. I know Atom is being sunset on December 15th, but I assumed I would still be…

---

## [Define new method in package – what is the syntax for importing the generic?](https://discourse.julialang.org/t/define-new-method-in-package-what-is-the-syntax-for-importing-the-generic/90622)

<div class="topic-metadata">

**Author:** [@baptiste](https://discourse.julialang.org/u/baptiste)\
**Replies:** 7\
**Last updated:** [November 23, 2022, 2:53am UTC](https://discourse.julialang.org/t/define-new-method-in-package-what-is-the-syntax-for-importing-the-generic/90622 "2022-11-23T02:53:36Z")

</div>

I’m using various functions from Rotations in my own package, and at some point decided to create a new method for convenience, # splatted version RotZYZ(v::SVector) = RotZYZ(v...) but I seem to get in trouble with thi…

---

## [Generate random number following gaussian distribution](https://discourse.julialang.org/t/generate-random-number-following-gaussian-distribution/90669)

<div class="topic-metadata">

**Author:** [@JosieG](https://discourse.julialang.org/u/JosieG)\
**Replies:** 3\
**Last updated:** [November 23, 2022, 2:52am UTC](https://discourse.julialang.org/t/generate-random-number-following-gaussian-distribution/90669 "2022-11-23T02:52:13Z")

</div>

I know rand() will generate a random number following unif(0,1), but how to generate a random number following gaussian distribution? Is there an existing function?

---

## [Tips for debugging in Julia - VS Code while using large packages?](https://discourse.julialang.org/t/tips-for-debugging-in-julia-vs-code-while-using-large-packages/43371)

<div class="topic-metadata">

**Author:** [@braamvandyk](https://discourse.julialang.org/u/braamvandyk)\
**Replies:** 10\
**Last updated:** [November 23, 2022, 12:39am UTC](https://discourse.julialang.org/t/tips-for-debugging-in-julia-vs-code-while-using-large-packages/43371 "2022-11-23T00:39:47Z")

</div>

I have tried the debugger in VS Code with some simple scripts and it seems to work just fine. However, when I try to debug some production code that uses “large” packages (DifferentialEquations, Plots and a few more), it…

---

## [Does copy() always create a valid copy of BigFloat?](https://discourse.julialang.org/t/does-copy-always-create-a-valid-copy-of-bigfloat/90672)

<div class="topic-metadata">

**Author:** [@andrey2185](https://discourse.julialang.org/u/andrey2185)\
**Replies:** 7\
**Last updated:** [November 22, 2022, 11:37pm UTC](https://discourse.julialang.org/t/does-copy-always-create-a-valid-copy-of-bigfloat/90672 "2022-11-22T23:37:27Z")

</div>

Does copy() always create a valid copy of BigFloat? x = big(1.0) # -\> 1.0 y = copy(x) # -\> 1.0 x == y # -\> true x += 1 # -\> 2.0 x == y # -\> false y # -\> 1.0

---

## [How to transform DataFrame back to its data source](https://discourse.julialang.org/t/how-to-transform-dataframe-back-to-its-data-source/90536)

<div class="topic-metadata">

**Author:** [@alexgr](https://discourse.julialang.org/u/alexgr)\
**Replies:** 7\
**Last updated:** [November 22, 2022, 11:36pm UTC](https://discourse.julialang.org/t/how-to-transform-dataframe-back-to-its-data-source/90536 "2022-11-22T23:36:47Z")

</div>

How would you approach going back from DataFrame to a vector of Records given this code? struct Record A::UInt32 B::Float32 C::Float32 end # get bytes from stream; Vector{UInt8} buffer = rand(UInt8, sizeof…

---

## [GLIBCXX version not found](https://discourse.julialang.org/t/glibcxx-version-not-found/82209)

<div class="topic-metadata">

**Author:** [@Clemapfel](https://discourse.julialang.org/u/Clemapfel)\
**Replies:** 10\
**Last updated:** [November 22, 2022, 2:36pm UTC](https://discourse.julialang.org/t/glibcxx-version-not-found/82209 "2022-11-22T14:36:47Z")

</div>

Hi, I have a shared C library I compiled myself. When trying to ccall in Julia, it throws the following error: julia\> ccall((:test, "./\<...\>.so"), Cvoid, ()) ERROR: could not load library "./\<...\>.so" /home/redacted/App…

---

## [Extract function from function type](https://discourse.julialang.org/t/extract-function-from-function-type/90651)

<div class="topic-metadata">

**Author:** [@HashBrown](https://discourse.julialang.org/u/HashBrown)\
**Replies:** 13\
**Last updated:** [November 22, 2022, 10:59pm UTC](https://discourse.julialang.org/t/extract-function-from-function-type/90651 "2022-11-22T22:59:53Z")

</div>

Consider the following: foo(x) = x foo\_type = foo |\> typeof # Don't know how to implement but I know what I want it to do # Example: default(foo\_type) -\> foo default(::Type{T}) where T \<: Function = ??? # The followin…

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

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