# Latest

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

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

**Page:** 841

---

## [Ode to the Julia programming language by ChatGPT](https://discourse.julialang.org/t/ode-to-the-julia-programming-language-by-chatgpt/91331)

<div class="topic-metadata">

**Author:** [@PeterSimon](https://discourse.julialang.org/u/PeterSimon)\
**Replies:** 6\
**Last updated:** [December 10, 2022, 1:01pm UTC](https://discourse.julialang.org/t/ode-to-the-julia-programming-language-by-chatgpt/91331 "2022-12-10T13:01:27Z")

</div>

Inspired by this post, I asked ChatGPT to write an ode to Julia. The result: Oh Julia, queen of languages, A wonder to behold, Your syntax is so concise, Your power never grows old. With speed unmatched by others, …

---

## [Genie docs, tutorials, guidelines](https://discourse.julialang.org/t/genie-docs-tutorials-guidelines/90909)

<div class="topic-metadata">

**Author:** [@gudyrmik](https://discourse.julialang.org/u/gudyrmik)\
**Replies:** 5\
**Last updated:** [December 10, 2022, 10:36am UTC](https://discourse.julialang.org/t/genie-docs-tutorials-guidelines/90909 "2022-12-10T10:36:11Z")

</div>

Hello Julians! I’m designing an analytical financial application and I want all parts to be in pure-Julia. So my question is: what is the most developed and known tutorial for Genie at the moment? I’m not completely n…

---

## [ZMQ and Distributed](https://discourse.julialang.org/t/zmq-and-distributed/75669)

<div class="topic-metadata">

**Author:** [@hagi](https://discourse.julialang.org/u/hagi)\
**Replies:** 1\
**Last updated:** [December 10, 2022, 9:28am UTC](https://discourse.julialang.org/t/zmq-and-distributed/75669 "2022-12-10T09:28:20Z")

</div>

I have a problem using ZMQ with Distributed on another worker. This is my first try with Distributed package. I am working on a project, where I receive data from a measurement device using the ZMQ protocol. Every sec…

---

## [I can ssh to a server but can't addprocs: ETIMEDOUT](https://discourse.julialang.org/t/i-can-ssh-to-a-server-but-cant-addprocs-etimedout/91502)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 0\
**Last updated:** [December 10, 2022, 7:24am UTC](https://discourse.julialang.org/t/i-can-ssh-to-a-server-but-cant-addprocs-etimedout/91502 "2022-12-10T07:24:45Z")

</div>

I can ssh to a server but can’t connect using addprocs. Any ideas? julia\> run(\`ssh $addr -- '/u/local/apps/julia/1.8.1/bin/julia --version '\`); julia version 1.8.1 julia\> procs = addprocs(\[addr\]; exename="/u/local/app…

---

## [Is there a Julia function similar to the R function \`with\`?](https://discourse.julialang.org/t/is-there-a-julia-function-similar-to-the-r-function-with/91493)

<div class="topic-metadata">

**Author:** [@\_stla](https://discourse.julialang.org/u/_stla)\
**Replies:** 7\
**Last updated:** [December 10, 2022, 3:40am UTC](https://discourse.julialang.org/t/is-there-a-julia-function-similar-to-the-r-function-with/91493 "2022-12-10T03:40:36Z")

</div>

Hello, In R, when you have a list like mylist \<- list(a = 2, b = 3), then instead of doing mylist$a + mylist$b you can do with(mylist, a + b). Is there something similar in Julia for a named tuple like (a = 2, b = 3)?

---

## [All ways to define functions in Julia?](https://discourse.julialang.org/t/all-ways-to-define-functions-in-julia/45816)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 51\
**Last updated:** [December 10, 2022, 6:49am UTC](https://discourse.julialang.org/t/all-ways-to-define-functions-in-julia/45816 "2022-12-10T06:49:01Z")

</div>

I tried to list all the ways one can define functions in Julia. Some are practical, some are silly but collecting them all is fun. Planning to make a video for fun exploring this. function name(a, b) a + b end na…

---

## [Using @which inside a macro on expr](https://discourse.julialang.org/t/using-which-inside-a-macro-on-expr/91372)

<div class="topic-metadata">

**Author:** [@jlbosse](https://discourse.julialang.org/u/jlbosse)\
**Replies:** 5\
**Last updated:** [December 9, 2022, 10:59pm UTC](https://discourse.julialang.org/t/using-which-inside-a-macro-on-expr/91372 "2022-12-09T22:59:02Z")

</div>

What is the best way to call a macro with an Expr and then get the evaluated output of the macro? I want to write a macro that needs to call @which on its input and then use the returned method. Here is my current attemp…

---

## [Difference between two interpolation packages when evaluating derivatives: Interpolations.jl and Dierckx.jl](https://discourse.julialang.org/t/difference-between-two-interpolation-packages-when-evaluating-derivatives-interpolations-jl-and-dierckx-jl/61747)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 5\
**Last updated:** [December 9, 2022, 9:16pm UTC](https://discourse.julialang.org/t/difference-between-two-interpolation-packages-when-evaluating-derivatives-interpolations-jl-and-dierckx-jl/61747 "2022-12-09T21:16:12Z")

</div>

Recently I had a chance to test two interpolation packages, Interpolations.jl and Dierckx.jl. I found a difference between the two packages in the way they treat the boundary points when evaluating derivatives. I think…

---

## [Julia on Windows Store/juliaup?](https://discourse.julialang.org/t/julia-on-windows-store-juliaup/91489)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 3\
**Last updated:** [December 9, 2022, 8:57pm UTC](https://discourse.julialang.org/t/julia-on-windows-store-juliaup/91489 "2022-12-09T20:57:30Z")

</div>

I’m trying to install Julia from Windows Store on a new laptop running Windows 11 Pro. The installation seems to work, and “Install” changes to “Open” in Windows Store. However… If I click on “Open”, nothing happens I…

---

## [Package for opening .dat files](https://discourse.julialang.org/t/package-for-opening-dat-files/91472)

<div class="topic-metadata">

**Author:** [@Rajat\_Chaudhari](https://discourse.julialang.org/u/Rajat_Chaudhari)\
**Replies:** 10\
**Last updated:** [December 9, 2022, 6:42pm UTC](https://discourse.julialang.org/t/package-for-opening-dat-files/91472 "2022-12-09T18:42:59Z")

</div>

Short question: I wanted to ask whether there are any inbuilt packages to load .dat files ?

---

## [Independent custom colorbar in Plots?](https://discourse.julialang.org/t/independent-custom-colorbar-in-plots/91479)

<div class="topic-metadata">

**Author:** [@sim](https://discourse.julialang.org/u/sim)\
**Replies:** 3\
**Last updated:** [December 9, 2022, 6:39pm UTC](https://discourse.julialang.org/t/independent-custom-colorbar-in-plots/91479 "2022-12-09T18:39:23Z")

</div>

Hi, let’s suppose I have the following (essentially empty) plot: plot(xlabel="x axis", ylabel="y axis") plot!(rand(10)) Now, for some reason, I want to add a colorbar to this figure (yes, the colorbar has nothing to …

---

## [Oddities with loop with dummy variable in Tullio](https://discourse.julialang.org/t/oddities-with-loop-with-dummy-variable-in-tullio/91484)

<div class="topic-metadata">

**Author:** [@Andrea\_Pagnani](https://discourse.julialang.org/u/Andrea_Pagnani)\
**Replies:** 2\
**Last updated:** [December 9, 2022, 6:10pm UTC](https://discourse.julialang.org/t/oddities-with-loop-with-dummy-variable-in-tullio/91484 "2022-12-09T18:10:05Z")

</div>

Hi there I spotred possibly a strange bug using Tullio on CPU. Here is my package status (Julia-1.8.2) \[bdcacae8\] LoopVectorization v0.12.141 \[bc48ee85\] Tullio v0.3.5 And my minimal non-wroking example using LoopVec…

---

## [Parser bug regarding parametric function expressions?](https://discourse.julialang.org/t/parser-bug-regarding-parametric-function-expressions/81848)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 2\
**Last updated:** [December 9, 2022, 6:07pm UTC](https://discourse.julialang.org/t/parser-bug-regarding-parametric-function-expressions/81848 "2022-12-09T18:07:57Z")

</div>

Some weird behavior here. Suppose we have this: SomeType = Tuple{Int8, Int16} f(::Type{Tuple{A, B}}) where {A \<: Any, B \<: Any} = B If we now do f(SomeType), we get Int16 in return as expected. The following however,…

---

## [Why \[1, 2, 3\] is not a Vector{Number}?](https://discourse.julialang.org/t/why-1-2-3-is-not-a-vector-number/52645)

<div class="topic-metadata">

**Author:** [@Bryan\_So](https://discourse.julialang.org/u/Bryan_So)\
**Replies:** 41\
**Last updated:** [December 9, 2022, 3:36pm UTC](https://discourse.julialang.org/t/why-1-2-3-is-not-a-vector-number/52645 "2022-12-09T15:36:37Z")

</div>

I don’t understand this: julia\> isa(\[1,2,3\], Vector{Number}) false Each 1, 2, or 3 is certainly a Number: julia\> isa(1, Number) true It is illogical to say \[1, 2, 3\] is not Vector{Number} when each element is a Numbe…

---

## [Quantifying "damping" rate of ODE](https://discourse.julialang.org/t/quantifying-damping-rate-of-ode/91276)

<div class="topic-metadata">

**Author:** [@ANasc](https://discourse.julialang.org/u/ANasc)\
**Replies:** 14\
**Last updated:** [December 9, 2022, 3:03pm UTC](https://discourse.julialang.org/t/quantifying-damping-rate-of-ode/91276 "2022-12-09T15:03:43Z")

</div>

Hi, I’m trying to figure out a way to compare how fast the oscillations in two ODE models decay. For example, the two figures below show the solution of a model that differs only in temperature, and I want to be able to…

---

## [Missing Plots.pyrcparams in Plots version 1.37.2](https://discourse.julialang.org/t/missing-plots-pyrcparams-in-plots-version-1-37-2/91470)

<div class="topic-metadata">

**Author:** [@ntausend](https://discourse.julialang.org/u/ntausend)\
**Replies:** 5\
**Last updated:** [December 9, 2022, 3:00pm UTC](https://discourse.julialang.org/t/missing-plots-pyrcparams-in-plots-version-1-37-2/91470 "2022-12-09T15:00:14Z")

</div>

Hey all, in previous version of the Plots.jl package it was possible to configure the pyplot() backend using the Plots.pyrcparams. With this, one could use LaTex for the axis labels etc and also had full control over t…

---

## [Problem of eachcol in function](https://discourse.julialang.org/t/problem-of-eachcol-in-function/91458)

<div class="topic-metadata">

**Author:** [@Xuekui\_wang](https://discourse.julialang.org/u/Xuekui_wang)\
**Replies:** 6\
**Last updated:** [December 9, 2022, 1:58pm UTC](https://discourse.julialang.org/t/problem-of-eachcol-in-function/91458 "2022-12-09T13:58:57Z")

</div>

When I see a program, a funciton f3 defined as follows. In manual: eachcol means: Create a generator that iterates over the second dimension of matrix A, returning the columns as AbstractVector views. The function retu…

---

## [Simple CRPS optimization](https://discourse.julialang.org/t/simple-crps-optimization/91473)

<div class="topic-metadata">

**Author:** [@cmarcotte](https://discourse.julialang.org/u/cmarcotte)\
**Replies:** 1\
**Last updated:** [December 9, 2022, 1:53pm UTC](https://discourse.julialang.org/t/simple-crps-optimization/91473 "2022-12-09T13:53:06Z")

</div>

I have a short function for computing the Continuous Ranked Probability Score (CRPS) from an ensemble of states Xb::Array{Float64,2} and a set comparison state y::Array{Float64,1}, where y may have varying sparsity (i.e.…

---

## [How to create this python object to julia](https://discourse.julialang.org/t/how-to-create-this-python-object-to-julia/90962)

<div class="topic-metadata">

**Author:** [@tryjulia](https://discourse.julialang.org/u/tryjulia)\
**Replies:** 13\
**Last updated:** [December 4, 2022, 6:50pm UTC](https://discourse.julialang.org/t/how-to-create-this-python-object-to-julia/90962 "2022-12-04T18:50:27Z")

</div>

Hi, I have a code that I want to build on Julia, but I don’t know how to start on. class Point: def init(self, center=(0,0)): self.x = center\[0\] self.y = center\[1\] def print\_point(self): print("The point is at …

---

## [Solving the direct geodesic problem with Proj.jl](https://discourse.julialang.org/t/solving-the-direct-geodesic-problem-with-proj-jl/91409)

<div class="topic-metadata">

**Author:** [@tcarion](https://discourse.julialang.org/u/tcarion)\
**Replies:** 3\
**Last updated:** [December 9, 2022, 7:47am UTC](https://discourse.julialang.org/t/solving-the-direct-geodesic-problem-with-proj-jl/91409 "2022-12-09T07:47:30Z")

</div>

Hi! I want to calculate the end point after moving some distance in some direction on an ellipsoid. I used to use the Proj4.jl function geod\_direct. As this higher level function has disappeared in Proj.jl, I’m trying …

---

## [How to find rankings of each tuple in the list of tuples?](https://discourse.julialang.org/t/how-to-find-rankings-of-each-tuple-in-the-list-of-tuples/91428)

<div class="topic-metadata">

**Author:** [@Phuntsho](https://discourse.julialang.org/u/Phuntsho)\
**Replies:** 7\
**Last updated:** [December 9, 2022, 8:41am UTC](https://discourse.julialang.org/t/how-to-find-rankings-of-each-tuple-in-the-list-of-tuples/91428 "2022-12-09T08:41:29Z")

</div>

I have a list of tuples something like as shown: v = \[(i,rand(1:15)) for i=1:30\] Now I want to rank each tuple according to the second value, which I was able to achieve using many functions as shown. vcat(\[map(k-\>(k\[…

---

## [UniformScaling Array problem](https://discourse.julialang.org/t/uniformscaling-array-problem/91475)

<div class="topic-metadata">

**Author:** [@Szrenka\_Agoston](https://discourse.julialang.org/u/Szrenka_Agoston)\
**Replies:** 1\
**Last updated:** [December 9, 2022, 12:32pm UTC](https://discourse.julialang.org/t/uniformscaling-array-problem/91475 "2022-12-09T12:32:39Z")

</div>

Hi I want to transform a Python program to Julia and I have a problem with my code at jl:61 Could you help me what should I do or what is the problem?

---

## [UndefVarError: not defined](https://discourse.julialang.org/t/undefvarerror-not-defined/91468)

<div class="topic-metadata">

**Author:** [@nero](https://discourse.julialang.org/u/nero)\
**Replies:** 3\
**Last updated:** [December 9, 2022, 12:21pm UTC](https://discourse.julialang.org/t/undefvarerror-not-defined/91468 "2022-12-09T12:21:38Z")

</div>

Hello I always get this error when I run .jl files. I tried windows and ubuntu but still same error. UndefVarError: (name of .jl file) not defined Could you please advise Thanks

---

## [Python code moving to Julia](https://discourse.julialang.org/t/python-code-moving-to-julia/91466)

<div class="topic-metadata">

**Author:** [@szokoditomi8](https://discourse.julialang.org/u/szokoditomi8)\
**Replies:** 3\
**Last updated:** [December 9, 2022, 12:14pm UTC](https://discourse.julialang.org/t/python-code-moving-to-julia/91466 "2022-12-09T12:14:49Z")

</div>

Hey! So I have a Phyton code, that I want to run in Julia. I did all the formatting with function commands and things like that, but at a point, when I use an if cycle in a for cycle, it gives me the following error: ER…

---

## [Makie - Colorbar in plot recipe](https://discourse.julialang.org/t/makie-colorbar-in-plot-recipe/76564)

<div class="topic-metadata">

**Author:** [@rvezy](https://discourse.julialang.org/u/rvezy)\
**Replies:** 1\
**Last updated:** [December 9, 2022, 11:30am UTC](https://discourse.julialang.org/t/makie-colorbar-in-plot-recipe/76564 "2022-12-09T11:30:30Z")

</div>

TLDR: Is it possible to add a Colorbar directly inside a plot recipe ? I have a graph-like data structure called MTG where each node stores a mesh and attributes. I made a recipe that extends the MeshViz.jl Viz recipe t…

---

## [Flattening a vector of vectors](https://discourse.julialang.org/t/flattening-a-vector-of-vectors/91463)

<div class="topic-metadata">

**Author:** [@Nash](https://discourse.julialang.org/u/Nash)\
**Replies:** 3\
**Last updated:** [December 9, 2022, 10:15am UTC](https://discourse.julialang.org/t/flattening-a-vector-of-vectors/91463 "2022-12-09T10:15:55Z")

</div>

What command will let me flatten a vector of vectors? I believe the package “Iterations” had this “flatten” command, but it appears to be deprecated.

---

## [Display lines handle with variable color inside legend in Makie](https://discourse.julialang.org/t/display-lines-handle-with-variable-color-inside-legend-in-makie/91447)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 1\
**Last updated:** [December 9, 2022, 9:33am UTC](https://discourse.julialang.org/t/display-lines-handle-with-variable-color-inside-legend-in-makie/91447 "2022-12-09T09:33:44Z")

</div>

using CairoMakie fig = Figure(resolution=(600,400)) ax = Axis(fig\[1, 1\]) xs = 0:0.01:10 ys = 0.5 .\* sin.(xs) lines!(ax, xs, ys, label="uniform color") lines!(ax, xs, ys .+ 1, color=ys.^2, label="variable color") axisl…

---

## [Easiest way to get CUDA.jl up and running](https://discourse.julialang.org/t/easiest-way-to-get-cuda-jl-up-and-running/91446)

<div class="topic-metadata">

**Author:** [@Yly](https://discourse.julialang.org/u/Yly)\
**Replies:** 1\
**Last updated:** [December 9, 2022, 8:33am UTC](https://discourse.julialang.org/t/easiest-way-to-get-cuda-jl-up-and-running/91446 "2022-12-09T08:33:41Z")

</div>

I have a Dell Inspiron 5558 with a Nvidia GeForce 920M running Linux Mint 18.2. I’m trying to get CUDA.jl running so I can use the GPU for Flux.jl. However, I’ve run into several issues. Calling CUDA.versioninfo() yie…

---

## [Is there any way to remove the docstrings for all methods of a function?](https://discourse.julialang.org/t/is-there-any-way-to-remove-the-docstrings-for-all-methods-of-a-function/1497)

<div class="topic-metadata">

**Author:** [@bramtayl](https://discourse.julialang.org/u/bramtayl)\
**Replies:** 11\
**Last updated:** [December 6, 2022, 9:18am UTC](https://discourse.julialang.org/t/is-there-any-way-to-remove-the-docstrings-for-all-methods-of-a-function/1497 "2022-12-06T09:18:09Z")

</div>

Lorem ipsum dolor sit amet

---

## [Atom for Julia](https://discourse.julialang.org/t/atom-for-julia/91436)

<div class="topic-metadata">

**Author:** [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Replies:** 4\
**Last updated:** [December 9, 2022, 7:33am UTC](https://discourse.julialang.org/t/atom-for-julia/91436 "2022-12-09T07:33:22Z")

</div>

Dear all, I opened the Atom today and the following message appears: and when I click to update the package “julia-client”: failed to updade…How can I solve this issue? Yesterday this was normal. Many thanks!

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

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