# Latest

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

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

**Page:** 755

---

## [Nonlinear optimization using JuMP, The solver does not support nonlinear problems (i.e., NLobjective and NLconstraint)](https://discourse.julialang.org/t/nonlinear-optimization-using-jump-the-solver-does-not-support-nonlinear-problems-i-e-nlobjective-and-nlconstraint/95978)

<div class="topic-metadata">

**Author:** [@mosby](https://discourse.julialang.org/u/mosby)\
**Replies:** 10\
**Last updated:** [March 13, 2023, 7:30pm UTC](https://discourse.julialang.org/t/nonlinear-optimization-using-jump-the-solver-does-not-support-nonlinear-problems-i-e-nlobjective-and-nlconstraint/95978 "2023-03-13T19:30:14Z")

</div>

I am solving a nonlinear optimization problem using Mosek, I am running the following script model = Model(Mosek.Optimizer) @variable(model, y\[1:n\]) @NLconstraint(model, sum((Ay-b)\[i\]^4 for i=1:m) \<= 1.0) # The constr…

---

## [Running \`makedocs\` overwrites REPL docstrings](https://discourse.julialang.org/t/running-makedocs-overwrites-repl-docstrings/95982)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 3\
**Last updated:** [March 13, 2023, 4:12pm UTC](https://discourse.julialang.org/t/running-makedocs-overwrites-repl-docstrings/95982 "2023-03-13T16:12:19Z")

</div>

I’m having a little problem with the internals of Documenter.jl, in the context of a fork of DocumenterCitation I’m working on (QuantumCitations). It seems that running makedocs overwrites docstrings of the loaded packa…

---

## [LibPQ copy error when field of the data frame contains comma](https://discourse.julialang.org/t/libpq-copy-error-when-field-of-the-data-frame-contains-comma/94058)

<div class="topic-metadata">

**Author:** [@ultratrader](https://discourse.julialang.org/u/ultratrader)\
**Replies:** 2\
**Last updated:** [March 13, 2023, 6:11pm UTC](https://discourse.julialang.org/t/libpq-copy-error-when-field-of-the-data-frame-contains-comma/94058 "2023-03-13T18:11:56Z")

</div>

I am trying to load data from data frame to postgresql using LibPQ.jl. it work quite fast until it reachs field that contains “,” such as “Oil, Gas & Coal” and throw an error: \[error | LibPQ\]: BadCopyFileFormat: ERROR: …

---

## [CRC Failed : General.tar](https://discourse.julialang.org/t/crc-failed-general-tar/96000)

<div class="topic-metadata">

**Author:** [@ColinCaine](https://discourse.julialang.org/u/ColinCaine)\
**Replies:** 1\
**Last updated:** [March 13, 2023, 6:08pm UTC](https://discourse.julialang.org/t/crc-failed-general-tar/96000 "2023-03-13T18:08:57Z")

</div>

The default packageservers are serving me a General.tar.gz with an invalid checksum. Steps to reproduce: Delete General.toml and General.tar.gz from .julia/registries start julia, \]add BenchmarkTools Observe an error …

---

## [How to specify colors from a colormap to use in a theme in makie?](https://discourse.julialang.org/t/how-to-specify-colors-from-a-colormap-to-use-in-a-theme-in-makie/95981)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 8\
**Last updated:** [March 13, 2023, 5:49pm UTC](https://discourse.julialang.org/t/how-to-specify-colors-from-a-colormap-to-use-in-a-theme-in-makie/95981 "2023-03-13T17:49:44Z")

</div>

Hello, I’d like to be able to specify a colormap, say Dark2, to be used as the automatic colors in the lines plot type. Reading around it seems like I should be using the theming system to do it. Unfortunately I’ve not …

---

## [How do you use \`Plots.jl\`'s \`mesh3d\` in place of matplotlib's \`plot\_trisurf\`?](https://discourse.julialang.org/t/how-do-you-use-plots-jl-s-mesh3d-in-place-of-matplotlibs-plot-trisurf/96016)

<div class="topic-metadata">

**Author:** [@tgross35](https://discourse.julialang.org/u/tgross35)\
**Replies:** 0\
**Last updated:** [March 13, 2023, 5:39pm UTC](https://discourse.julialang.org/t/how-do-you-use-plots-jl-s-mesh3d-in-place-of-matplotlibs-plot-trisurf/96016 "2023-03-13T17:39:41Z")

</div>

Hello everyone, I’m trying to use a mesh3d as a drop in for plot\_trisurf, but am struggling to get the same functionality. The difference looks like this: plot\_trisurf(X, Y, Z) mesh3d(X, Y, Z, connections=(i, j, k)) A…

---

## [Two legends in PyPlot](https://discourse.julialang.org/t/two-legends-in-pyplot/95946)

<div class="topic-metadata">

**Author:** [@marllos](https://discourse.julialang.org/u/marllos)\
**Replies:** 3\
**Last updated:** [March 13, 2023, 5:35pm UTC](https://discourse.julialang.org/t/two-legends-in-pyplot/95946 "2023-03-13T17:35:09Z")

</div>

Hello everyone! How to add two legends in PyPlot (only). I tried to replicate some Python examples but they use the add\_artist function which I don’t find in Julia.

---

## [On-the-flight kernel density estimation?](https://discourse.julialang.org/t/on-the-flight-kernel-density-estimation/95817)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 15\
**Last updated:** [March 13, 2023, 5:12pm UTC](https://discourse.julialang.org/t/on-the-flight-kernel-density-estimation/95817 "2023-03-13T17:12:03Z")

</div>

I have the following type of problem: imagine a Monte-Carlo simulation generating some data, and I want to estimate the density function for that simulation. I cannot store the data for each Monte-Carlos step, which woul…

---

## [Substituting a TaylorN variable into another TaylorN variable](https://discourse.julialang.org/t/substituting-a-taylorn-variable-into-another-taylorn-variable/96014)

<div class="topic-metadata">

**Author:** [@Vaclav\_Mikeska](https://discourse.julialang.org/u/Vaclav_Mikeska)\
**Replies:** 0\
**Last updated:** [March 13, 2023, 4:43pm UTC](https://discourse.julialang.org/t/substituting-a-taylorn-variable-into-another-taylorn-variable/96014 "2023-03-13T16:43:36Z")

</div>

Let’s have some multivariable polynomials P1 and P2 represented by TaylorN variable from TaylorSeries package, e.g. using TaylorSeries x, y = set\_variables("x y") P1 = TaylorN(\[HomogeneousPolynomial(\[1\]), HomogeneousPo…

---

## [Flux Transformer Out of Memory](https://discourse.julialang.org/t/flux-transformer-out-of-memory/95922)

<div class="topic-metadata">

**Author:** [@Gadersd](https://discourse.julialang.org/u/Gadersd)\
**Replies:** 25\
**Last updated:** [March 13, 2023, 2:36pm UTC](https://discourse.julialang.org/t/flux-transformer-out-of-memory/95922 "2023-03-13T14:36:13Z")

</div>

I started off with PyTorch, but after hearing about Julia Flux I decided to try it out to reap the promised elegance and ease of use. I ported my transformer implementation to Julia and verified that the outputs match th…

---

## [Training a neural ode with unknow time span](https://discourse.julialang.org/t/training-a-neural-ode-with-unknow-time-span/95992)

<div class="topic-metadata">

**Author:** [@kaido975](https://discourse.julialang.org/u/kaido975)\
**Replies:** 4\
**Last updated:** [March 13, 2023, 2:48pm UTC](https://discourse.julialang.org/t/training-a-neural-ode-with-unknow-time-span/95992 "2023-03-13T14:48:03Z")

</div>

I am trying to train a neural ode with a start time = 0 and an unknown end time. Here is the working code. using Lux, DiffEqFlux, DifferentialEquations, Optimization, OptimizationOptimJL, Random, Plots, ComponentArrays…

---

## [TSFrames.jl v0.2.1: A timeseries data manipulation package based on DataFrames](https://discourse.julialang.org/t/tsframes-jl-v0-2-1-a-timeseries-data-manipulation-package-based-on-dataframes/96006)

<div class="topic-metadata">

**Author:** [@chiraganand](https://discourse.julialang.org/u/chiraganand)\
**Replies:** 0\
**Last updated:** [March 13, 2023, 2:24pm UTC](https://discourse.julialang.org/t/tsframes-jl-v0-2-1-a-timeseries-data-manipulation-package-based-on-dataframes/96006 "2023-03-13T14:24:56Z")

</div>

TSFrames.jl provides convenient interfaces for performing standard manipulations of timeseries data. Why another package? The package can handle heterogeneous tabular data. Promotes code reuse by using widely used and…

---

## [Fixedpoints DynamicalSystems.jl](https://discourse.julialang.org/t/fixedpoints-dynamicalsystems-jl/96004)

<div class="topic-metadata">

**Author:** [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Replies:** 2\
**Last updated:** [March 13, 2023, 2:05pm UTC](https://discourse.julialang.org/t/fixedpoints-dynamicalsystems-jl/96004 "2023-03-13T14:05:47Z")

</div>

Hello, how can i automaticaly calculate Jacobian? I have next system and manual calculate Jacobian is hard Code: function TM(u, p, t) U(y) = p\[8\] + p\[9\] / ( 1.0 + exp( -50.0 \* (y - p\[7\]) ) ) σ(x) = 1.0 / ( 1…

---

## [Pkg.status() results in error](https://discourse.julialang.org/t/pkg-status-results-in-error/96005)

<div class="topic-metadata">

**Author:** [@engram](https://discourse.julialang.org/u/engram)\
**Replies:** 1\
**Last updated:** [March 13, 2023, 1:44pm UTC](https://discourse.julialang.org/t/pkg-status-results-in-error/96005 "2023-03-13T13:44:24Z")

</div>

Hey there, I am running Julia in Docker Container using VSC. The image is based on Debian Bullseye and the Julia version is 1.8.4. Everything worked fine, then I tried to add the BenchmarkTools package. Now I get error…

---

## [Package for remote computation](https://discourse.julialang.org/t/package-for-remote-computation/95960)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 15\
**Last updated:** [March 13, 2023, 1:24pm UTC](https://discourse.julialang.org/t/package-for-remote-computation/95960 "2023-03-13T13:24:45Z")

</div>

Consider the following scenario: the user has access to a “workstation”, ideal for interactive debugging and development, and exploration of results (such as generating graphs for a paper) “server”, much more powerful …

---

## [Julia's A\\b solution of a linear system is logically inconsistent when A is square](https://discourse.julialang.org/t/julias-a-b-solution-of-a-linear-system-is-logically-inconsistent-when-a-is-square/95911)

<div class="topic-metadata">

**Author:** [@MaxM](https://discourse.julialang.org/u/MaxM)\
**Replies:** 5\
**Last updated:** [March 13, 2023, 12:13pm UTC](https://discourse.julialang.org/t/julias-a-b-solution-of-a-linear-system-is-logically-inconsistent-when-a-is-square/95911 "2023-03-13T12:13:39Z")

</div>

Please correct me if I’m wrong as I fiddle around. As far as I can see, if A is an m \\times n non-square matrix and b is an m \\times 1 vector, then A\\b returns the minimal norm minimal least square solution. That is, con…

---

## [Picking a random position in an Array](https://discourse.julialang.org/t/picking-a-random-position-in-an-array/95551)

<div class="topic-metadata">

**Author:** [@Tomas\_Grigera](https://discourse.julialang.org/u/Tomas_Grigera)\
**Replies:** 16\
**Last updated:** [March 13, 2023, 12:00pm UTC](https://discourse.julialang.org/t/picking-a-random-position-in-an-array/95551 "2023-03-13T12:00:10Z")

</div>

I need to pick a random position (not a random element) in an Array. I’ll assume a two dimensional array for this question. The first that came to mind was function ridx(A) return (rand(1:size(A,1)),rand(1:size(A,…

---

## [Is using @btime before the include("code\_paralell.jl") correct for measuring the time of multi-threaded code?](https://discourse.julialang.org/t/is-using-btime-before-the-include-code-paralell-jl-correct-for-measuring-the-time-of-multi-threaded-code/95635)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 3\
**Last updated:** [March 13, 2023, 11:43am UTC](https://discourse.julialang.org/t/is-using-btime-before-the-include-code-paralell-jl-correct-for-measuring-the-time-of-multi-threaded-code/95635 "2023-03-13T11:43:58Z")

</div>

I have a file code\_paralell.jl in which I am parallelizing its for-loop of simulation time. At the beginning, I am preparing some variables, in which some needs @eval in front of them (due to world age). To measure the …

---

## [Is accumulate() with '+' producing the wrong results?](https://discourse.julialang.org/t/is-accumulate-with-producing-the-wrong-results/95952)

<div class="topic-metadata">

**Author:** [@P570](https://discourse.julialang.org/u/P570)\
**Replies:** 1\
**Last updated:** [March 13, 2023, 11:06am UTC](https://discourse.julialang.org/t/is-accumulate-with-producing-the-wrong-results/95952 "2023-03-13T11:06:25Z")

</div>

Hi, I lately started experimenting a bit with CUDA and was doing some exploratory work through the REPL. I was doing some addition tests with accumulate() and reduce() when I stumbled on what seems to be an issue with …

---

## [How to represent an Ornstein-like stochastic ODE in Julia?](https://discourse.julialang.org/t/how-to-represent-an-ornstein-like-stochastic-ode-in-julia/95987)

<div class="topic-metadata">

**Author:** [@tomkimpson](https://discourse.julialang.org/u/tomkimpson)\
**Replies:** 1\
**Last updated:** [March 13, 2023, 10:52am UTC](https://discourse.julialang.org/t/how-to-represent-an-ornstein-like-stochastic-ode-in-julia/95987 "2023-03-13T10:52:37Z")

</div>

1. The equation I want to solve I have some vector stochastic ODE that has an almost Langevin form, but with an additional time dependence: \\frac{dy}{dt} = -\\gamma (y - a - bt) + b + \\xi(t) where a,b,\\gamma are consta…

---

## [Advice for optimising code for GPU](https://discourse.julialang.org/t/advice-for-optimising-code-for-gpu/95939)

<div class="topic-metadata">

**Author:** [@maaaks](https://discourse.julialang.org/u/maaaks)\
**Replies:** 3\
**Last updated:** [March 13, 2023, 10:39am UTC](https://discourse.julialang.org/t/advice-for-optimising-code-for-gpu/95939 "2023-03-13T10:39:34Z")

</div>

Hello! I have recently ported a matlab package to Julia (and found the process suprisingly straight forward), however I with to be able to execute it on the GPU as I with to use it as part of a loss function in an ML pr…

---

## [Verify if a daily file has been created](https://discourse.julialang.org/t/verify-if-a-daily-file-has-been-created/95912)

<div class="topic-metadata">

**Author:** [@phantom](https://discourse.julialang.org/u/phantom)\
**Replies:** 6\
**Last updated:** [March 12, 2023, 11:27pm UTC](https://discourse.julialang.org/t/verify-if-a-daily-file-has-been-created/95912 "2023-03-12T23:27:47Z")

</div>

Suppose you have a series of data files that are added daily and named in the following format. folder/name-01-01-23.csv folder/name -01-02-23.csv . . . folder/name-03-10-23.csv What is the best way to verify if the …

---

## [Iterator says \`Channel is closed\`](https://discourse.julialang.org/t/iterator-says-channel-is-closed/95702)

<div class="topic-metadata">

**Author:** [@Ross\_Boylan](https://discourse.julialang.org/u/Ross_Boylan)\
**Replies:** 3\
**Last updated:** [March 13, 2023, 7:06am UTC](https://discourse.julialang.org/t/iterator-says-channel-is-closed/95702 "2023-03-13T07:06:36Z")

</div>

A custom iterator throws the subject error every time I run the code below. It does so when run plain or under VSCode, and it does so with one thread or many. It is odd for several reasons: The line throwing the erro…

---

## [What's the best way to install both Julia and Python-Miniconda?](https://discourse.julialang.org/t/whats-the-best-way-to-install-both-julia-and-python-miniconda/95908)

<div class="topic-metadata">

**Author:** [@MaxM](https://discourse.julialang.org/u/MaxM)\
**Replies:** 4\
**Last updated:** [March 13, 2023, 6:40am UTC](https://discourse.julialang.org/t/whats-the-best-way-to-install-both-julia-and-python-miniconda/95908 "2023-03-13T06:40:11Z")

</div>

I’m on Windows 11. My goal is to have a convenient installation of Python (via Miniconda) and Julia where both use Jupyter Notebook, and Julia can run Python via PyCall and Conda.jl. Recently, I purged my entire Anacond…

---

## [Elongated scene](https://discourse.julialang.org/t/elongated-scene/95875)

<div class="topic-metadata">

**Author:** [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Replies:** 2\
**Last updated:** [March 13, 2023, 6:01am UTC](https://discourse.julialang.org/t/elongated-scene/95875 "2023-03-13T06:01:00Z")

</div>

Why i have elongated scene with code ts, tf = 1, 9000000 idx, idy, idz = 2, 1, 3 xl, yl, zl = labels3d(idx,idy, idz) GLMakie.activate!() f = Figure(resolution = (1200, 900)) ax = LScene(f\[1, 1\]) lines!(tr\[ts:tf, idx\], …

---

## [How to load Requires.jl code of dependency while precompiling](https://discourse.julialang.org/t/how-to-load-requires-jl-code-of-dependency-while-precompiling/95962)

<div class="topic-metadata">

**Author:** [@ranocha](https://discourse.julialang.org/u/ranocha)\
**Replies:** 4\
**Last updated:** [March 13, 2023, 5:50am UTC](https://discourse.julialang.org/t/how-to-load-requires-jl-code-of-dependency-while-precompiling/95962 "2023-03-13T05:50:13Z")

</div>

This question came up in update to StaticArrayInterface by ChrisRackauckas · Pull Request #165 · ranocha/SummationByPartsOperators.jl · GitHub. @ChrisRackauckas submitted a patch to update my package from ArrayInterface.…

---

## [Find homoclinic DifferentialEquations.jl, DynamicalSystems.jl](https://discourse.julialang.org/t/find-homoclinic-differentialequations-jl-dynamicalsystems-jl/95800)

<div class="topic-metadata">

**Author:** [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Replies:** 17\
**Last updated:** [March 13, 2023, 5:46am UTC](https://discourse.julialang.org/t/find-homoclinic-differentialequations-jl-dynamicalsystems-jl/95800 "2023-03-13T05:46:24Z")

</div>

Hello, I’m trying to find a homoclinic orbit. To do this, I calculate a very long trajectory, and then calculate the minimum distance between all points of the trajectory and a fixed point. How can I optimize this? Frag…

---

## [Save data into mysql database in batch mode on transaction basis](https://discourse.julialang.org/t/save-data-into-mysql-database-in-batch-mode-on-transaction-basis/95838)

<div class="topic-metadata">

**Author:** [@Sandy45](https://discourse.julialang.org/u/Sandy45)\
**Replies:** 2\
**Last updated:** [March 13, 2023, 4:43am UTC](https://discourse.julialang.org/t/save-data-into-mysql-database-in-batch-mode-on-transaction-basis/95838 "2023-03-13T04:43:13Z")

</div>

I am trying to load data(from df) into mysql database in batch mode, Loading should be on single transaction and data should be rolled back if load fails at any stage during batch processing. I’ve coded currently by usin…

---

## [Makie and X11 forwarding](https://discourse.julialang.org/t/makie-and-x11-forwarding/91975)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 7\
**Last updated:** [February 27, 2023, 9:46pm UTC](https://discourse.julialang.org/t/makie-and-x11-forwarding/91975 "2023-02-27T21:46:33Z")

</div>

I am developing in a remote server. I am connected to the server from my local machine via SSH. To enable X11 forwarding, I connect using the -Y option (i.e., ssh -Y). This allows me to use the GUI interface of the app…

---

## [Numerical integration only with evaluated point](https://discourse.julialang.org/t/numerical-integration-only-with-evaluated-point/63552)

<div class="topic-metadata">

**Author:** [@iHany](https://discourse.julialang.org/u/iHany)\
**Replies:** 6\
**Last updated:** [March 13, 2023, 2:17am UTC](https://discourse.julialang.org/t/numerical-integration-only-with-evaluated-point/63552 "2023-03-13T02:17:33Z")

</div>

Hi, I’d like to integrate a function numerically. I found some packages, e.g., QuadGK.jl, it seems only supports numerical integration with a given function. In my case, suppose we cannot access the function at arbitr…

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

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