# Latest

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

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

**Page:** 301

---

## [Issues when using Turing with DynamicHMC](https://discourse.julialang.org/t/issues-when-using-turing-with-dynamichmc/31127)

<div class="topic-metadata">

**Author:** [@Jakob](https://discourse.julialang.org/u/Jakob)\
**Replies:** 9\
**Last updated:** [October 14, 2024, 8:35pm UTC](https://discourse.julialang.org/t/issues-when-using-turing-with-dynamichmc/31127 "2024-10-14T20:35:16Z")

</div>

Hi, when I try to run the DynamicNUTS example from the documentation upon loading the libraries (and having installed current versions) the below issues occur: Warning: Error requiring LogDensityProblems from Turing: U…

---

## [Running pluto notebooks sequentially](https://discourse.julialang.org/t/running-pluto-notebooks-sequentially/121068)

<div class="topic-metadata">

**Author:** [@cdawg](https://discourse.julialang.org/u/cdawg)\
**Replies:** 15\
**Last updated:** [October 14, 2024, 7:21pm UTC](https://discourse.julialang.org/t/running-pluto-notebooks-sequentially/121068 "2024-10-14T19:21:06Z")

</div>

I have several pluto notebooks as part of a larger data-processing pipeline. ‘01\_QualityControl.jl’ ‘02\_BatchCorrection.jl’ etc. I love it! Highly reccomended! However, now I want to write a script to run them all se…

---

## [How to compare vectors?](https://discourse.julialang.org/t/how-to-compare-vectors/121295)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 10\
**Last updated:** [October 14, 2024, 5:32pm UTC](https://discourse.julialang.org/t/how-to-compare-vectors/121295 "2024-10-14T17:32:05Z")

</div>

What is a good way to check if two vectors are approximately equal? I have this check that fails: using Test a = \[1,2,3\] b = \[1,2,3.0000001\] @test a ≈ b ?

---

## [Finding steady-states symbolicaly](https://discourse.julialang.org/t/finding-steady-states-symbolicaly/119545)

<div class="topic-metadata">

**Author:** [@adhalanay](https://discourse.julialang.org/u/adhalanay)\
**Replies:** 17\
**Last updated:** [October 14, 2024, 3:06pm UTC](https://discourse.julialang.org/t/finding-steady-states-symbolicaly/119545 "2024-10-14T15:06:05Z")

</div>

Maybe the question is trivial, but I cannot find an answer. Using Catalyst.jl I introduced a reaction network rn and constructed the corresponding system of ODEs with convert(ODESystem,rn). The system has a number of pa…

---

## [Can you twiddle bits in a Float64 variable?](https://discourse.julialang.org/t/can-you-twiddle-bits-in-a-float64-variable/121271)

<div class="topic-metadata">

**Author:** [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Replies:** 6\
**Last updated:** [October 14, 2024, 2:45pm UTC](https://discourse.julialang.org/t/can-you-twiddle-bits-in-a-float64-variable/121271 "2024-10-14T14:45:49Z")

</div>

Can you twiddle bits in a Float64 variable? Can you have x = 123.456 then type cast x into UInt64 Twiddle its bits then type cast it back to Float64 to get a different Float64 number? Just wondering.

---

## [Julia Installation on RISC-V (Build Failing at 79%)](https://discourse.julialang.org/t/julia-installation-on-risc-v-build-failing-at-79/121047)

<div class="topic-metadata">

**Author:** [@karthick-govindaraj](https://discourse.julialang.org/u/karthick-govindaraj)\
**Replies:** 17\
**Last updated:** [October 14, 2024, 1:53pm UTC](https://discourse.julialang.org/t/julia-installation-on-risc-v-build-failing-at-79/121047 "2024-10-14T13:53:31Z")

</div>

I’m trying to build Julia from source for the RISC-V architecture by following the guide provided here: julia/doc/src/devdocs/build/riscv.md at master · alexfanqi/julia · GitHub. I’m running the script located in my RIS…

---

## [Stream Connections of Subsystems](https://discourse.julialang.org/t/stream-connections-of-subsystems/121279)

<div class="topic-metadata">

**Author:** [@Sebastian\_Schmitt](https://discourse.julialang.org/u/Sebastian_Schmitt)\
**Replies:** 2\
**Last updated:** [October 14, 2024, 1:20pm UTC](https://discourse.julialang.org/t/stream-connections-of-subsystems/121279 "2024-10-14T13:20:48Z")

</div>

Hi, I have a system with two subsystems (which themself have two connectors with stream variables). I want to connect the connectors of the subsystem in the main system using ModelingToolkit using ModelingToolkit: t\_nou…

---

## [How to create Dense with initialed weights in vector](https://discourse.julialang.org/t/how-to-create-dense-with-initialed-weights-in-vector/121290)

<div class="topic-metadata">

**Author:** [@Yaozhong\_Liu](https://discourse.julialang.org/u/Yaozhong_Liu)\
**Replies:** 0\
**Last updated:** [October 14, 2024, 1:04pm UTC](https://discourse.julialang.org/t/how-to-create-dense-with-initialed-weights-in-vector/121290 "2024-10-14T13:04:19Z")

</div>

Hi I want to initialize a Dense with weights initialized. I don’t expect to use initializers in Flux package. I already have had a Float64 vector before and want to use it as weights. But I met error Blockquote us…

---

## [Install/update packages from startup.jl](https://discourse.julialang.org/t/install-update-packages-from-startup-jl/121288)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 4\
**Last updated:** [October 14, 2024, 12:50pm UTC](https://discourse.julialang.org/t/install-update-packages-from-startup-jl/121288 "2024-10-14T12:50:43Z")

</div>

I am wondering if there is a robust solution to making sure that some packages are installed when startup.jl runs, periodically updating some (probably the same) packages. Eg one of these packages is Revise.jl, …

---

## [How to have each node in a cluster run a parallel job on its own CPUs, using SSH?](https://discourse.julialang.org/t/how-to-have-each-node-in-a-cluster-run-a-parallel-job-on-its-own-cpus-using-ssh/80813)

<div class="topic-metadata">

**Author:** [@ultrapoci](https://discourse.julialang.org/u/ultrapoci)\
**Replies:** 4\
**Last updated:** [October 14, 2024, 11:05am UTC](https://discourse.julialang.org/t/how-to-have-each-node-in-a-cluster-run-a-parallel-job-on-its-own-cpus-using-ssh/80813 "2024-10-14T11:05:05Z")

</div>

I have access to a cluster with multiple nodes, connected thorugh SSH, each of which has multiple CPUs. My algorithm uses DistributedArrays.jl to create a distributed array and have multiple processes work on it: at the …

---

## [MTK bugging for spacing between variable and operation?](https://discourse.julialang.org/t/mtk-bugging-for-spacing-between-variable-and-operation/121278)

<div class="topic-metadata">

**Author:** [@Sushrut\_Deshpande](https://discourse.julialang.org/u/Sushrut_Deshpande)\
**Replies:** 2\
**Last updated:** [October 14, 2024, 10:02am UTC](https://discourse.julialang.org/t/mtk-bugging-for-spacing-between-variable-and-operation/121278 "2024-10-14T10:02:31Z")

</div>

Hello, I have a toy replication of a problem I have faced. using ModelingToolkit, DifferentialEquations @independent\_variables t @connector function myConnector(;name) vars = @variables begin x(t), \[inpu…

---

## [How do you make standalone programs in Julia?](https://discourse.julialang.org/t/how-do-you-make-standalone-programs-in-julia/105218)

<div class="topic-metadata">

**Author:** [@fxgn](https://discourse.julialang.org/u/fxgn)\
**Replies:** 21\
**Last updated:** [October 14, 2024, 8:16am UTC](https://discourse.julialang.org/t/how-do-you-make-standalone-programs-in-julia/105218 "2024-10-14T08:16:29Z")

</div>

I’m not talking about standalone executables and PackageCompiler, but rather about actual Julia code. It seems like all official documentation and unofficial tooling (eg. Revise) are focused on writing functions inside o…

---

## [I am developing a simple game library for the Julia programming language](https://discourse.julialang.org/t/i-am-developing-a-simple-game-library-for-the-julia-programming-language/121173)

<div class="topic-metadata">

**Author:** [@Sabe](https://discourse.julialang.org/u/Sabe)\
**Replies:** 2\
**Last updated:** [October 14, 2024, 8:07am UTC](https://discourse.julialang.org/t/i-am-developing-a-simple-game-library-for-the-julia-programming-language/121173 "2024-10-14T08:07:46Z")

</div>

My game library: Nexa I am currently creating a simple game library for the Julia programing language. It is called Nexa and at the moment I have simple key presses, image loading, and a simple game loop. It is not much …

---

## [Eliminate blank lines in doc output](https://discourse.julialang.org/t/eliminate-blank-lines-in-doc-output/119719)

<div class="topic-metadata">

**Author:** [@David\_Sagan](https://discourse.julialang.org/u/David_Sagan)\
**Replies:** 4\
**Last updated:** [October 14, 2024, 1:28am UTC](https://discourse.julialang.org/t/eliminate-blank-lines-in-doc-output/119719 "2024-10-14T01:28:07Z")

</div>

OK I know this is a relatively minor thing but it does irritate me. When I define documentation that has a list, there is a blank line between list items. This can take up a bit of space especially for long lists. Exampl…

---

## [Is there a built in macro like @show that returns a string?](https://discourse.julialang.org/t/is-there-a-built-in-macro-like-show-that-returns-a-string/88234)

<div class="topic-metadata">

**Author:** [@taotree](https://discourse.julialang.org/u/taotree)\
**Replies:** 9\
**Last updated:** [October 13, 2024, 11:41pm UTC](https://discourse.julialang.org/t/is-there-a-built-in-macro-like-show-that-returns-a-string/88234 "2024-10-13T23:41:40Z")

</div>

I want the macro @show but to return a string instead of printing. Does something like that already exist?

---

## [Accumulate with init](https://discourse.julialang.org/t/accumulate-with-init/121266)

<div class="topic-metadata">

**Author:** [@bertschi](https://discourse.julialang.org/u/bertschi)\
**Replies:** 1\
**Last updated:** [October 13, 2024, 11:04pm UTC](https://discourse.julialang.org/t/accumulate-with-init/121266 "2024-10-13T23:04:41Z")

</div>

Just noticed that accumulate does not include its init value in the output vector. What is the reason for that choice? Including init would be handy for cases like: v = rand(10) accumulate(+, diff(v); init = v\[1\]) It …

---

## [Configure Slurm File for Parallelization](https://discourse.julialang.org/t/configure-slurm-file-for-parallelization/121239)

<div class="topic-metadata">

**Author:** [@benjamin.nunez](https://discourse.julialang.org/u/benjamin.nunez)\
**Replies:** 4\
**Last updated:** [October 13, 2024, 7:41pm UTC](https://discourse.julialang.org/t/configure-slurm-file-for-parallelization/121239 "2024-10-13T19:41:57Z")

</div>

Hello everyone! I am using a computer cluster to parallelize the execution of my Julia code. The partition I am using has a total of 14 nodes, and my goal is to connect to this partition and execute my main.jl file, wh…

---

## [Performance issue with Vectors vs. 1 Column Matrices](https://discourse.julialang.org/t/performance-issue-with-vectors-vs-1-column-matrices/121240)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 8\
**Last updated:** [October 13, 2024, 7:36pm UTC](https://discourse.julialang.org/t/performance-issue-with-vectors-vs-1-column-matrices/121240 "2024-10-13T19:36:38Z")

</div>

Buried inside a for loop of mine, I have a function which, morally, looks like: function f!(a,b) @. a = b; a end It gets used inside the for loop like: # construct vector x of length nx # construct vector y of len…

---

## [How do I convert a Float64 number to Int64?](https://discourse.julialang.org/t/how-do-i-convert-a-float64-number-to-int64/121244)

<div class="topic-metadata">

**Author:** [@hack3rcon](https://discourse.julialang.org/u/hack3rcon)\
**Replies:** 7\
**Last updated:** [October 13, 2024, 7:19pm UTC](https://discourse.julialang.org/t/how-do-i-convert-a-float64-number-to-int64/121244 "2024-10-13T19:19:13Z")

</div>

Hello, Is it possible to convert a Float64 number directly to Int64? julia\> number=6.5 6.5 julia\> typeof(num) Float64 julia\> Int(number) ERROR: InexactError: Int64(6.5) Stacktrace: \[1\] Int64(x::Float64) @ Base ./…

---

## [Shared and stacked environments](https://discourse.julialang.org/t/shared-and-stacked-environments/119874)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 3\
**Last updated:** [October 13, 2024, 6:58pm UTC](https://discourse.julialang.org/t/shared-and-stacked-environments/119874 "2024-10-13T18:58:55Z")

</div>

A common case, you are working on your package, and need some additional packaged during the development only (for plotting, benchmarking, debugging etc.). You put them into your default environment, and soon the Manifes…

---

## [Type alias interferes with construction](https://discourse.julialang.org/t/type-alias-interferes-with-construction/121247)

<div class="topic-metadata">

**Author:** [@prittjam](https://discourse.julialang.org/u/prittjam)\
**Replies:** 5\
**Last updated:** [October 13, 2024, 3:59pm UTC](https://discourse.julialang.org/t/type-alias-interferes-with-construction/121247 "2024-10-13T15:59:30Z")

</div>

Why does construction using the type alias for Hyperplane result in an error? using FastClosures, GLMakie, Random, Distributions, Parameters, Rotations, StaticArrays, LinearAlgebra, CoordinateTransformations, Makie, Mes…

---

## [New to managing package dependencies and environments](https://discourse.julialang.org/t/new-to-managing-package-dependencies-and-environments/111837)

<div class="topic-metadata">

**Author:** [@Niall](https://discourse.julialang.org/u/Niall)\
**Replies:** 10\
**Last updated:** [October 13, 2024, 11:22am UTC](https://discourse.julialang.org/t/new-to-managing-package-dependencies-and-environments/111837 "2024-10-13T11:22:59Z")

</div>

Hi. I don’t really understand very well how to set up the project.toml file for my package - in particular I don’t understand how to set up package dependencies or use environments. So I have two questions. First, can an…

---

## [How to solve heat equation on a plane curve?](https://discourse.julialang.org/t/how-to-solve-heat-equation-on-a-plane-curve/121220)

<div class="topic-metadata">

**Author:** [@liuyxpp](https://discourse.julialang.org/u/liuyxpp)\
**Replies:** 9\
**Last updated:** [October 13, 2024, 9:57am UTC](https://discourse.julialang.org/t/how-to-solve-heat-equation-on-a-plane-curve/121220 "2024-10-13T09:57:51Z")

</div>

Say there is thermo-conductive string which can be described by a plane curve f(x, y)=0. Heat cannot diffuse to ambient but only along the curve. How to describe this heat equation on the curve? I google it and it seems…

---

## [Print command in Julia](https://discourse.julialang.org/t/print-command-in-julia/121213)

<div class="topic-metadata">

**Author:** [@hack3rcon](https://discourse.julialang.org/u/hack3rcon)\
**Replies:** 9\
**Last updated:** [October 13, 2024, 5:50am UTC](https://discourse.julialang.org/t/print-command-in-julia/121213 "2024-10-13T05:50:38Z")

</div>

Hello, Should there be a " " sign in Julia to print variables and strings? In C/C++ language, " " sign is not needed to print the contents of a variable. Thank you.

---

## [How can this weird \`@profview\` vs \`@time\` result be explained?](https://discourse.julialang.org/t/how-can-this-weird-profview-vs-time-result-be-explained/121234)

<div class="topic-metadata">

**Author:** [@jules](https://discourse.julialang.org/u/jules)\
**Replies:** 2\
**Last updated:** [October 13, 2024, 5:18am UTC](https://discourse.julialang.org/t/how-can-this-weird-profview-vs-time-result-be-explained/121234 "2024-10-13T05:18:39Z")

</div>

I’m trying to profile record in Makie to see where there might be optimization potential. So I was just calling @profview on a simple record invocation with a throwaway plot, like this: julia\> using GLMakie julia\> @pro…

---

## [Radar plot in Plots.jl or Makie.jl?](https://discourse.julialang.org/t/radar-plot-in-plots-jl-or-makie-jl/88576)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 10\
**Last updated:** [October 13, 2024, 4:45am UTC](https://discourse.julialang.org/t/radar-plot-in-plots-jl-or-makie-jl/88576 "2024-10-13T04:45:10Z")

</div>

Is there a simple way to make a radar plot (like a polar plot but categorical) using Plots.jl or Makie.jl ? I can see these should be possible with a package named ECharts, but it doesn’t support VSCode and seems a bit …

---

## [Startup.jl error with OhMyREPL.jl as of v1.11](https://discourse.julialang.org/t/startup-jl-error-with-ohmyrepl-jl-as-of-v1-11/121241)

<div class="topic-metadata">

**Author:** [@NonDairyNeutrino](https://discourse.julialang.org/u/NonDairyNeutrino)\
**Replies:** 2\
**Last updated:** [October 13, 2024, 4:15am UTC](https://discourse.julialang.org/t/startup-jl-error-with-ohmyrepl-jl-as-of-v1-11/121241 "2024-10-13T04:15:15Z")

</div>

As of v1.11, when using the recommended script to automatically start OhMyREPL.jl with Julia # ~/.julia/config/startup.jl atreplinit() do repl try @eval using OhMyREPL catch e @warn "error while …

---

## [Broadcasting \`$\` as a binary operator](https://discourse.julialang.org/t/broadcasting-as-a-binary-operator/121229)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 7\
**Last updated:** [October 13, 2024, 12:03am UTC](https://discourse.julialang.org/t/broadcasting-as-a-binary-operator/121229 "2024-10-13T00:03:44Z")

</div>

It’s possible to define $ as a binary operator, but it turns out you can’t use it with broadcasting: julia\> ($)(x, y) = x + y $ (generic function with 1 method) julia\> 1 $ 2 3 julia\> \[1, 2\] .$ \[3, 4\] ERROR: ParseError…

---

## [Exponential smoothing for non-constant time steps](https://discourse.julialang.org/t/exponential-smoothing-for-non-constant-time-steps/121236)

<div class="topic-metadata">

**Author:** [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Replies:** 3\
**Last updated:** [October 12, 2024, 10:48pm UTC](https://discourse.julialang.org/t/exponential-smoothing-for-non-constant-time-steps/121236 "2024-10-12T22:48:01Z")

</div>

I played around with moving averages, but for an iterative algorithm and low memory requirements (storing a lot of values), exponential smoothing seems the way to go. To calculate the smoothed value over time I came up …

---

## [Remove package from general registry](https://discourse.julialang.org/t/remove-package-from-general-registry/71668)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 7\
**Last updated:** [October 12, 2024, 10:43pm UTC](https://discourse.julialang.org/t/remove-package-from-general-registry/71668 "2024-10-12T22:43:14Z")

</div>

How does one remove a package from the general registry? As in, un-register it so that it can no longer be added with using Pkg: Pkg.add(PackageName).

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

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