# Latest

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

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

**Page:** 591

---

## [Local Registry RSA key Problem](https://discourse.julialang.org/t/local-registry-rsa-key-problem/78188)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 4\
**Last updated:** [September 25, 2023, 4:14am UTC](https://discourse.julialang.org/t/local-registry-rsa-key-problem/78188 "2023-09-25T04:14:57Z")

</div>

Hello, I have set up a private local registry with which to share packages with some collaborators. When I set the registry up I had to create and add a new SSH key to my github account because according to the local re…

---

## [Multiple shooting and neural ode in Rc models](https://discourse.julialang.org/t/multiple-shooting-and-neural-ode-in-rc-models/104013)

<div class="topic-metadata">

**Author:** [@Marco\_Nesta](https://discourse.julialang.org/u/Marco_Nesta)\
**Replies:** 3\
**Last updated:** [September 25, 2023, 12:54pm UTC](https://discourse.julialang.org/t/multiple-shooting-and-neural-ode-in-rc-models/104013 "2023-09-25T12:54:27Z")

</div>

Good morning everyone, I am working on using neural ode the optimization of RC models for house consumption. In the following code I have defined a first state where P and T are exogenous variables. could you give me ad…

---

## [Error with NeuralPDE and OptimizationFunction](https://discourse.julialang.org/t/error-with-neuralpde-and-optimizationfunction/102164)

<div class="topic-metadata">

**Author:** [@Ethan\_Tran](https://discourse.julialang.org/u/Ethan_Tran)\
**Replies:** 1\
**Last updated:** [September 25, 2023, 12:23pm UTC](https://discourse.julialang.org/t/error-with-neuralpde-and-optimizationfunction/102164 "2023-09-25T12:23:59Z")

</div>

I tried to solve the ODE problem with NeuralPDE on Jupyter notebook, and the code ran when I used the older version of Julia and packages (version 1.9.0 and I forgot the version of packages). I updated all packages yest…

---

## [How to force not to add colors with transparent 3D objects](https://discourse.julialang.org/t/how-to-force-not-to-add-colors-with-transparent-3d-objects/104216)

<div class="topic-metadata">

**Author:** [@peremato](https://discourse.julialang.org/u/peremato)\
**Replies:** 2\
**Last updated:** [September 25, 2023, 12:19pm UTC](https://discourse.julialang.org/t/how-to-force-not-to-add-colors-with-transparent-3d-objects/104216 "2023-09-25T12:19:44Z")

</div>

In GLMakie I would like that the color I use for lines is not added to the transparent 3D mesh object. For example using GLMakie using GeometryBasics fig = Figure(resolution=(1280, 720)) scene = LScene(fig\[1,1\]) box = …

---

## [Solving ODE by PDESystem](https://discourse.julialang.org/t/solving-ode-by-pdesystem/100293)

<div class="topic-metadata">

**Author:** [@Ethan\_Tran](https://discourse.julialang.org/u/Ethan_Tran)\
**Replies:** 1\
**Last updated:** [September 25, 2023, 12:12pm UTC](https://discourse.julialang.org/t/solving-ode-by-pdesystem/100293 "2023-09-25T12:12:54Z")

</div>

I try to use NeuralPDE to solve the ODE system. the code I use below: using NeuralPDE, Lux, ModelingToolkit, Optimization, OptimizationOptimJL import ModelingToolkit: Interval, infimum, supremum @parameters t @variabl…

---

## [Looking to prevent overfitting while using DataDrivenDiffEq.jl to estimate the equation for a time dependent diff eq](https://discourse.julialang.org/t/looking-to-prevent-overfitting-while-using-datadrivendiffeq-jl-to-estimate-the-equation-for-a-time-dependent-diff-eq/103931)

<div class="topic-metadata">

**Author:** [@mjc715](https://discourse.julialang.org/u/mjc715)\
**Replies:** 7\
**Last updated:** [September 25, 2023, 12:07pm UTC](https://discourse.julialang.org/t/looking-to-prevent-overfitting-while-using-datadrivendiffeq-jl-to-estimate-the-equation-for-a-time-dependent-diff-eq/103931 "2023-09-25T12:07:18Z")

</div>

In this code, we are looking to see if we can use DataDrivenDiffEq.jl to accurate predict an equation for a time dependent differential equation. To test this, we have been creating an equation, adding noise to the solut…

---

## [I wanted to generate a contour plot for 2D heat conduction by neural PDE but this code generates blank plot without any contour](https://discourse.julialang.org/t/i-wanted-to-generate-a-contour-plot-for-2d-heat-conduction-by-neural-pde-but-this-code-generates-blank-plot-without-any-contour/103960)

<div class="topic-metadata">

**Author:** [@ShadmanSakief](https://discourse.julialang.org/u/ShadmanSakief)\
**Replies:** 3\
**Last updated:** [September 25, 2023, 12:03pm UTC](https://discourse.julialang.org/t/i-wanted-to-generate-a-contour-plot-for-2d-heat-conduction-by-neural-pde-but-this-code-generates-blank-plot-without-any-contour/103960 "2023-09-25T12:03:54Z")

</div>

using NeuralPDE, Lux, Optimization, OptimizationOptimJL import ModelingToolkit: Interval @parameters x y @variables u(..) Dxx = Differential(x)^2 Dyy = Differential(y)^2 Dx = Differential(x) Dy = Differential(y) 2…

---

## [Create string out of substring in dataframe](https://discourse.julialang.org/t/create-string-out-of-substring-in-dataframe/104206)

<div class="topic-metadata">

**Author:** [@jonjilla](https://discourse.julialang.org/u/jonjilla)\
**Replies:** 12\
**Last updated:** [September 25, 2023, 9:58am UTC](https://discourse.julialang.org/t/create-string-out-of-substring-in-dataframe/104206 "2023-09-25T09:58:38Z")

</div>

I’m trying to create a new string parsed out of a substring of a column that is delimited by a character. For example, in this dataframe df = DataFrame( id=\["1", "1", "2"\], string=\["A.B.C.D.JUNK", "A.B.C.JUNK…

---

## [Dispatch on physical quantity or creating distinct types that behave like a float](https://discourse.julialang.org/t/dispatch-on-physical-quantity-or-creating-distinct-types-that-behave-like-a-float/104098)

<div class="topic-metadata">

**Author:** [@cpf-work](https://discourse.julialang.org/u/cpf-work)\
**Replies:** 7\
**Last updated:** [September 25, 2023, 9:19am UTC](https://discourse.julialang.org/t/dispatch-on-physical-quantity-or-creating-distinct-types-that-behave-like-a-float/104098 "2023-09-25T09:19:16Z")

</div>

Let’s say I want to calculate the velocity of a free falling body in vacuum. I want to do this in dependence of gravitational constant and time or distance and time with a fixed gravitational constant. That would be eit…

---

## [Avast ne gives me an IDP.Generic Warning for gkskt.exe](https://discourse.julialang.org/t/avast-ne-gives-me-an-idp-generic-warning-for-gkskt-exe/104200)

<div class="topic-metadata">

**Author:** [@MiSch](https://discourse.julialang.org/u/MiSch)\
**Replies:** 1\
**Last updated:** [September 25, 2023, 9:04am UTC](https://discourse.julialang.org/t/avast-ne-gives-me-an-idp-generic-warning-for-gkskt-exe/104200 "2023-09-25T09:04:34Z")

</div>

Hi, I am going to learn Julia. I have a problem after importing the “Plot-library” (Julia 1.9.3. Windows 10). One of my Antivirus programs is warning me with “IDP.Generic Warning for gkskt.exe”. Are there some experienc…

---

## [Loading a trained model in Transformers.jl](https://discourse.julialang.org/t/loading-a-trained-model-in-transformers-jl/104210)

<div class="topic-metadata">

**Author:** [@kadir-gunel](https://discourse.julialang.org/u/kadir-gunel)\
**Replies:** 0\
**Last updated:** [September 25, 2023, 8:17am UTC](https://discourse.julialang.org/t/loading-a-trained-model-in-transformers-jl/104210 "2023-09-25T08:17:53Z")

</div>

Hello All, I am having a problem while trying to load a model that is trained from scratch with Transformers.jl. The model it self is a seq2seq model that is very similar to the one in the documentation. Only difference…

---

## [DateTime Curiosity: Dates.epochms2datetime](https://discourse.julialang.org/t/datetime-curiosity-dates-epochms2datetime/104205)

<div class="topic-metadata">

**Author:** [@g-gundam](https://discourse.julialang.org/u/g-gundam)\
**Replies:** 5\
**Last updated:** [September 25, 2023, 8:45am UTC](https://discourse.julialang.org/t/datetime-curiosity-dates-epochms2datetime/104205 "2023-09-25T08:45:08Z")

</div>

I’m new to Julia but not new to programming, and I’m wondering why Dates.epochms2datetime returned a negative value. using Dates unix\_0 = unix2datetime(0) # 1970-01-01T00:00:00 # So far, so good. Dates.value(unix\_0) #…

---

## [How to compute integral of multivariate normal with bounds defined by lines](https://discourse.julialang.org/t/how-to-compute-integral-of-multivariate-normal-with-bounds-defined-by-lines/104160)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 13\
**Last updated:** [September 25, 2023, 8:10am UTC](https://discourse.julialang.org/t/how-to-compute-integral-of-multivariate-normal-with-bounds-defined-by-lines/104160 "2023-09-25T08:10:16Z")

</div>

Hi all, I would like to use Distributions.jl and HCubature.jl (or suitable alternative) to compute an integral over part of the domain of a multivariate normal distribution. The image below provides an example. In the i…

---

## [Replace a markdown node with MarkdownAST/AbstractTrees](https://discourse.julialang.org/t/replace-a-markdown-node-with-markdownast-abstracttrees/103799)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 3\
**Last updated:** [September 24, 2023, 8:01pm UTC](https://discourse.julialang.org/t/replace-a-markdown-node-with-markdownast-abstracttrees/103799 "2023-09-24T20:01:18Z")

</div>

I’m trying to figure out a way to replace particular nodes in a markdown syntax tree with a new list of sibling sub-trees. For example, I might want to replace the node (subtree) corresponding to the markdown \[text with …

---

## [Creating Matrix Parameters in JuMP](https://discourse.julialang.org/t/creating-matrix-parameters-in-jump/104159)

<div class="topic-metadata">

**Author:** [@Three](https://discourse.julialang.org/u/Three)\
**Replies:** 3\
**Last updated:** [September 24, 2023, 6:05pm UTC](https://discourse.julialang.org/t/creating-matrix-parameters-in-jump/104159 "2023-09-24T18:05:46Z")

</div>

Hello, Sorry if this is a dumb question, but I can’t figure out how to declare a matrix (or higher dimensional array) variable that is constrained to a parameter set in JuMP, as shown for the vector case here: Variables…

---

## [Suppressing automatic display(::Makie.Scene) in the REPL](https://discourse.julialang.org/t/suppressing-automatic-display-makie-scene-in-the-repl/103543)

<div class="topic-metadata">

**Author:** [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Replies:** 3\
**Last updated:** [September 24, 2023, 3:29pm UTC](https://discourse.julialang.org/t/suppressing-automatic-display-makie-scene-in-the-repl/103543 "2023-09-24T15:29:26Z")

</div>

A common occurrence when I’m working on Makie stuff at the REPL: julia\> foo = some\_function\_that\_returns\_a\_scene() Error showing value of type Makie.Scene: ERROR: AssertionError: internal error. Scene already displayed …

---

## [Surface plot using plots.jl](https://discourse.julialang.org/t/surface-plot-using-plots-jl/103956)

<div class="topic-metadata">

**Author:** [@yosuga](https://discourse.julialang.org/u/yosuga)\
**Replies:** 7\
**Last updated:** [September 24, 2023, 2:22pm UTC](https://discourse.julialang.org/t/surface-plot-using-plots-jl/103956 "2023-09-24T14:22:00Z")

</div>

I have two very basic questions about surface plots. One is that when I have a dataset S = \[(x1, y1, z1), (x2, y2, z2), ..., (xn, yn, zn)\], how can I create a surface plot for z? Here, (xi, yi)≠(xj, yj) for i≠j are guar…

---

## [How do I make sure my optimization problem doesn’t get NP-hard?](https://discourse.julialang.org/t/how-do-i-make-sure-my-optimization-problem-doesn-t-get-np-hard/104190)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 1\
**Last updated:** [September 24, 2023, 6:32am UTC](https://discourse.julialang.org/t/how-do-i-make-sure-my-optimization-problem-doesn-t-get-np-hard/104190 "2023-09-24T06:32:57Z")

</div>

It’s quite easy to get some NP-hard instance of a problem, for example… maximize ax1^2 + bx1x2 + cx1x3 + … somethingx2x3 + somethingx2x4 + … Subject to all variables between some values and some values… Alone is NP ha…

---

## [Using zygote for a summation derivation](https://discourse.julialang.org/t/using-zygote-for-a-summation-derivation/104192)

<div class="topic-metadata">

**Author:** [@mary](https://discourse.julialang.org/u/mary)\
**Replies:** 0\
**Last updated:** [September 24, 2023, 6:42am UTC](https://discourse.julialang.org/t/using-zygote-for-a-summation-derivation/104192 "2023-09-24T06:42:22Z")

</div>

Hi, I am using zygote and rrule to define my derivation formulation. the derivative of my function is df/dr = sum1st to Nth step(w^T \* da/dr) in order to solve this i have defined below code. Note that i saved all val…

---

## [How to improve REPL startup time OR clear the workspace](https://discourse.julialang.org/t/how-to-improve-repl-startup-time-or-clear-the-workspace/104171)

<div class="topic-metadata">

**Author:** [@mcmuffin6o](https://discourse.julialang.org/u/mcmuffin6o)\
**Replies:** 9\
**Last updated:** [September 24, 2023, 4:53am UTC](https://discourse.julialang.org/t/how-to-improve-repl-startup-time-or-clear-the-workspace/104171 "2023-09-24T04:53:41Z")

</div>

I love Julia – it’s amazing with the VS Code extension, which solves the problem of not being able to perform the simple task of plotting more than one thing at once. There’s just one thing keeping me from recommending i…

---

## [Extensions/weakdeps loading and package design](https://discourse.julialang.org/t/extensions-weakdeps-loading-and-package-design/104156)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 10\
**Last updated:** [September 24, 2023, 3:17am UTC](https://discourse.julialang.org/t/extensions-weakdeps-loading-and-package-design/104156 "2023-09-24T03:17:18Z")

</div>

I just experimented for the first time the implementation of a package extension. Everything worked, but as I did it I need to load explicitly the weak dependency for the extension module to be loaded. So my package loo…

---

## [Connecting components by adding term to DE in ModelingToolkit](https://discourse.julialang.org/t/connecting-components-by-adding-term-to-de-in-modelingtoolkit/104149)

<div class="topic-metadata">

**Author:** [@nkoch](https://discourse.julialang.org/u/nkoch)\
**Replies:** 2\
**Last updated:** [September 24, 2023, 2:45am UTC](https://discourse.julialang.org/t/connecting-components-by-adding-term-to-de-in-modelingtoolkit/104149 "2023-09-24T02:45:00Z")

</div>

I am trying to connect components by adding function of variables from each component to one of the DEs in each component. In other words, for components 1 and 2 (and their respective variables z\_1 and z\_2) \\frac{d z\_1}…

---

## [Speeding up a nested for loop](https://discourse.julialang.org/t/speeding-up-a-nested-for-loop/104130)

<div class="topic-metadata">

**Author:** [@MarcBerliner](https://discourse.julialang.org/u/MarcBerliner)\
**Replies:** 5\
**Last updated:** [September 23, 2023, 10:06pm UTC](https://discourse.julialang.org/t/speeding-up-a-nested-for-loop/104130 "2023-09-23T22:06:18Z")

</div>

I have a nested for-loop where the length of the internal loop is dependent on the outer loop. Any ideas on how to squeeze more performance out of this? N = 500 a = rand(N) b = rand(N) c = rand(N) out = zeros(N) j\_mi…

---

## [Detect string arrays in Matrix{Any} and convert them to number](https://discourse.julialang.org/t/detect-string-arrays-in-matrix-any-and-convert-them-to-number/104155)

<div class="topic-metadata">

**Author:** [@ashefa](https://discourse.julialang.org/u/ashefa)\
**Replies:** 2\
**Last updated:** [September 23, 2023, 4:54pm UTC](https://discourse.julialang.org/t/detect-string-arrays-in-matrix-any-and-convert-them-to-number/104155 "2023-09-23T16:54:56Z")

</div>

Consider there is an m×n Matrix{Any}: where some of its arrays are decimal numbers (Float64) and some of them are strings of this type a.b.c, in which a, b, and c are integer numbers (a,b,c\>10). Now, how can we write a c…

---

## [How to load Python packages in PythonCall? They've already been installed by Conda in REPL](https://discourse.julialang.org/t/how-to-load-python-packages-in-pythoncall-theyve-already-been-installed-by-conda-in-repl/104176)

<div class="topic-metadata">

**Author:** [@MaxM](https://discourse.julialang.org/u/MaxM)\
**Replies:** 1\
**Last updated:** [September 23, 2023, 3:54pm UTC](https://discourse.julialang.org/t/how-to-load-python-packages-in-pythoncall-theyve-already-been-installed-by-conda-in-repl/104176 "2023-09-23T15:54:48Z")

</div>

In the Julia REPL, I just ran Conda.add("pandas") and it ran as Anaconda prompt usually ran, concluding with “All requested packages already installed.” However, the following code then gives me an error (in a Jupyter No…

---

## [How to speed up the calculation of Logit likelihood?](https://discourse.julialang.org/t/how-to-speed-up-the-calculation-of-logit-likelihood/104153)

<div class="topic-metadata">

**Author:** [@Strange\_Xue](https://discourse.julialang.org/u/Strange_Xue)\
**Replies:** 8\
**Last updated:** [September 23, 2023, 11:41am UTC](https://discourse.julialang.org/t/how-to-speed-up-the-calculation-of-logit-likelihood/104153 "2023-09-23T11:41:57Z")

</div>

Hi, I am currently using Julia to solve some econometric structural models which usually involve the calculation and optimization of Log-likelihood function. While the optimization can be done by Optim.jl, the calculatio…

---

## [Best practices to reduce allocations in Julia](https://discourse.julialang.org/t/best-practices-to-reduce-allocations-in-julia/104158)

<div class="topic-metadata">

**Author:** [@Jian\_ZUO](https://discourse.julialang.org/u/Jian_ZUO)\
**Replies:** 6\
**Last updated:** [September 23, 2023, 7:59am UTC](https://discourse.julialang.org/t/best-practices-to-reduce-allocations-in-julia/104158 "2023-09-23T07:59:42Z")

</div>

Hi all, I have a relatively big simulation function (which has 20,000 repeated loops). The @time results show more than 64.5G allocations. Are there some tips to reduce the allocations? Thank you in advance.

---

## [Makie: one (nice?) way to control the units of axes](https://discourse.julialang.org/t/makie-one-nice-way-to-control-the-units-of-axes/103999)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 9\
**Last updated:** [September 23, 2023, 5:51am UTC](https://discourse.julialang.org/t/makie-one-nice-way-to-control-the-units-of-axes/103999 "2023-09-23T05:51:09Z")

</div>

Suppose we have (x,y) data following y = f(x), x is measured in centimeters, and y is measured in micrometers. When plotting the (x,y) data, we would want to show the x-axis in centimeters and the y-axis in micrometers,…

---

## [How to make plots appear inside a pane in vscode (instead of "GKS QtTerm")?](https://discourse.julialang.org/t/how-to-make-plots-appear-inside-a-pane-in-vscode-instead-of-gks-qtterm/66930)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 13\
**Last updated:** [September 23, 2023, 2:00am UTC](https://discourse.julialang.org/t/how-to-make-plots-appear-inside-a-pane-in-vscode-instead-of-gks-qtterm/66930 "2023-09-23T02:00:49Z")

</div>

Question: How can I get a plots pane and not in “GKS QtTerm” (not sure what GKS or QtTerm are)? Background: 1. On the julia vscode site, it shows the plot inside a pane: However, when I try to plot, it always opens …

---

## [Lyapunov + Symmetries = Infeasible, Lyapunov - Symmetries = Feasible](https://discourse.julialang.org/t/lyapunov-symmetries-infeasible-lyapunov-symmetries-feasible/101585)

<div class="topic-metadata">

**Author:** [@ilovemath](https://discourse.julialang.org/u/ilovemath)\
**Replies:** 9\
**Last updated:** [September 22, 2023, 11:21pm UTC](https://discourse.julialang.org/t/lyapunov-symmetries-infeasible-lyapunov-symmetries-feasible/101585 "2023-09-22T23:21:44Z")

</div>

Hi again @blegat @abulak I am using SOS programming to find a Lyapunov function, obeying some natural symmetry. The time derivative of V also obeys said symmetry. The feasibility of the Lyapunov function is dependent …

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

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