# Latest

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

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

**Page:** 969

---

## [How to change datatype like MATLAB](https://discourse.julialang.org/t/how-to-change-datatype-like-matlab/84946)

<div class="topic-metadata">

**Author:** [@Starpower\_Power](https://discourse.julialang.org/u/Starpower_Power)\
**Replies:** 5\
**Last updated:** [July 29, 2022, 9:29am UTC](https://discourse.julialang.org/t/how-to-change-datatype-like-matlab/84946 "2022-07-29T09:29:46Z")

</div>

in matlab we can change datatype by double(22/7), is there any method in julia. Thank You

---

## [Multithreading with lock](https://discourse.julialang.org/t/multithreading-with-lock/84967)

<div class="topic-metadata">

**Author:** [@Brian1](https://discourse.julialang.org/u/Brian1)\
**Replies:** 0\
**Last updated:** [July 29, 2022, 9:08am UTC](https://discourse.julialang.org/t/multithreading-with-lock/84967 "2022-07-29T09:08:35Z")

</div>

Is there a way I can get to know which of thread is using the SpinLock, which is locked by the thread. For example, there is a l=SpinLock(), and it is locked in threadid()=1. When the code runed into thread 2, how can …

---

## [Metaprogramming: Obtain actual type from Symbol for field inheritance](https://discourse.julialang.org/t/metaprogramming-obtain-actual-type-from-symbol-for-field-inheritance/84912)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 15\
**Last updated:** [July 29, 2022, 8:55am UTC](https://discourse.julialang.org/t/metaprogramming-obtain-actual-type-from-symbol-for-field-inheritance/84912 "2022-07-29T08:55:22Z")

</div>

Hello, I admit, having read How to get the type of a symbol in a macro? I realize that this may be harder than I thought, but perhaps if I describe what I want to achieve, a solution can be made for this specific case. …

---

## [\[Cancelled\] JuliaCon 2022 - Munich Social in-person](https://discourse.julialang.org/t/cancelled-juliacon-2022-munich-social-in-person/84170)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 4\
**Last updated:** [July 29, 2022, 7:55am UTC](https://discourse.julialang.org/t/cancelled-juliacon-2022-munich-social-in-person/84170 "2022-07-29T07:55:22Z")

</div>

:spiral\_calendar: Thursday 27th July :clock430: 16:30 CEST :round\_pushpin:locally in Munich, MPI for Physics The event is organized via meetup JuliaCon 2022 - Munich Social in-person ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ As part…

---

## [Scipy.optimize.curve\_fit(): "ValueError("\`x0\` is infeasible.")"](https://discourse.julialang.org/t/scipy-optimize-curve-fit-valueerror-x0-is-infeasible/84958)

<div class="topic-metadata">

**Author:** [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Replies:** 0\
**Last updated:** [July 29, 2022, 6:19am UTC](https://discourse.julialang.org/t/scipy-optimize-curve-fit-valueerror-x0-is-infeasible/84958 "2022-07-29T06:19:52Z")

</div>

Yesterday I struggled with the error message: "ValueError("x0 is infeasible.")" of the function scipy.optimize.curve\_fit(), this is my contribution for others that start to work with this well tested method. If you wor…

---

## [Makie - Keep GLMakie window on top of everything](https://discourse.julialang.org/t/makie-keep-glmakie-window-on-top-of-everything/72722)

<div class="topic-metadata">

**Author:** [@Kolaru](https://discourse.julialang.org/u/Kolaru)\
**Replies:** 2\
**Last updated:** [July 29, 2022, 4:21am UTC](https://discourse.julialang.org/t/makie-keep-glmakie-window-on-top-of-everything/72722 "2022-07-29T04:21:02Z")

</div>

Is there a built-in way to ask GLMakie to keep the figure window on top of all the others? I know of external programs that can do it to any window, but it would be slightly more convenient for me if I could do it from …

---

## [Unbounded Numerical Integration, non-centered](https://discourse.julialang.org/t/unbounded-numerical-integration-non-centered/84947)

<div class="topic-metadata">

**Author:** [@Ross\_Boylan](https://discourse.julialang.org/u/Ross_Boylan)\
**Replies:** 3\
**Last updated:** [July 29, 2022, 1:43am UTC](https://discourse.julialang.org/t/unbounded-numerical-integration-non-centered/84947 "2022-07-29T01:43:31Z")

</div>

I’m interested in integrating f(x)\\phi(x) over the entire real line, where \\phi(x) is the Gaussian/Normal density function. Ordinarily the Gauss-Hermite method in FastGaussQuadrature would be good for this (with suitabl…

---

## [Should Julia model audio data like it models image data: with an easy conversion between a matrix and its corresponding media file?](https://discourse.julialang.org/t/should-julia-model-audio-data-like-it-models-image-data-with-an-easy-conversion-between-a-matrix-and-its-corresponding-media-file/84941)

<div class="topic-metadata">

**Author:** [@g2g](https://discourse.julialang.org/u/g2g)\
**Replies:** 0\
**Last updated:** [July 28, 2022, 9:49pm UTC](https://discourse.julialang.org/t/should-julia-model-audio-data-like-it-models-image-data-with-an-easy-conversion-between-a-matrix-and-its-corresponding-media-file/84941 "2022-07-28T21:49:25Z")

</div>

I am using Julia to create a video entry into the Summer of Math Exposition II competition and I wanted to see how difficult it would be to automate all the video editing tasks with Julia and ffmpeg instead of spending h…

---

## [Manually create legend in Plots.jl](https://discourse.julialang.org/t/manually-create-legend-in-plots-jl/84925)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 4\
**Last updated:** [July 28, 2022, 11:39pm UTC](https://discourse.julialang.org/t/manually-create-legend-in-plots-jl/84925 "2022-07-28T23:39:39Z")

</div>

Hi all, I have a plot with a gradient build from a large series of subplots. I would like to manually add a legend independent of the underlying series data. The legend might show a colored line paired with a label: (b…

---

## [Looking for interactive statistical graphs](https://discourse.julialang.org/t/looking-for-interactive-statistical-graphs/84950)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 4\
**Last updated:** [July 28, 2022, 11:34pm UTC](https://discourse.julialang.org/t/looking-for-interactive-statistical-graphs/84950 "2022-07-28T23:34:41Z")

</div>

Is there a free repo for interactive web apps illustrating statistical concepts? Something like the Wolfram Demonstrations Project, but made with no proprietary software that can run directly from the browser. For examp…

---

## [\[English\] \`train!\` or \`fit!\` for a ML API?](https://discourse.julialang.org/t/english-train-or-fit-for-a-ml-api/84899)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 1\
**Last updated:** [July 28, 2022, 11:13pm UTC](https://discourse.julialang.org/t/english-train-or-fit-for-a-ml-api/84899 "2022-07-28T23:13:24Z")

</div>

I am deeply undecided to name the step where parameters of a model are learned from data in the API of my ML library train!(model,X,\[Y\]) or fit!(model,X,\[Y\]). I would intuitively prefer the first, as make somehow explic…

---

## [Help with symbolics, how to get coefficients and simple roots](https://discourse.julialang.org/t/help-with-symbolics-how-to-get-coefficients-and-simple-roots/68180)

<div class="topic-metadata">

**Author:** [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Replies:** 2\
**Last updated:** [July 28, 2022, 11:08pm UTC](https://discourse.julialang.org/t/help-with-symbolics-how-to-get-coefficients-and-simple-roots/68180 "2022-07-28T23:08:46Z")

</div>

using Symbolics @variables x D = Differential(x) Z = 2.1309 + 0.0515x - 0.0009(x^2) ZZ = expand\_derivatives(D(Z)) # Derivative is 0.0515 - 0.0018x println("Derivative is ",ZZ) # How to get the coefficient of x from eq…

---

## [Very strange language choice for printing integer vs float arrays](https://discourse.julialang.org/t/very-strange-language-choice-for-printing-integer-vs-float-arrays/84945)

<div class="topic-metadata">

**Author:** [@singularity](https://discourse.julialang.org/u/singularity)\
**Replies:** 2\
**Last updated:** [July 28, 2022, 10:19pm UTC](https://discourse.julialang.org/t/very-strange-language-choice-for-printing-integer-vs-float-arrays/84945 "2022-07-28T22:19:38Z")

</div>

I find the following behavior of print statement quite strange. Let’s say I have an array of floating point numbers and I print it. That is, a = \[2.0, 3.0\] println(a) I get the following result upon executing the code…

---

## [AbstractVector vs AbstractRange: length vs size -- which is fundamental?](https://discourse.julialang.org/t/abstractvector-vs-abstractrange-length-vs-size-which-is-fundamental/64689)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 3\
**Last updated:** [July 28, 2022, 9:01pm UTC](https://discourse.julialang.org/t/abstractvector-vs-abstractrange-length-vs-size-which-is-fundamental/64689 "2022-07-28T21:01:17Z")

</div>

It appears that julia master has changed a behavior from previous versions, and now size for an AbstractRange is defined as (length(r),) instead of the previous behavior where length was defined as prod(size(r)). This ma…

---

## [Accessing the docstring from within a macro, @\_\_doc\_\_ troubles](https://discourse.julialang.org/t/accessing-the-docstring-from-within-a-macro-doc-troubles/84937)

<div class="topic-metadata">

**Author:** [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Replies:** 0\
**Last updated:** [July 28, 2022, 8:32pm UTC](https://discourse.julialang.org/t/accessing-the-docstring-from-within-a-macro-doc-troubles/84937 "2022-07-28T20:32:34Z")

</div>

I’d like to have a wrapper for a function, which contains its docstring. This works: julia\> struct MyWrapper f docstring end julia\> macro wrap(fdef) fname = fdef.args\[1\].args\[1\] …

---

## [@time returns a negative value](https://discourse.julialang.org/t/time-returns-a-negative-value/84935)

<div class="topic-metadata">

**Author:** [@trashspam7](https://discourse.julialang.org/u/trashspam7)\
**Replies:** 4\
**Last updated:** [July 28, 2022, 8:26pm UTC](https://discourse.julialang.org/t/time-returns-a-negative-value/84935 "2022-07-28T20:26:54Z")

</div>

I’m using @time to time some code, what does it mean when it returns a negative value? What does it mean when it returns nothing? What is the trusted resolution of @time? I just need to get precision on the level of ~1s. …

---

## [Is there such a thing like a pushcopy!(...)?](https://discourse.julialang.org/t/is-there-such-a-thing-like-a-pushcopy/84930)

<div class="topic-metadata">

**Author:** [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Replies:** 5\
**Last updated:** [July 28, 2022, 6:41pm UTC](https://discourse.julialang.org/t/is-there-such-a-thing-like-a-pushcopy/84930 "2022-07-28T18:41:07Z")

</div>

Hi, I was wondering if there’s an option or a function in base that pushes a copy rather than a reference into a collection, similarly to what pushcopy!(collection::AbstractVector, item::AbstractArray) = push!(collecti…

---

## [Infiltrator and Revise](https://discourse.julialang.org/t/infiltrator-and-revise/83539)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 1\
**Last updated:** [July 28, 2022, 4:12pm UTC](https://discourse.julialang.org/t/infiltrator-and-revise/83539 "2022-07-28T16:12:08Z")

</div>

Hello, I am currently debugging some functions in a package I am writing for myself. I do the actual code writing in VSCode but I have a REPL open with the package loaded (using MyPackage) as well as Infiltrator.jl. The…

---

## [No LS running or start](https://discourse.julialang.org/t/no-ls-running-or-start/84918)

<div class="topic-metadata">

**Author:** [@aerdely](https://discourse.julialang.org/u/aerdely)\
**Replies:** 4\
**Last updated:** [July 28, 2022, 3:36pm UTC](https://discourse.julialang.org/t/no-ls-running-or-start/84918 "2022-07-28T15:36:01Z")

</div>

I got the message No LS running or start. Check your settings but have no idea which settings I should check and what to do. Any hints?

---

## [JuliaCon 2022 London Meetup](https://discourse.julialang.org/t/juliacon-2022-london-meetup/83135)

<div class="topic-metadata">

**Author:** [@giordano](https://discourse.julialang.org/u/giordano)\
**Replies:** 2\
**Last updated:** [July 28, 2022, 3:33pm UTC](https://discourse.julialang.org/t/juliacon-2022-london-meetup/83135 "2022-07-28T15:33:02Z")

</div>

As part of the global effort to host local meetups during JuliaCon, we’re excited to announce the JuliaCon 2022 London Meetup: Come join us to watch JuliaCon talks, chat with other users and have cookies.

---

## [How to get one dataframe from many dataframes in Julia (cf. rbindlist in R)](https://discourse.julialang.org/t/how-to-get-one-dataframe-from-many-dataframes-in-julia-cf-rbindlist-in-r/84456)

<div class="topic-metadata">

**Author:** [@bertlhf](https://discourse.julialang.org/u/bertlhf)\
**Replies:** 7\
**Last updated:** [July 28, 2022, 3:30pm UTC](https://discourse.julialang.org/t/how-to-get-one-dataframe-from-many-dataframes-in-julia-cf-rbindlist-in-r/84456 "2022-07-28T15:30:16Z")

</div>

Below schematically how I’m doing this in R. How can I (Julia newby) do this in Julia # file abc.R df \<- rbindlist(list(df, data.frame(A = "abc1", B = 1), data.frame(A = "abc2", B = 2))) # file bcd.R df \<- rbindlist(li…

---

## [Any One Know of A Julia Serverless Function/App Provider?](https://discourse.julialang.org/t/any-one-know-of-a-julia-serverless-function-app-provider/74072)

<div class="topic-metadata">

**Author:** [@Joe\_Schnetzler](https://discourse.julialang.org/u/Joe_Schnetzler)\
**Replies:** 2\
**Last updated:** [July 28, 2022, 3:00pm UTC](https://discourse.julialang.org/t/any-one-know-of-a-julia-serverless-function-app-provider/74072 "2022-07-28T15:00:34Z")

</div>

Hello Julia Devs! Does anyone know of really easy Julia Serverless Function providers and/or app providers (Genie.jl)? If not, anyone interested in helping me build one? Maybe using open-faas? Thinking something as simp…

---

## [Deprecation warnings from Atom with v1.7](https://discourse.julialang.org/t/deprecation-warnings-from-atom-with-v1-7/72400)

<div class="topic-metadata">

**Author:** [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Replies:** 3\
**Last updated:** [July 28, 2022, 2:16pm UTC](https://discourse.julialang.org/t/deprecation-warnings-from-atom-with-v1-7/72400 "2022-07-28T14:16:32Z")

</div>

I have a Intel Macbook Pro This is what I did to upgrade from 1.6.4 to 1.7 Step 1: download the dmg file from website Step 2: shutdown all instances of Julia (including atom, IJulia, Pluto) Step 2.5: Open the dmg fil…

---

## [Matrix Completion](https://discourse.julialang.org/t/matrix-completion/84879)

<div class="topic-metadata">

**Author:** [@Fadi\_Hamad](https://discourse.julialang.org/u/Fadi_Hamad)\
**Replies:** 4\
**Last updated:** [July 28, 2022, 2:01pm UTC](https://discourse.julialang.org/t/matrix-completion/84879 "2022-07-28T14:01:11Z")

</div>

Hello, I am trying to formulate (unconstrained form) the Matrix completion problem in JuMP. I am trying this formulation based on minimizing the square loss and the Frobenius norm, but this formulation always leads to …

---

## [\[ANN\] Julia Snail, an Emacs development environment — version 1.1.0 release](https://discourse.julialang.org/t/ann-julia-snail-an-emacs-development-environment-version-1-1-0-release/65980)

<div class="topic-metadata">

**Author:** [@gcv](https://discourse.julialang.org/u/gcv)\
**Replies:** 12\
**Last updated:** [July 28, 2022, 1:46pm UTC](https://discourse.julialang.org/t/ann-julia-snail-an-emacs-development-environment-version-1-1-0-release/65980 "2022-07-28T13:46:42Z")

</div>

In March 2020, I announced an early version of Julia Snail, an Emacs development environment for Julia. A lot of work has gone into Snail since then, and it has matured tremendously. Today, I released version 1.1.0, with…

---

## [Julia repl is ignoring my ssh config file](https://discourse.julialang.org/t/julia-repl-is-ignoring-my-ssh-config-file/65287)

<div class="topic-metadata">

**Author:** [@banksiaboy](https://discourse.julialang.org/u/banksiaboy)\
**Replies:** 9\
**Last updated:** [July 28, 2022, 1:33pm UTC](https://discourse.julialang.org/t/julia-repl-is-ignoring-my-ssh-config-file/65287 "2022-07-28T13:33:50Z")

</div>

If i try develop --local git@github.com\<\>.git, the julia repl ignores my carefully crafted ssh config file and asks for my private key location. My private keys are not stored locally and are accessed through a 2fa agent…

---

## [Can't get sortperm to return the sorting order of columns of a matrix](https://discourse.julialang.org/t/cant-get-sortperm-to-return-the-sorting-order-of-columns-of-a-matrix/84081)

<div class="topic-metadata">

**Author:** [@Gus\_Hart](https://discourse.julialang.org/u/Gus_Hart)\
**Replies:** 11\
**Last updated:** [July 16, 2022, 11:27am UTC](https://discourse.julialang.org/t/cant-get-sortperm-to-return-the-sorting-order-of-columns-of-a-matrix/84081 "2022-07-16T11:27:38Z")

</div>

I’m sorting the columns of each matrix in long vector of matrices (having the matrix columns in a canonical order makes it easy to identify approximately equal matrices). Here’s a minimal working example: julia\> t 3×2 t…

---

## [Vscode plot save button png instead of svg?](https://discourse.julialang.org/t/vscode-plot-save-button-png-instead-of-svg/84914)

<div class="topic-metadata">

**Author:** [@floswald](https://discourse.julialang.org/u/floswald)\
**Replies:** 2\
**Last updated:** [July 28, 2022, 1:02pm UTC](https://discourse.julialang.org/t/vscode-plot-save-button-png-instead-of-svg/84914 "2022-07-28T13:02:40Z")

</div>

I’m on vscode Version: 1.69.2 . I used to be able to save a plot in the plotting pane by clicking the save symbol and that gave me a .png file. now it seems i can only save svg. how can I change that back to saving .png …

---

## [ANN: new version of package BifurcationKit.jl v0.1.11](https://discourse.julialang.org/t/ann-new-version-of-package-bifurcationkit-jl-v0-1-11/75569)

<div class="topic-metadata">

**Author:** [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Replies:** 7\
**Last updated:** [July 28, 2022, 12:39pm UTC](https://discourse.julialang.org/t/ann-new-version-of-package-bifurcationkit-jl-v0-1-11/75569 "2022-07-28T12:39:53Z")

</div>

Dear all, I am glad to report a new version of BifurcationKit.jl (actually two in a row). Compared to the previous one, axed on periodic orbits, emphasis was put on codim 2 bifurcations, continuation, and their normal f…

---

## [TLS Version is not supported MySQL error](https://discourse.julialang.org/t/tls-version-is-not-supported-mysql-error/84422)

<div class="topic-metadata">

**Author:** [@Mitch](https://discourse.julialang.org/u/Mitch)\
**Replies:** 7\
**Last updated:** [July 28, 2022, 12:05pm UTC](https://discourse.julialang.org/t/tls-version-is-not-supported-mysql-error/84422 "2022-07-28T12:05:59Z")

</div>

Hi everyone, I have an Azure MySQL Database I’m trying to connect to using: DBInterface.connect(MySQL.Connection, host, user, pass, db = dbname); host, user, pass and dbname are string inputs. I’m receiving the error…

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

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