# Latest

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

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

**Page:** 1115

---

## [I am not able to use julia in vscode](https://discourse.julialang.org/t/i-am-not-able-to-use-julia-in-vscode/76112)

<div class="topic-metadata">

**Author:** [@sai\_matcha](https://discourse.julialang.org/u/sai_matcha)\
**Replies:** 8\
**Last updated:** [February 22, 2022, 8:38am UTC](https://discourse.julialang.org/t/i-am-not-able-to-use-julia-in-vscode/76112 "2022-02-22T08:38:53Z")

</div>

I have recently installed vscode , when i try to use julia in vs code i got below error. can somebody help me to install julia in vscode Could not start the Julia language server. Make sure the configuration setting jul…

---

## [Guides to using encrypted credentials?](https://discourse.julialang.org/t/guides-to-using-encrypted-credentials/32387)

<div class="topic-metadata">

**Author:** [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)\
**Replies:** 4\
**Last updated:** [February 22, 2022, 8:34am UTC](https://discourse.julialang.org/t/guides-to-using-encrypted-credentials/32387 "2022-02-22T08:34:12Z")

</div>

I recently started writing a Slack bot for work. There are a whole bunch of credentials for the Slack bot to use the Slack API. I’d like to store them in a TOML file, but I don’t know what’s the correct way to go about…

---

## [Invalid operator error "--"](https://discourse.julialang.org/t/invalid-operator-error/76883)

<div class="topic-metadata">

**Author:** [@iAnkiit](https://discourse.julialang.org/u/iAnkiit)\
**Replies:** 2\
**Last updated:** [February 22, 2022, 6:27am UTC](https://discourse.julialang.org/t/invalid-operator-error/76883 "2022-02-22T06:27:40Z")

</div>

I am trying to create a project in a directory. It is showing syntax error. I am trying : julia --project="GenX" Can someone please help-out ? Julia 1.7.2 it is

---

## [Set different tolerances for each variable when using ODE solvers](https://discourse.julialang.org/t/set-different-tolerances-for-each-variable-when-using-ode-solvers/76861)

<div class="topic-metadata">

**Author:** [@Yinmin\_Liu](https://discourse.julialang.org/u/Yinmin_Liu)\
**Replies:** 2\
**Last updated:** [February 22, 2022, 6:27am UTC](https://discourse.julialang.org/t/set-different-tolerances-for-each-variable-when-using-ode-solvers/76861 "2022-02-22T06:27:33Z")

</div>

I am trying to solve two coupled ODE systems together. In Python ODE solvers (SciPy), I can pass a list of tolerance values for each variable. How can I do the same thing in Julia solvers?

---

## [Getpwnam()?](https://discourse.julialang.org/t/getpwnam/31554)

<div class="topic-metadata">

**Author:** [@mleisher](https://discourse.julialang.org/u/mleisher)\
**Replies:** 13\
**Last updated:** [February 22, 2022, 3:31am UTC](https://discourse.julialang.org/t/getpwnam/31554 "2022-02-22T03:31:46Z")

</div>

Before I try to write one, does a julia version already exist?

---

## [Why does this iterator fail to update correctly?](https://discourse.julialang.org/t/why-does-this-iterator-fail-to-update-correctly/74310)

<div class="topic-metadata">

**Author:** [@karthink](https://discourse.julialang.org/u/karthink)\
**Replies:** 5\
**Last updated:** [February 22, 2022, 3:21am UTC](https://discourse.julialang.org/t/why-does-this-iterator-fail-to-update-correctly/74310 "2022-02-22T03:21:22Z")

</div>

This iterator got stuck after the first iteration for me: Definition: struct MyInterval trange :: Tuple{Number,Number} end function Base.iterate(m::MyInterval, state=m.trange\[1\]) if state \>= m.trange\[2\] …

---

## [Reading and processing multiple very large Wav files](https://discourse.julialang.org/t/reading-and-processing-multiple-very-large-wav-files/27158)

<div class="topic-metadata">

**Author:** [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Replies:** 10\
**Last updated:** [February 22, 2022, 2:30am UTC](https://discourse.julialang.org/t/reading-and-processing-multiple-very-large-wav-files/27158 "2022-02-22T02:30:33Z")

</div>

New job, new problems! :slight\_smile: I’m currently trying to figure out the best way to read a folder of very large WAV sound files and process them. Reading an entire file causes me to run out of memory. Thankfully, t…

---

## [Passing CuArray to PyTorch Tensor](https://discourse.julialang.org/t/passing-cuarray-to-pytorch-tensor/23067)

<div class="topic-metadata">

**Author:** [@gdestouet](https://discourse.julialang.org/u/gdestouet)\
**Replies:** 7\
**Last updated:** [February 22, 2022, 12:01am UTC](https://discourse.julialang.org/t/passing-cuarray-to-pytorch-tensor/23067 "2022-02-22T00:01:37Z")

</div>

Hello everyone, I am actually using this to pass CuArrays to PyTorch Tensor : using PyCall tc = pyimport("torch") using CuArrays x=cu(randn(1024,1024)) @time tc.from\_numpy(Array(x)).cuda() 0.025017 seconds (62 alloca…

---

## [How to make this distribution symmetric?](https://discourse.julialang.org/t/how-to-make-this-distribution-symmetric/76728)

<div class="topic-metadata">

**Author:** [@CentraCep](https://discourse.julialang.org/u/CentraCep)\
**Replies:** 7\
**Last updated:** [February 21, 2022, 10:44pm UTC](https://discourse.julialang.org/t/how-to-make-this-distribution-symmetric/76728 "2022-02-21T22:44:28Z")

</div>

Let’s say I have the following data file: https://ufile.io/b2v6t45e Using this file, I can plot a Maxwell-Boltzmann functon and see how it changes as a function of s with this code: # using necessary packages using La…

---

## [Symbolics.jl simplify function gives overflow error](https://discourse.julialang.org/t/symbolics-jl-simplify-function-gives-overflow-error/76723)

<div class="topic-metadata">

**Author:** [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Replies:** 3\
**Last updated:** [February 21, 2022, 10:01pm UTC](https://discourse.julialang.org/t/symbolics-jl-simplify-function-gives-overflow-error/76723 "2022-02-21T22:01:55Z")

</div>

I am trying out the Symbolics.jl package for the first time to avoid solving this 2x2 system by hand. However, I am getting an overflow error when trying to simplify the answer. Are there any strategies to avoid overfl…

---

## [Interactive Smith Chart](https://discourse.julialang.org/t/interactive-smith-chart/76862)

<div class="topic-metadata">

**Author:** [@white-c](https://discourse.julialang.org/u/white-c)\
**Replies:** 4\
**Last updated:** [February 21, 2022, 10:05pm UTC](https://discourse.julialang.org/t/interactive-smith-chart/76862 "2022-02-21T22:05:59Z")

</div>

I’m interested in having a Smith Chart that is interactive. I have seen static smith charts in some of Julia’s plotting ecosystem. I have found that Plotly has them in its Python library. Is there a way to get that in Pl…

---

## [How to efficiently calculate the Jacobian of the solution of a differential equation with respect to the initial conditions?](https://discourse.julialang.org/t/how-to-efficiently-calculate-the-jacobian-of-the-solution-of-a-differential-equation-with-respect-to-the-initial-conditions/76650)

<div class="topic-metadata">

**Author:** [@marcsgil](https://discourse.julialang.org/u/marcsgil)\
**Replies:** 1\
**Last updated:** [February 21, 2022, 9:44pm UTC](https://discourse.julialang.org/t/how-to-efficiently-calculate-the-jacobian-of-the-solution-of-a-differential-equation-with-respect-to-the-initial-conditions/76650 "2022-02-21T21:44:24Z")

</div>

I need to numerically perform an integral of the form \\int\_{0}^{t\_{max}} F \\left( \\mathbf{u}(t), \\frac{\\partial \\mathbf{u}(t)}{ \\partial \\mathbf{u}(0)} \\right) dt where F is a certain function, \\mathbf{u}(t) is the …

---

## [Reading versions of a package from unpacked registry tarball](https://discourse.julialang.org/t/reading-versions-of-a-package-from-unpacked-registry-tarball/76829)

<div class="topic-metadata">

**Author:** [@greg\_plowman](https://discourse.julialang.org/u/greg_plowman)\
**Replies:** 2\
**Last updated:** [February 21, 2022, 8:54pm UTC](https://discourse.julialang.org/t/reading-versions-of-a-package-from-unpacked-registry-tarball/76829 "2022-02-21T20:54:03Z")

</div>

With the old-style git clone registry, I could find the latest version of a package by reading the Versions.toml file in the unpacked registry directory structure: function latest\_version(pkgname::AbstractString) pa…

---

## [Link axis not working in Plots for marginal density](https://discourse.julialang.org/t/link-axis-not-working-in-plots-for-marginal-density/76857)

<div class="topic-metadata">

**Author:** [@rwalters31](https://discourse.julialang.org/u/rwalters31)\
**Replies:** 0\
**Last updated:** [February 21, 2022, 7:04pm UTC](https://discourse.julialang.org/t/link-axis-not-working-in-plots-for-marginal-density/76857 "2022-02-21T19:04:52Z")

</div>

I’m trying to put in marginal density plots above and to the right of x,y scatter data. I have tried the ‘link’ in both the :x, :y, and :both directions but as you can see the top figure does not match the axis of th…

---

## [Using scratch space as a time-limited cache](https://discourse.julialang.org/t/using-scratch-space-as-a-time-limited-cache/76849)

<div class="topic-metadata">

**Author:** [@tbeason](https://discourse.julialang.org/u/tbeason)\
**Replies:** 4\
**Last updated:** [February 21, 2022, 6:38pm UTC](https://discourse.julialang.org/t/using-scratch-space-as-a-time-limited-cache/76849 "2022-02-21T18:38:08Z")

</div>

I have a package (well, several really) which allow you to pull data from online repositories. They make my workflow easier so I tend to not actually store the data, I just repeatedly fetch it. However, this is suboptima…

---

## [Animating 10 steps](https://discourse.julialang.org/t/animating-10-steps/76839)

<div class="topic-metadata">

**Author:** [@Mahmoud](https://discourse.julialang.org/u/Mahmoud)\
**Replies:** 10\
**Last updated:** [February 21, 2022, 6:29pm UTC](https://discourse.julialang.org/t/animating-10-steps/76839 "2022-02-21T18:29:59Z")

</div>

I have 100 points each point simulates a person at specific position plotted like in the attached image using the scatter! function scatter!((x,y)) ’ ’ ’ for i in 1:100 #scatter!((x,y)) end ’ ’ ’ I started to mov…

---

## [Segmentation fault error with JuMP and Ipopt on HPC cluster](https://discourse.julialang.org/t/segmentation-fault-error-with-jump-and-ipopt-on-hpc-cluster/67642)

<div class="topic-metadata">

**Author:** [@Shuvomoy\_Das\_Gupta](https://discourse.julialang.org/u/Shuvomoy_Das_Gupta)\
**Replies:** 2\
**Last updated:** [September 3, 2021, 7:19pm UTC](https://discourse.julialang.org/t/segmentation-fault-error-with-jump-and-ipopt-on-hpc-cluster/67642 "2021-09-03T19:19:52Z")

</div>

Dear All, I am trying to solve a large-scale optimization problem that uses JuMP and Ipopt. I get a signal (11): Segmentation fault error trying to run the code on an HPC cluster (details below), however if I switch to …

---

## [How to use Bijectors.jl for model with simplex, am I doing right?](https://discourse.julialang.org/t/how-to-use-bijectors-jl-for-model-with-simplex-am-i-doing-right/76768)

<div class="topic-metadata">

**Author:** [@pleochroite](https://discourse.julialang.org/u/pleochroite)\
**Replies:** 4\
**Last updated:** [February 21, 2022, 4:49pm UTC](https://discourse.julialang.org/t/how-to-use-bijectors-jl-for-model-with-simplex-am-i-doing-right/76768 "2022-02-21T16:49:50Z")

</div>

Hello all, I am trying to translate a textbook written in R/Stan into Turing. Simple models such as logistic regression are easy for me to model. However, faced to advanced models with ordered/simplex constraints, I got…

---

## [Call Matlab inbuilt function from Julia](https://discourse.julialang.org/t/call-matlab-inbuilt-function-from-julia/76845)

<div class="topic-metadata">

**Author:** [@xspeng](https://discourse.julialang.org/u/xspeng)\
**Replies:** 2\
**Last updated:** [February 21, 2022, 3:44pm UTC](https://discourse.julialang.org/t/call-matlab-inbuilt-function-from-julia/76845 "2022-02-21T15:44:08Z")

</div>

Hi, there is a problem when I try to call the bayesopt function (inbuilt function) from Julia, here is a simple example, and it will give an error like follows. Unable to use a value of type table as an index. Error …

---

## [ANN: Simulated Neural Moments now uses Turing](https://discourse.julialang.org/t/ann-simulated-neural-moments-now-uses-turing/76843)

<div class="topic-metadata">

**Author:** [@mcreel](https://discourse.julialang.org/u/mcreel)\
**Replies:** 0\
**Last updated:** [February 21, 2022, 2:59pm UTC](https://discourse.julialang.org/t/ann-simulated-neural-moments-now-uses-turing/76843 "2022-02-21T14:59:33Z")

</div>

Following the simple example of ABC/MSM using Turing.jl (ABC / MSM with Turing.jl), I have updated the https://github.com/mcreel/SimulatedNeuralMoments.jl package to write the likelihood using the Turing.jl PPL form. Sam…

---

## [Pkg version list?](https://discourse.julialang.org/t/pkg-version-list/1257)

<div class="topic-metadata">

**Author:** [@Daneel](https://discourse.julialang.org/u/Daneel)\
**Replies:** 9\
**Last updated:** [February 21, 2022, 2:28pm UTC](https://discourse.julialang.org/t/pkg-version-list/1257 "2022-02-21T14:28:01Z")

</div>

Is there a way to get a list of available versions of a package? I’m trying to get ahead on updating my code for Julia 0.6 but a package my code depends on, DataFrames, doesn’t work in 0.6 when I simply use Pkg.add; it …

---

## [Zero and zerounit, analogous to one and oneunit?](https://discourse.julialang.org/t/zero-and-zerounit-analogous-to-one-and-oneunit/76841)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 2\
**Last updated:** [February 21, 2022, 2:24pm UTC](https://discourse.julialang.org/t/zero-and-zerounit-analogous-to-one-and-oneunit/76841 "2022-02-21T14:24:57Z")

</div>

Following this reasoning, shouldn’t we also have zerounit for consistency? zero can be defined as the additive identity. I find it very strange that we need to write code with a mix of oneunit and zero instead of oneuni…

---

## [Unitful one(T) = 1.0 (without units). What is the alternative?](https://discourse.julialang.org/t/unitful-one-t-1-0-without-units-what-is-the-alternative/71024)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 1\
**Last updated:** [November 5, 2021, 7:19pm UTC](https://discourse.julialang.org/t/unitful-one-t-1-0-without-units-what-is-the-alternative/71024 "2021-11-05T19:19:01Z")

</div>

Basically: julia\> using Unitful julia\> x = 1.0u"nm" 1.0 nm julia\> zero(typeof(x)) 0.0 nm julia\> one(typeof(x)) 1.0 julia\> Why one(typeof(x)) is not 1.0 nm? And which is the alternative to using one for unit propaga…

---

## [Cannot use any package after self-compiled Julia v1.7 distributed](https://discourse.julialang.org/t/cannot-use-any-package-after-self-compiled-julia-v1-7-distributed/76833)

<div class="topic-metadata">

**Author:** [@Jieyi\_Xiong](https://discourse.julialang.org/u/Jieyi_Xiong)\
**Replies:** 13\
**Last updated:** [February 21, 2022, 2:07pm UTC](https://discourse.julialang.org/t/cannot-use-any-package-after-self-compiled-julia-v1-7-distributed/76833 "2022-02-21T14:07:08Z")

</div>

I use two Linux servers. Although the two servers are not exactly identical, I can still compile Julia v1.6.x in one server and copy the usr/ to another server, and Julia works fine in both machines (I do it because Juli…

---

## [Boruta algorithm](https://discourse.julialang.org/t/boruta-algorithm/76821)

<div class="topic-metadata">

**Author:** [@Jaidy](https://discourse.julialang.org/u/Jaidy)\
**Replies:** 4\
**Last updated:** [February 21, 2022, 11:46am UTC](https://discourse.julialang.org/t/boruta-algorithm/76821 "2022-02-21T11:46:00Z")

</div>

Hi everyone, I am looking to use Boruta algorithm to select features for my project. First I looked up for a Julia implementation of Baruta algorithm, but could not find any. Then I found Python implementation and tried…

---

## [CSV doesn't compile Julia 1.7.2](https://discourse.julialang.org/t/csv-doesnt-compile-julia-1-7-2/76826)

<div class="topic-metadata">

**Author:** [@scotttbecker](https://discourse.julialang.org/u/scotttbecker)\
**Replies:** 6\
**Last updated:** [February 21, 2022, 10:31am UTC](https://discourse.julialang.org/t/csv-doesnt-compile-julia-1-7-2/76826 "2022-02-21T10:31:17Z")

</div>

I have tried several different methods of getting CSV to compile. I have followed the complete wipe instructions and I am still encountering the same problem. I have a Dell XPS 17 9710 running Windows 11. The log follows…

---

## [@track things. HOWTO: Is it possible to create global scope variable from local scope (function)](https://discourse.julialang.org/t/track-things-howto-is-it-possible-to-create-global-scope-variable-from-local-scope-function/76814)

<div class="topic-metadata">

**Author:** [@Marcell\_Havlik](https://discourse.julialang.org/u/Marcell_Havlik)\
**Replies:** 7\
**Last updated:** [February 21, 2022, 7:53am UTC](https://discourse.julialang.org/t/track-things-howto-is-it-possible-to-create-global-scope-variable-from-local-scope-function/76814 "2022-02-21T07:53:45Z")

</div>

Hey Julianners, I want something like this: function fn(m) # very compley function... and "m" would be a complex shit... that is hard to print @track modelsss m\[1\]=4+9 # mimicing a possible case # ex.: using m\[1…

---

## [BoundsError using fit(LassoPath, X,Y, lambda = grid)](https://discourse.julialang.org/t/boundserror-using-fit-lassopath-x-y-lambda-grid/76831)

<div class="topic-metadata">

**Author:** [@Aminath\_Shausan](https://discourse.julialang.org/u/Aminath_Shausan)\
**Replies:** 1\
**Last updated:** [February 21, 2022, 7:28am UTC](https://discourse.julialang.org/t/boundserror-using-fit-lassopath-x-y-lambda-grid/76831 "2022-02-21T07:28:44Z")

</div>

Hi, I am a beginner of Julia language. I am learning to fit a multiple regression model using lasso.jl, with fit(LassoPath, X,Y, lambda = grid) My feature matrix (X) contains 238 variables with 52 rows. The response ve…

---

## [How to desctructure a namedtuple and declare the variables to be constants using the new destructuring syntax?](https://discourse.julialang.org/t/how-to-desctructure-a-namedtuple-and-declare-the-variables-to-be-constants-using-the-new-destructuring-syntax/76830)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 1\
**Last updated:** [February 21, 2022, 6:15am UTC](https://discourse.julialang.org/t/how-to-desctructure-a-namedtuple-and-declare-the-variables-to-be-constants-using-the-new-destructuring-syntax/76830 "2022-02-21T06:15:12Z")

</div>

julia\> const nt = (; a = 1) (a = 1,) julia\> const a\_ = nt.a 1 This defines a\_ as a constant. Now julia v1.7 has introduced the new destructuring syntax julia\> (; a) = nt (a = 1,) Is there any way to use this syntax a…

---

## [Cholesky promotes Float16](https://discourse.julialang.org/t/cholesky-promotes-float16/76772)

<div class="topic-metadata">

**Author:** [@ctkelley](https://discourse.julialang.org/u/ctkelley)\
**Replies:** 16\
**Last updated:** [February 21, 2022, 5:24am UTC](https://discourse.julialang.org/t/cholesky-promotes-float16/76772 "2022-02-21T05:24:53Z")

</div>

I’m seeing Cholesky promote half precision to single on its own. Is this supposed to happen? lu does not do this. Running 1.7.2 on an M1 Macbook. Same results on Intel Mac with MKL Blas. Bug or feature? julia\> R=rand…

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

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