# Latest

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

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

**Page:** 827

---

## [How to rename several columns of Julia DataFrame?](https://discourse.julialang.org/t/how-to-rename-several-columns-of-julia-dataframe/92232)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 2\
**Last updated:** [December 28, 2022, 6:12pm UTC](https://discourse.julialang.org/t/how-to-rename-several-columns-of-julia-dataframe/92232 "2022-12-28T18:12:46Z")

</div>

Hello, I have a dataframe and I would like to change all the names at once. I can change the name of a single column following this script, but what is the syntax for the whole lot? I have tried giving an array of name…

---

## [Pluto：Failed to show value](https://discourse.julialang.org/t/pluto-failed-to-show-value/92231)

<div class="topic-metadata">

**Author:** [@Wuyao](https://discourse.julialang.org/u/Wuyao)\
**Replies:** 0\
**Last updated:** [December 28, 2022, 3:20pm UTC](https://discourse.julialang.org/t/pluto-failed-to-show-value/92231 "2022-12-28T15:20:10Z")

</div>

Hi,I am on a Windows 10 machine,Julia 1.8.3,Pluto 0.19.19. when using Symbolics to take the derivative of a vector variables in Pluto,I saw the following message: Failed to show value: MethodError: no method matching …

---

## [How to preserve xformatter when adding a vline](https://discourse.julialang.org/t/how-to-preserve-xformatter-when-adding-a-vline/92051)

<div class="topic-metadata">

**Author:** [@bbejanov](https://discourse.julialang.org/u/bbejanov)\
**Replies:** 3\
**Last updated:** [December 28, 2022, 2:39pm UTC](https://discourse.julialang.org/t/how-to-preserve-xformatter-when-adding-a-vline/92051 "2022-12-28T14:39:02Z")

</div>

I have a series recipe that formats the x-axis ticks. When I add a vline, the formatting is reset to the default, i.e. my custom formatting disappears. Is it possible for vline to respect and preserve the formatting of …

---

## [Semicolon is sometimes significant inside square brackets](https://discourse.julialang.org/t/semicolon-is-sometimes-significant-inside-square-brackets/91950)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 4\
**Last updated:** [December 28, 2022, 2:07pm UTC](https://discourse.julialang.org/t/semicolon-is-sometimes-significant-inside-square-brackets/91950 "2022-12-28T14:07:03Z")

</div>

Take the following example: julia\> \[1\] 1-element Vector{Int64}: 1 julia\> \[1;\] 1-element Vector{Int64}: 1 In this case, there is no effect of putting a semicolon after the vector element. So what changes in the follo…

---

## [Symbol to String](https://discourse.julialang.org/t/symbol-to-string/92217)

<div class="topic-metadata">

**Author:** [@Mirsad\_Cosovic](https://discourse.julialang.org/u/Mirsad_Cosovic)\
**Replies:** 9\
**Last updated:** [December 28, 2022, 2:02pm UTC](https://discourse.julialang.org/t/symbol-to-string/92217 "2022-12-28T14:02:44Z")

</div>

I’m trying to convert a special Symbol to a String, but I’m having some trouble. Is the following behavior usual and why? julia\> String(:Ω) == "Ω" false

---

## [Minibatching with FFJORD](https://discourse.julialang.org/t/minibatching-with-ffjord/92210)

<div class="topic-metadata">

**Author:** [@kaido975](https://discourse.julialang.org/u/kaido975)\
**Replies:** 1\
**Last updated:** [December 28, 2022, 1:35pm UTC](https://discourse.julialang.org/t/minibatching-with-ffjord/92210 "2022-12-28T13:35:50Z")

</div>

I am trying to implement the code given in Continuous Normalizing Flows · DiffEqFlux.jl, with mini batching. using Flux, DiffEqFlux, DifferentialEquations, Optimization, OptimizationFlux, OptimizationOptimJL, Dist…

---

## [How to define NamedTuple type with variable number of elements?](https://discourse.julialang.org/t/how-to-define-namedtuple-type-with-variable-number-of-elements/92223)

<div class="topic-metadata">

**Author:** [@andrey2185](https://discourse.julialang.org/u/andrey2185)\
**Replies:** 6\
**Last updated:** [December 28, 2022, 1:00pm UTC](https://discourse.julialang.org/t/how-to-define-namedtuple-type-with-variable-number-of-elements/92223 "2022-12-28T13:00:08Z")

</div>

hello, how to define NamedTuple type with variable number of elements? (:a, :b) isa NTuple{N,Symbol} where N # -\> true (1, 2) isa NTuple{N,Int} where N # -\> true why ? (a=1,b=2) isa NamedTuple{NTuple{N,Symbol}, NTu…

---

## [Efficient implementations of Fibonacci function with interesting results](https://discourse.julialang.org/t/efficient-implementations-of-fibonacci-function-with-interesting-results/18123)

<div class="topic-metadata">

**Author:** [@mhw](https://discourse.julialang.org/u/mhw)\
**Replies:** 19\
**Last updated:** [December 28, 2022, 12:12pm UTC](https://discourse.julialang.org/t/efficient-implementations-of-fibonacci-function-with-interesting-results/18123 "2022-12-28T12:12:12Z")

</div>

It is well known that the standard recursive implementation of the Fibonacci function defined by F(0) = 0 F(1) = 1 F(n) = F(n-1) + F(n-2) for n \> 1 runs in exponential time. Therefore most often the Fibonacci function …

---

## [In vscode, is there a way to show snippets of function of python package when called by PythonCall.jl or PyCall.jl?](https://discourse.julialang.org/t/in-vscode-is-there-a-way-to-show-snippets-of-function-of-python-package-when-called-by-pythoncall-jl-or-pycall-jl/92224)

<div class="topic-metadata">

**Author:** [@YH\_Ko](https://discourse.julialang.org/u/YH_Ko)\
**Replies:** 0\
**Last updated:** [December 28, 2022, 11:53am UTC](https://discourse.julialang.org/t/in-vscode-is-there-a-way-to-show-snippets-of-function-of-python-package-when-called-by-pythoncall-jl-or-pycall-jl/92224 "2022-12-28T11:53:47Z")

</div>

Hi all. I’m trying to use Python’s matplotlib package in Julia code. It is called by PythonCall.jl. In vscode, Is there a way to show snippets of functions (ex. plt.plot(), plt.xlabel …etc) of python package when cal…

---

## [Links to GitHub profiles](https://discourse.julialang.org/t/links-to-github-profiles/92221)

<div class="topic-metadata">

**Author:** [@tfiers](https://discourse.julialang.org/u/tfiers)\
**Replies:** 0\
**Last updated:** [December 28, 2022, 11:33am UTC](https://discourse.julialang.org/t/links-to-github-profiles/92221 "2022-12-28T11:33:56Z")

</div>

I regularly find myself wanting to click through to users’ GitHub profiles. But the GitHub name on a user’s forum profile page is just a string, and it’s slightly annoying to copy-paste and append it to https://github.co…

---

## [How to implement One-Vs-Rest for Multi-Class Classification?](https://discourse.julialang.org/t/how-to-implement-one-vs-rest-for-multi-class-classification/92191)

<div class="topic-metadata">

**Author:** [@skalarr](https://discourse.julialang.org/u/skalarr)\
**Replies:** 3\
**Last updated:** [December 28, 2022, 10:34am UTC](https://discourse.julialang.org/t/how-to-implement-one-vs-rest-for-multi-class-classification/92191 "2022-12-28T10:34:51Z")

</div>

Greetings, I’m new to Julia and i am trying to implement One-Vs-Rest Multi-Class Classification, and I was wondering if anyone could help me out. Here is a snippet of my code so far: My data frame is basic since I’m try…

---

## [Save matrix of color images](https://discourse.julialang.org/t/save-matrix-of-color-images/92170)

<div class="topic-metadata">

**Author:** [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Replies:** 2\
**Last updated:** [December 28, 2022, 10:09am UTC](https://discourse.julialang.org/t/save-matrix-of-color-images/92170 "2022-12-28T10:09:02Z")

</div>

With so much effort I managed to simulate (roughly) an animated version of Gonway’s “Game of Life”. julia\> using Plots,IterTools, Colors julia\> function gol1(n, init=rand(Bool, 10,10)) function gen(m…

---

## [Checksum error in suitesparse](https://discourse.julialang.org/t/checksum-error-in-suitesparse/92219)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 0\
**Last updated:** [December 28, 2022, 10:04am UTC](https://discourse.julialang.org/t/checksum-error-in-suitesparse/92219 "2022-12-28T10:04:06Z")

</div>

I’m trying to build Julia at commit 7ca1a9047a. It fails with the following error: =============================================================================== ERROR: sha512 checksum failure on SuiteSparse-ec4b40ad…

---

## [How to Reflect the Curve toward $y$ axis with Plots?](https://discourse.julialang.org/t/how-to-reflect-the-curve-toward-y-axis-with-plots/92209)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 7\
**Last updated:** [December 28, 2022, 9:15am UTC](https://discourse.julialang.org/t/how-to-reflect-the-curve-toward-y-axis-with-plots/92209 "2022-12-28T09:15:23Z")

</div>

Hi all, I have a code from previous forum, it is a reflection toward x axis, then I want to reflect my curve toward y axis, but I am unable to do so, this is the code: using Plots, LaTeXStrings, Plots.PlotMeasures gr()…

---

## [How to set the julia optimization level for each run on Github Actions?](https://discourse.julialang.org/t/how-to-set-the-julia-optimization-level-for-each-run-on-github-actions/92212)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 0\
**Last updated:** [December 28, 2022, 8:00am UTC](https://discourse.julialang.org/t/how-to-set-the-julia-optimization-level-for-each-run-on-github-actions/92212 "2022-12-28T08:00:31Z")

</div>

I have this script, where I have the following matrix: matrix: julia-version: \['1', '1.6', '~1.9.0-0'\] and the following command to launch julia shell: julia --color=yes --project=downstream {0} I wan…

---

## [\`for i = 1:M, j = 1:N\` discrepancy (loop vs comprehension/generator)](https://discourse.julialang.org/t/for-i-1-m-j-1-n-discrepancy-loop-vs-comprehension-generator/75659)

<div class="topic-metadata">

**Author:** [@StevenWhitaker](https://discourse.julialang.org/u/StevenWhitaker)\
**Replies:** 26\
**Last updated:** [December 28, 2022, 2:24am UTC](https://discourse.julialang.org/t/for-i-1-m-j-1-n-discrepancy-loop-vs-comprehension-generator/75659 "2022-12-28T02:24:34Z")

</div>

I noticed the following about the for i = 1:M, j = 1:N syntax. When using this syntax as part of a normal for-loop, j iterates first: julia\> for i = 1:2, j = 1:3 println((i, j)) end (1, 1) (1, 2) (1, 3) (2…

---

## [Documenter devbranch build not deploying](https://discourse.julialang.org/t/documenter-devbranch-build-not-deploying/92020)

<div class="topic-metadata">

**Author:** [@miles](https://discourse.julialang.org/u/miles)\
**Replies:** 3\
**Last updated:** [December 28, 2022, 3:20am UTC](https://discourse.julialang.org/t/documenter-devbranch-build-not-deploying/92020 "2022-12-28T03:20:32Z")

</div>

Our GitHub actions for building our Documenter docs recently started misbehaving. One issue is that when I manually run out GitHub Documentation action, it doesn’t update the “dev” version of our docs. Here is the error…

---

## [\[ANN\] ProfileLikelihood.jl: Computing profile likelihoods](https://discourse.julialang.org/t/ann-profilelikelihood-jl-computing-profile-likelihoods/91823)

<div class="topic-metadata">

**Author:** [@DanielVandH](https://discourse.julialang.org/u/DanielVandH)\
**Replies:** 3\
**Last updated:** [December 28, 2022, 3:00am UTC](https://discourse.julialang.org/t/ann-profilelikelihood-jl-computing-profile-likelihoods/91823 "2022-12-28T03:00:00Z")

</div>

Hi all, I have just released my package ProfileLikelihood.jl that will be fully registered in a few days. The aim of this package is to provide an easy interface for computing maximum likelihood estimates (MLEs), profil…

---

## [Automatic Differentiation with Polynomials Package, Advanced HMC](https://discourse.julialang.org/t/automatic-differentiation-with-polynomials-package-advanced-hmc/92205)

<div class="topic-metadata">

**Author:** [@Gattu\_Mytraya](https://discourse.julialang.org/u/Gattu_Mytraya)\
**Replies:** 0\
**Last updated:** [December 27, 2022, 11:37pm UTC](https://discourse.julialang.org/t/automatic-differentiation-with-polynomials-package-advanced-hmc/92205 "2022-12-27T23:37:52Z")

</div>

I’m a little tired of debugging code so any easy solution will be greatly appreciated. I’m trying to use the AdvancedHMC package (with Zygote for auto differentiation) to draw samples from a known PDF (from my work). A…

---

## [Is there a \\ operator for Unitful?](https://discourse.julialang.org/t/is-there-a-operator-for-unitful/92195)

<div class="topic-metadata">

**Author:** [@FelixHeox](https://discourse.julialang.org/u/FelixHeox)\
**Replies:** 6\
**Last updated:** [December 28, 2022, 12:42am UTC](https://discourse.julialang.org/t/is-there-a-operator-for-unitful/92195 "2022-12-28T00:42:08Z")

</div>

I was running into a problem using the \\ (linear system solver) operator in Julia. I guess I wrongly assumed the \\ operator was overloaded for matrices/vectors with entries of type \<: Number (witch unitful types are). Is…

---

## [Force recompiling functions in conditional compilation](https://discourse.julialang.org/t/force-recompiling-functions-in-conditional-compilation/92132)

<div class="topic-metadata">

**Author:** [@jsjie](https://discourse.julialang.org/u/jsjie)\
**Replies:** 1\
**Last updated:** [December 27, 2022, 10:43pm UTC](https://discourse.julialang.org/t/force-recompiling-functions-in-conditional-compilation/92132 "2022-12-27T22:43:37Z")

</div>

I want to do conditional compilation. Besides, when developing, I’d like to be able to exam all branches. Can I do that? An explanation by case: My code will have two different modes when used in production, let’s call…

---

## [Why isn't there @\_\_FUNCTION\_\_?](https://discourse.julialang.org/t/why-isnt-there-function/92198)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 1\
**Last updated:** [December 27, 2022, 8:49pm UTC](https://discourse.julialang.org/t/why-isnt-there-function/92198 "2022-12-27T20:49:06Z")

</div>

Is there an alternative?

---

## [\[ANN\] GhibliPalettes.jl - Access the beautiful Ghibli color palettes](https://discourse.julialang.org/t/ann-ghiblipalettes-jl-access-the-beautiful-ghibli-color-palettes/92197)

<div class="topic-metadata">

**Author:** [@Jose\_Diaz](https://discourse.julialang.org/u/Jose_Diaz)\
**Replies:** 0\
**Last updated:** [December 27, 2022, 7:45pm UTC](https://discourse.julialang.org/t/ann-ghiblipalettes-jl-access-the-beautiful-ghibli-color-palettes/92197 "2022-12-27T19:45:10Z")

</div>

You can see the source code and some tiny docs here: GitHub - jdiaz97/GhibliPalettes.jl: Beautiful Ghibli colors You can already install it using Pkg.add("GhibliPalettes")

---

## [How to fit a polynomial with a pre-determined degree to a set of points?](https://discourse.julialang.org/t/how-to-fit-a-polynomial-with-a-pre-determined-degree-to-a-set-of-points/91981)

<div class="topic-metadata">

**Author:** [@Hugo](https://discourse.julialang.org/u/Hugo)\
**Replies:** 7\
**Last updated:** [December 27, 2022, 7:44pm UTC](https://discourse.julialang.org/t/how-to-fit-a-polynomial-with-a-pre-determined-degree-to-a-set-of-points/91981 "2022-12-27T19:44:06Z")

</div>

Hi, all I want to approximate a function to a vector v of 99 values so I can evaluate that function over other values. This can be a simple linear interpolation of the 99 values, but I’d fit a polynomial in case other v…

---

## [Interpolations.jl: different fill values left and right for FillExtrapolation](https://discourse.julialang.org/t/interpolations-jl-different-fill-values-left-and-right-for-fillextrapolation/92193)

<div class="topic-metadata">

**Author:** [@tom-plaa](https://discourse.julialang.org/u/tom-plaa)\
**Replies:** 4\
**Last updated:** [December 27, 2022, 7:35pm UTC](https://discourse.julialang.org/t/interpolations-jl-different-fill-values-left-and-right-for-fillextrapolation/92193 "2022-12-27T19:35:34Z")

</div>

Is it possible to select different fill values for left and right for extrapolation? For example, imagine I want the interpolation object to return 0 when to left of the minimum existing value in the grid and 1 when it’…

---

## [Solving an ODE which depends on an external function](https://discourse.julialang.org/t/solving-an-ode-which-depends-on-an-external-function/92176)

<div class="topic-metadata">

**Author:** [@minimal\_subs](https://discourse.julialang.org/u/minimal_subs)\
**Replies:** 12\
**Last updated:** [December 27, 2022, 7:11pm UTC](https://discourse.julialang.org/t/solving-an-ode-which-depends-on-an-external-function/92176 "2022-12-27T19:11:16Z")

</div>

Greetings, I’m a relatively new Julia user and have encountered a problem. I’m a bit embarrassed to post it here, since it seems sure to be something really obvious. A brief statement of the problem is as follows. I am t…

---

## [How to define a lower triangular variable WITHOUT the main diagonal elements](https://discourse.julialang.org/t/how-to-define-a-lower-triangular-variable-without-the-main-diagonal-elements/92112)

<div class="topic-metadata">

**Author:** [@ivzktch99](https://discourse.julialang.org/u/ivzktch99)\
**Replies:** 3\
**Last updated:** [December 27, 2022, 5:53pm UTC](https://discourse.julialang.org/t/how-to-define-a-lower-triangular-variable-without-the-main-diagonal-elements/92112 "2022-12-27T17:53:26Z")

</div>

Searching here I found the following way of defining a lower triangular variable in JuMP: using JuMP import LinearAlgebra model = Model() @variable(model, A\[1:3,1:3\], Symmetric) Al = LinearAlgebra.LowerTriangular(A) ju…

---

## [Idea to make Zygote support mutation in easy cases](https://discourse.julialang.org/t/idea-to-make-zygote-support-mutation-in-easy-cases/92118)

<div class="topic-metadata">

**Author:** [@Lilith](https://discourse.julialang.org/u/Lilith)\
**Replies:** 6\
**Last updated:** [December 27, 2022, 4:34pm UTC](https://discourse.julialang.org/t/idea-to-make-zygote-support-mutation-in-easy-cases/92118 "2022-12-27T16:34:21Z")

</div>

Motivation The appeal of automatic differentiation is that you can write a function using ordinary Julia and the gradient is automatically computed. Disallowing mutation in that function seems reasonable on the surface—i…

---

## [How to load BSON file of the model build with Flux@0.12.10 to use with Flux@0.13? Flux.Diagonal deprecated problem](https://discourse.julialang.org/t/how-to-load-bson-file-of-the-model-build-with-flux-0-12-10-to-use-with-flux-0-13-flux-diagonal-deprecated-problem/91588)

<div class="topic-metadata">

**Author:** [@Maxim\_Lubov](https://discourse.julialang.org/u/Maxim_Lubov)\
**Replies:** 7\
**Last updated:** [December 27, 2022, 4:24pm UTC](https://discourse.julialang.org/t/how-to-load-bson-file-of-the-model-build-with-flux-0-12-10-to-use-with-flux-0-13-flux-diagonal-deprecated-problem/91588 "2022-12-27T16:24:02Z")

</div>

I have a Transformer model that was built using Transformers.jl and Flux@0.12.10. After training the model, I saved it using BSON. Since Flux@0.13, Flux.Diagonal is deprecated and when I try to load model using BSON an…

---

## [How to Create Bone of Cylinder with Ellipse with Plots / PlotlyJS?](https://discourse.julialang.org/t/how-to-create-bone-of-cylinder-with-ellipse-with-plots-plotlyjs/92181)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 3\
**Last updated:** [December 27, 2022, 3:12pm UTC](https://discourse.julialang.org/t/how-to-create-bone-of-cylinder-with-ellipse-with-plots-plotlyjs/92181 "2022-12-27T15:12:41Z")

</div>

Hi all, I have created the left side of the picture: with this code: using Plots, LaTeXStrings, Plots.PlotMeasures gr() f(x) = sqrt(x) plot(f,0,4, xtick=0:4:4, xlims=(0,6), ylims=(0,3), framestyle=:zerolines, bo…

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

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