# Latest

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

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

**Page:** 709

---

## [IntelliSense is very slow for code complete](https://discourse.julialang.org/t/intellisense-is-very-slow-for-code-complete/98418)

<div class="topic-metadata">

**Author:** [@lionisxn](https://discourse.julialang.org/u/lionisxn)\
**Replies:** 0\
**Last updated:** [May 6, 2023, 11:09am UTC](https://discourse.julialang.org/t/intellisense-is-very-slow-for-code-complete/98418 "2023-05-06T11:09:52Z")

</div>

I just switched from Atom to Vscode, and found that the “code complete” performs well when editing a small script, but acts very slowly in the case of editing a file, such as a function, belonging to a package. Any sugge…

---

## [Julia in VSCODE: IntelliSense is very slow for code complete](https://discourse.julialang.org/t/julia-in-vscode-intellisense-is-very-slow-for-code-complete/98416)

<div class="topic-metadata">

**Author:** [@lionisxn](https://discourse.julialang.org/u/lionisxn)\
**Replies:** 2\
**Last updated:** [May 6, 2023, 11:04am UTC](https://discourse.julialang.org/t/julia-in-vscode-intellisense-is-very-slow-for-code-complete/98416 "2023-05-06T11:04:58Z")

</div>

I just switched from Atom to Vscode, and found that the code complete performs well when editing a script, but acts very slowly in the case of editing a package. Any suggestion on how to improve it ？

---

## [Importing packages takes very long inside jupyter notebook](https://discourse.julialang.org/t/importing-packages-takes-very-long-inside-jupyter-notebook/98306)

<div class="topic-metadata">

**Author:** [@Optimization](https://discourse.julialang.org/u/Optimization)\
**Replies:** 7\
**Last updated:** [May 6, 2023, 9:07am UTC](https://discourse.julialang.org/t/importing-packages-takes-very-long-inside-jupyter-notebook/98306 "2023-05-06T09:07:42Z")

</div>

Hello, Is there any particular resoan that importing packages in Jupyter notebook takes quite a long time. Every time it takes somewhere around 7 minutes while when not working with jupyter the import only takes a few s…

---

## [Is there a mature YAML parsing/saving package?](https://discourse.julialang.org/t/is-there-a-mature-yaml-parsing-saving-package/27989)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 5\
**Last updated:** [May 6, 2023, 7:39am UTC](https://discourse.julialang.org/t/is-there-a-mature-yaml-parsing-saving-package/27989 "2023-05-06T07:39:43Z")

</div>

I know there is a YAML.jl, but it does not even support emitting Julia objects to YAML. Is there a better option?

---

## [How to pass an argument to a function defined within a module?](https://discourse.julialang.org/t/how-to-pass-an-argument-to-a-function-defined-within-a-module/98413)

<div class="topic-metadata">

**Author:** [@atmyo4](https://discourse.julialang.org/u/atmyo4)\
**Replies:** 2\
**Last updated:** [May 6, 2023, 4:33am UTC](https://discourse.julialang.org/t/how-to-pass-an-argument-to-a-function-defined-within-a-module/98413 "2023-05-06T04:33:34Z")

</div>

Hello! I need to solve two systems of differential equations that I defined within a module. The value of a parameter in the second system depends on an external function that is also defined in the same module and recei…

---

## [Using NeuralPDE for prediction?](https://discourse.julialang.org/t/using-neuralpde-for-prediction/98359)

<div class="topic-metadata">

**Author:** [@vineetjnair9](https://discourse.julialang.org/u/vineetjnair9)\
**Replies:** 2\
**Last updated:** [May 6, 2023, 4:01am UTC](https://discourse.julialang.org/t/using-neuralpde-for-prediction/98359 "2023-05-06T04:01:47Z")

</div>

Hi, I’m pretty new to Julia ML and I’m trying to use NeuralPDE.jl to solve a system of ODEs. I’m following this tutorial and am able to get a pretty good fit close to the true solution. But is there a way I can use the p…

---

## [SDDP.jl: Can it model nonconvex multistage SPs?](https://discourse.julialang.org/t/sddp-jl-can-it-model-nonconvex-multistage-sps/98370)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 4\
**Last updated:** [May 6, 2023, 2:54am UTC](https://discourse.julialang.org/t/sddp-jl-can-it-model-nonconvex-multistage-sps/98370 "2023-05-06T02:54:10Z")

</div>

As the title says, I want to know if the package SDDP.jl models nonconvex multistage stochastic programs? The documentation says it works for convex multistage SPs; however, to make sure I don’t reinvent the wheel, I jus…

---

## [Define an ODE which depends on an external function with the @ode\_def macro](https://discourse.julialang.org/t/define-an-ode-which-depends-on-an-external-function-with-the-ode-def-macro/98067)

<div class="topic-metadata">

**Author:** [@atmyo4](https://discourse.julialang.org/u/atmyo4)\
**Replies:** 1\
**Last updated:** [May 6, 2023, 12:21am UTC](https://discourse.julialang.org/t/define-an-ode-which-depends-on-an-external-function-with-the-ode-def-macro/98067 "2023-05-06T00:21:28Z")

</div>

Hello! I want to solve a system of ODEs that includes a parameter that varies over time. To obtain the value of the parameter I use an external function that uses the solution of another system of ODEs that has already b…

---

## [REPL autocomplete doesn't work with specific \`using\` statement](https://discourse.julialang.org/t/repl-autocomplete-doesnt-work-with-specific-using-statement/98401)

<div class="topic-metadata">

**Author:** [@hhaensel](https://discourse.julialang.org/u/hhaensel)\
**Replies:** 1\
**Last updated:** [May 6, 2023, 12:04am UTC](https://discourse.julialang.org/t/repl-autocomplete-doesnt-work-with-specific-using-statement/98401 "2023-05-06T00:04:31Z")

</div>

When I import a name via using the autocomplete doesn’t work while it does work when I import the same name. Example: after using Pkg: activate activate is not completed upon pressing of the tab key. after import P…

---

## [Backporting new Julia features in old versions of Julia](https://discourse.julialang.org/t/backporting-new-julia-features-in-old-versions-of-julia/98144)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 3\
**Last updated:** [May 5, 2023, 7:20pm UTC](https://discourse.julialang.org/t/backporting-new-julia-features-in-old-versions-of-julia/98144 "2023-05-05T19:20:37Z")

</div>

Let’s say that there is a simple new feature in Julia 1.9 that I would like to use in my library. However, for various reasons I need to keep my library compatible with older Julia versions as well. Is there a standard w…

---

## [Draw a quantum circuits after solving by QuLDE solver](https://discourse.julialang.org/t/draw-a-quantum-circuits-after-solving-by-qulde-solver/98399)

<div class="topic-metadata">

**Author:** [@Ethan\_Tran](https://discourse.julialang.org/u/Ethan_Tran)\
**Replies:** 4\
**Last updated:** [May 5, 2023, 10:38pm UTC](https://discourse.julialang.org/t/draw-a-quantum-circuits-after-solving-by-qulde-solver/98399 "2023-05-05T22:38:44Z")

</div>

I have used QuLDE solver to solve the ODE problem, now I would like to draw a quantum circuit of the problem. Please help me on how could I draw it. What kind of package should I use? Thank you for your support.

---

## [How to know variable order in the result after solving an ODE](https://discourse.julialang.org/t/how-to-know-variable-order-in-the-result-after-solving-an-ode/97762)

<div class="topic-metadata">

**Author:** [@Ethan\_Tran](https://discourse.julialang.org/u/Ethan_Tran)\
**Replies:** 13\
**Last updated:** [May 5, 2023, 10:09pm UTC](https://discourse.julialang.org/t/how-to-know-variable-order-in-the-result-after-solving-an-ode/97762 "2023-05-05T22:09:06Z")

</div>

Hi everyone, I tried to solve the ODE system with three sets of variables (V, theta, and delta) each set has 3 variables. After solving I got the array as a result. How could I know which value belongs to which variables…

---

## [Plots.jl xticks color modification](https://discourse.julialang.org/t/plots-jl-xticks-color-modification/74800)

<div class="topic-metadata">

**Author:** [@bienpierre](https://discourse.julialang.org/u/bienpierre)\
**Replies:** 2\
**Last updated:** [May 5, 2023, 9:41pm UTC](https://discourse.julialang.org/t/plots-jl-xticks-color-modification/74800 "2023-05-05T21:41:15Z")

</div>

Hello, Is it possible to change a specific xtick color with Plots.jl. For instance, tick 5 with red, tick 10 with yellow, etc. I tried with xtickfontcolor and all ticks are red. using Plots plot(1:20, randn(20); size(4…

---

## [Have btngroup change its content dynamically](https://discourse.julialang.org/t/have-btngroup-change-its-content-dynamically/56143)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 1\
**Last updated:** [May 5, 2023, 9:40pm UTC](https://discourse.julialang.org/t/have-btngroup-change-its-content-dynamically/56143 "2023-05-05T21:40:24Z")

</div>

How do I setup a btngroup in StippleUI to dynamically change the buttons (their functions and labels) it contains? I want the buttons to depend on some input (i.e. one of the model’s parameters)? Politely pinging @hhaen…

---

## [Feedback on new package called Peccon.jl](https://discourse.julialang.org/t/feedback-on-new-package-called-peccon-jl/98398)

<div class="topic-metadata">

**Author:** [@korilium](https://discourse.julialang.org/u/korilium)\
**Replies:** 0\
**Last updated:** [May 5, 2023, 8:42pm UTC](https://discourse.julialang.org/t/feedback-on-new-package-called-peccon-jl/98398 "2023-05-05T20:42:35Z")

</div>

Hello, I have written my first Julia package called Peccon and I wanted to have some constructive feedback to improve the package. I thus created this thread. This post is also a reach out to the community to find like-…

---

## [Distributed computing for functions in scripts inside a local module?](https://discourse.julialang.org/t/distributed-computing-for-functions-in-scripts-inside-a-local-module/96729)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 7\
**Last updated:** [May 5, 2023, 7:33pm UTC](https://discourse.julialang.org/t/distributed-computing-for-functions-in-scripts-inside-a-local-module/96729 "2023-05-05T19:33:23Z")

</div>

I have a local module, say MyProject, which has a folder src with two scripts script1.jl and script2.jl. module MyProject using Package1 using Package2 using Package3 include("script1.jl") include("script2.jl") expor…

---

## [Overloading \`fieldnames()\` function](https://discourse.julialang.org/t/overloading-fieldnames-function/98387)

<div class="topic-metadata">

**Author:** [@sirion34](https://discourse.julialang.org/u/sirion34)\
**Replies:** 7\
**Last updated:** [May 5, 2023, 8:17pm UTC](https://discourse.julialang.org/t/overloading-fieldnames-function/98387 "2023-05-05T20:17:44Z")

</div>

Is it safe to overload the fieldnames() function if I want to hide some fields for a specific type?

---

## [Error code for GLPK and SigmoidalProgramming](https://discourse.julialang.org/t/error-code-for-glpk-and-sigmoidalprogramming/98043)

<div class="topic-metadata">

**Author:** [@meet.saiya](https://discourse.julialang.org/u/meet.saiya)\
**Replies:** 11\
**Last updated:** [May 5, 2023, 8:15pm UTC](https://discourse.julialang.org/t/error-code-for-glpk-and-sigmoidalprogramming/98043 "2023-05-05T20:15:01Z")

</div>

I’m trying to use Sigmoidal Programming to solve an optimization problem which is minimize (sum of concave functions) subject to linear constraints. When I input problem = LinearSP(fs, dfs, z, A, b) it seems to read and…

---

## [Julia cannot solve Ax=b with LU where A is sparse,](https://discourse.julialang.org/t/julia-cannot-solve-ax-b-with-lu-where-a-is-sparse/98383)

<div class="topic-metadata">

**Author:** [@jonassoleil](https://discourse.julialang.org/u/jonassoleil)\
**Replies:** 12\
**Last updated:** [May 5, 2023, 7:10pm UTC](https://discourse.julialang.org/t/julia-cannot-solve-ax-b-with-lu-where-a-is-sparse/98383 "2023-05-05T19:10:03Z")

</div>

Hi, I get very wrong answers on solving Ax=b with LU where A is a sparse matrix. I am a bit puzzled by this, since as far as I understand Julia calls the SuiteSparse library for sparse Linear-Algebra like Matlab does. …

---

## [+= operator](https://discourse.julialang.org/t/operator/98275)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 12\
**Last updated:** [May 5, 2023, 7:03pm UTC](https://discourse.julialang.org/t/operator/98275 "2023-05-05T19:03:36Z")

</div>

Is the += operator used as in: x = 5. x += 3. equivalent to x .= x + 3. or x = x + 3 According to the documentation, it is equivalent to the latter (Mathematical Operations and Elementary Functions · The Julia Lang…

---

## [Strange runtime complexity of eigen(...)](https://discourse.julialang.org/t/strange-runtime-complexity-of-eigen/98392)

<div class="topic-metadata">

**Author:** [@mritter](https://discourse.julialang.org/u/mritter)\
**Replies:** 2\
**Last updated:** [May 5, 2023, 5:18pm UTC](https://discourse.julialang.org/t/strange-runtime-complexity-of-eigen/98392 "2023-05-05T17:18:16Z")

</div>

Hi everyone! I’m currently trying to look into the runtime complexity of some code which uses an eigendecomposition, and I don’t understand what I’m seeing. Reduced to an MWE, I’m doing the following: Generate a rando…

---

## [Plots.jl: how to plot a function with different values for a parameter](https://discourse.julialang.org/t/plots-jl-how-to-plot-a-function-with-different-values-for-a-parameter/52638)

<div class="topic-metadata">

**Author:** [@VivMendes](https://discourse.julialang.org/u/VivMendes)\
**Replies:** 23\
**Last updated:** [May 5, 2023, 4:50pm UTC](https://discourse.julialang.org/t/plots-jl-how-to-plot-a-function-with-different-values-for-a-parameter/52638 "2023-05-05T16:50:56Z")

</div>

Suppose I want to plot a certain function f(x) = a\*x(1-x), for x in 0:0.001:1, and to consider, i.e., four different values for parameter a: a = 1, a = 2, a = 3.2, a = 3.8. I want to do this in one single plot. I know ho…

---

## [Efficient way of creating a vector of length L with unique elements](https://discourse.julialang.org/t/efficient-way-of-creating-a-vector-of-length-l-with-unique-elements/98388)

<div class="topic-metadata">

**Author:** [@dm17017](https://discourse.julialang.org/u/dm17017)\
**Replies:** 3\
**Last updated:** [May 5, 2023, 4:45pm UTC](https://discourse.julialang.org/t/efficient-way-of-creating-a-vector-of-length-l-with-unique-elements/98388 "2023-05-05T16:45:31Z")

</div>

Hi, I am looking to fill a vector of a desired length up with randomly chosen, unique elements. Currently I have the code below which has the desired effect however, I suspect I can speed it up. If anyone has any ideas …

---

## [What is the most efficient way to compute the inverse of a sparse matrix?](https://discourse.julialang.org/t/what-is-the-most-efficient-way-to-compute-the-inverse-of-a-sparse-matrix/98167)

<div class="topic-metadata">

**Author:** [@schwob](https://discourse.julialang.org/u/schwob)\
**Replies:** 15\
**Last updated:** [May 5, 2023, 4:06pm UTC](https://discourse.julialang.org/t/what-is-the-most-efficient-way-to-compute-the-inverse-of-a-sparse-matrix/98167 "2023-05-05T16:06:57Z")

</div>

I have a sparse matrix Q that is a covariance matrix for a Gaussian Process. I need to invert Q for computations in Bayesian full-conditional distributions. For example, I need to compute terms like \\boldsymbol{\\beta}^T\\…

---

## [Struggling to get Julia as fast as Matlab mex. (Filling large matrix, doing pairwise calculations over particles)](https://discourse.julialang.org/t/struggling-to-get-julia-as-fast-as-matlab-mex-filling-large-matrix-doing-pairwise-calculations-over-particles/98379)

<div class="topic-metadata">

**Author:** [@p\_f](https://discourse.julialang.org/u/p_f)\
**Replies:** 7\
**Last updated:** [May 5, 2023, 3:31pm UTC](https://discourse.julialang.org/t/struggling-to-get-julia-as-fast-as-matlab-mex-filling-large-matrix-doing-pairwise-calculations-over-particles/98379 "2023-05-05T15:31:30Z")

</div>

I have a system with Ntot particles. I am creating a matrix Mh that is 6Ntot x 6Ntot and symmetric, and elements are given by pairwise calculations between particles. I’ve tried my best to speed up my Julia code, but fe…

---

## [Easy packaging of a complete environment for running a course?](https://discourse.julialang.org/t/easy-packaging-of-a-complete-environment-for-running-a-course/19497)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 12\
**Last updated:** [May 5, 2023, 2:56pm UTC](https://discourse.julialang.org/t/easy-packaging-of-a-complete-environment-for-running-a-course/19497 "2023-05-05T14:56:35Z")

</div>

One solution for universities that cannot pony up the use fees for juliabox could be to make it really easy for the instructor to set up the environment just the way the instructor wants it (with the packages that are re…

---

## [Pluto.jl using with custom project gets workspaces mixed up](https://discourse.julialang.org/t/pluto-jl-using-with-custom-project-gets-workspaces-mixed-up/97969)

<div class="topic-metadata">

**Author:** [@bryaan](https://discourse.julialang.org/u/bryaan)\
**Replies:** 11\
**Last updated:** [May 5, 2023, 2:27pm UTC](https://discourse.julialang.org/t/pluto-jl-using-with-custom-project-gets-workspaces-mixed-up/97969 "2023-05-05T14:27:47Z")

</div>

I want Pluto to use my current project Tibra.jl so I do Pkg.activate(.) then import my project. Problem is I can’t access any of the exported types from my package in a Pluto cell so I try to use Reexport. I’m not sure…

---

## [Using a locally developed package](https://discourse.julialang.org/t/using-a-locally-developed-package/98320)

<div class="topic-metadata">

**Author:** [@mmv](https://discourse.julialang.org/u/mmv)\
**Replies:** 7\
**Last updated:** [May 5, 2023, 1:18pm UTC](https://discourse.julialang.org/t/using-a-locally-developed-package/98320 "2023-05-05T13:18:08Z")

</div>

Hi! I developed a first package JMtk15 and now would like to use those functions in a second package JMTools. That first package appears to be loading correctly because the command using JMtk15 does not generate any e…

---

## [Package to read/process lines without new allocations](https://discourse.julialang.org/t/package-to-read-process-lines-without-new-allocations/92448)

<div class="topic-metadata">

**Author:** [@CodeGodz](https://discourse.julialang.org/u/CodeGodz)\
**Replies:** 13\
**Last updated:** [May 5, 2023, 1:14pm UTC](https://discourse.julialang.org/t/package-to-read-process-lines-without-new-allocations/92448 "2023-05-05T13:14:57Z")

</div>

Hey all! I would love to ask for some feedback on the tiny package ViewReader that we wrote (basic documentation on the GitHub). It uses a buffered reader in combination with the amazing StringViews(thanks @stevengj!) …

---

## [MathOptInterface not supported by solvers](https://discourse.julialang.org/t/mathoptinterface-not-supported-by-solvers/98376)

<div class="topic-metadata">

**Author:** [@Gianmarco\_Montillo](https://discourse.julialang.org/u/Gianmarco_Montillo)\
**Replies:** 3\
**Last updated:** [May 5, 2023, 12:29pm UTC](https://discourse.julialang.org/t/mathoptinterface-not-supported-by-solvers/98376 "2023-05-05T12:29:35Z")

</div>

I am trying to solve a model using constraints of type MOI, but every solver I try out, results in a error stating Constraints of type MathOptInterface.ScalarQuadraticFunction{Float64}-in-MathOptInterface.EqualTo{Float…

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

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