# Latest

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

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

**Page:** 845

---

## [Generalization of the Turing Bayesian logistic regression example](https://discourse.julialang.org/t/generalization-of-the-turing-bayesian-logistic-regression-example/91257)

<div class="topic-metadata">

**Author:** [@lgmendes](https://discourse.julialang.org/u/lgmendes)\
**Replies:** 1\
**Last updated:** [December 6, 2022, 8:34am UTC](https://discourse.julialang.org/t/generalization-of-the-turing-bayesian-logistic-regression-example/91257 "2022-12-06T08:34:43Z")

</div>

How to generalize the example of the Bayesian logistic regression \[turning\] for programmatically accepting input data with a different number of features, similar to what is possible in the Multinomial logistic regressio…

---

## [Metaprogramming with @generated](https://discourse.julialang.org/t/metaprogramming-with-generated/91248)

<div class="topic-metadata">

**Author:** [@chelseas](https://discourse.julialang.org/u/chelseas)\
**Replies:** 6\
**Last updated:** [December 6, 2022, 8:08am UTC](https://discourse.julialang.org/t/metaprogramming-with-generated/91248 "2022-12-06T08:08:34Z")

</div>

I would like to write a simple function where I give it the operator I would like to apply as a symbol and it returns a runnable function that I can actually use. e.g. @generated genmyfun( op , args) = :($op ( args )…

---

## [Running a process on several nodes on cluster](https://discourse.julialang.org/t/running-a-process-on-several-nodes-on-cluster/91203)

<div class="topic-metadata">

**Author:** [@Rick](https://discourse.julialang.org/u/Rick)\
**Replies:** 12\
**Last updated:** [December 6, 2022, 3:56am UTC](https://discourse.julialang.org/t/running-a-process-on-several-nodes-on-cluster/91203 "2022-12-06T03:56:42Z")

</div>

Hi everyone, I am trying to run a process that requires a huge amount of memory on several nodes on cluster. I am trying to use the Distributed.jl package, but it does not seem to work, so I would like to seek some advi…

---

## [Canonical way to check if a project is a package?](https://discourse.julialang.org/t/canonical-way-to-check-if-a-project-is-a-package/90827)

<div class="topic-metadata">

**Author:** [@grahamas](https://discourse.julialang.org/u/grahamas)\
**Replies:** 4\
**Last updated:** [December 5, 2022, 11:11pm UTC](https://discourse.julialang.org/t/canonical-way-to-check-if-a-project-is-a-package/90827 "2022-12-05T23:11:49Z")

</div>

I’m trying to write some code to detect if a Project.toml defines a package or not (making a better error output in this issue Requesting better error message for non-packages · Issue #60 · GunnarFarneback/LocalRegistry.…

---

## [Creating many large arrays within structs](https://discourse.julialang.org/t/creating-many-large-arrays-within-structs/91160)

<div class="topic-metadata">

**Author:** [@smartalecH](https://discourse.julialang.org/u/smartalecH)\
**Replies:** 4\
**Last updated:** [December 5, 2022, 11:00pm UTC](https://discourse.julialang.org/t/creating-many-large-arrays-within-structs/91160 "2022-12-05T23:00:33Z")

</div>

Suppose I have an (immutable) struct that holds many large arrays. Not all of these arrays need to exist, however, it just depends on the user-specified problem setup. So I defined my struct like this: @with\_kw struct m…

---

## [Solving nonconvex problems using Gurobi](https://discourse.julialang.org/t/solving-nonconvex-problems-using-gurobi/91283)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 1\
**Last updated:** [December 5, 2022, 10:39pm UTC](https://discourse.julialang.org/t/solving-nonconvex-problems-using-gurobi/91283 "2022-12-05T22:39:47Z")

</div>

I just wanted to confirm if this is the right way to solve a nonconvex problem with bilinear terms (continuous times continuous variables) using Gurobi. I assumed to define a nonlinear constraint or objective, I should b…

---

## [What is the 3D plotter package closest to the rgl R package?](https://discourse.julialang.org/t/what-is-the-3d-plotter-package-closest-to-the-rgl-r-package/79816)

<div class="topic-metadata">

**Author:** [@\_stla](https://discourse.julialang.org/u/_stla)\
**Replies:** 9\
**Last updated:** [December 5, 2022, 10:32pm UTC](https://discourse.julialang.org/t/what-is-the-3d-plotter-package-closest-to-the-rgl-r-package/79816 "2022-12-05T22:32:15Z")

</div>

Hello, I took a look at the available 3D plotter package in Julia but at first glance they look complicated to me (maybe I mislooked). I’m looking for a package similar to the rgl R package, that is, you just have to en…

---

## [How to use DataDrivenDiffEq.jl for simple Sparse Identification without ODE](https://discourse.julialang.org/t/how-to-use-datadrivendiffeq-jl-for-simple-sparse-identification-without-ode/91114)

<div class="topic-metadata">

**Author:** [@Molox](https://discourse.julialang.org/u/Molox)\
**Replies:** 2\
**Last updated:** [December 5, 2022, 10:14pm UTC](https://discourse.julialang.org/t/how-to-use-datadrivendiffeq-jl-for-simple-sparse-identification-without-ode/91114 "2022-12-05T22:14:53Z")

</div>

I try to estimate an expression of y=sin(w+x) where I need to have a parameter of w. It gives an error during solve step. I know it is related to the parameter w but has no clue how to debug. I saw examples with differe…

---

## [Evaluate a nonlinear expression at a point](https://discourse.julialang.org/t/evaluate-a-nonlinear-expression-at-a-point/91279)

<div class="topic-metadata">

**Author:** [@Mitch\_Phillipson](https://discourse.julialang.org/u/Mitch_Phillipson)\
**Replies:** 4\
**Last updated:** [December 5, 2022, 10:04pm UTC](https://discourse.julialang.org/t/evaluate-a-nonlinear-expression-at-a-point/91279 "2022-12-05T22:04:22Z")

</div>

I have a model with many nonlinear expressions and I would like to evaluate these to test my model. For example I have something like this using JuMP m = Model() @variable(m,x) @NLexpression(m,T,x^2) #What is T(x=2)…

---

## [Fail to render LATEX output using Weave](https://discourse.julialang.org/t/fail-to-render-latex-output-using-weave/75670)

<div class="topic-metadata">

**Author:** [@lobshi](https://discourse.julialang.org/u/lobshi)\
**Replies:** 1\
**Last updated:** [December 5, 2022, 9:17pm UTC](https://discourse.julialang.org/t/fail-to-render-latex-output-using-weave/75670 "2022-12-05T21:17:54Z")

</div>

I am using macOS and VScode. I find Weave.jl fail to render LATEX output. Example code: # Demo \*\*Everything\*\* works fine, \_except\_ for LATEX elements. I want beta in \`LATEX\`: 1. $\\beta$ 2. \`\`\\beta\`\` 3. $$\\beta$$ 4. \`\`…

---

## [Warning: could not download https://pkg.julialang.org/registries julia 1.6.3](https://discourse.julialang.org/t/warning-could-not-download-https-pkg-julialang-org-registries-julia-1-6-3/69186)

<div class="topic-metadata">

**Author:** [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Replies:** 13\
**Last updated:** [September 22, 2022, 12:50pm UTC](https://discourse.julialang.org/t/warning-could-not-download-https-pkg-julialang-org-registries-julia-1-6-3/69186 "2022-09-22T12:50:16Z")

</div>

This alert began to appear 3 days ago !!! Previously, everything was running satisfactorily. \_ \_ \_ \_(\_)\_ | Documentation: https://docs.julialang.org (\_) | (\_) (\_) | \_ \_ \_| |\_ …

---

## [\[ANN\] Plots 1.37 - RFC Plots 2.0](https://discourse.julialang.org/t/ann-plots-1-37-rfc-plots-2-0/91270)

<div class="topic-metadata">

**Author:** [@t-bltg](https://discourse.julialang.org/u/t-bltg)\
**Replies:** 1\
**Last updated:** [December 5, 2022, 8:41pm UTC](https://discourse.julialang.org/t/ann-plots-1-37-rfc-plots-2-0/91270 "2022-12-05T20:41:19Z")

</div>

A couple of notes on the release of Plots 1.37. “best” legend position for gr (and other backends) has been implemented thanks to @lmiq in this PR. addition of the pythonplot backend. This backend uses PythonCall and P…

---

## [Debugging does not work in vscode for 1 line of code of Zygote](https://discourse.julialang.org/t/debugging-does-not-work-in-vscode-for-1-line-of-code-of-zygote/91088)

<div class="topic-metadata">

**Author:** [@Joe\_Kuzlovsky](https://discourse.julialang.org/u/Joe_Kuzlovsky)\
**Replies:** 2\
**Last updated:** [December 5, 2022, 5:14pm UTC](https://discourse.julialang.org/t/debugging-does-not-work-in-vscode-for-1-line-of-code-of-zygote/91088 "2022-12-05T17:14:06Z")

</div>

I have this code: using Zygote function test\_gradient() return gradient(x -\> 3x^2 + 2x + 1, 5) end and I am trying to debug it by setting a breakpoint in vscode. I get the following error when reaching y, back…

---

## [How To Avoiding Allocations in Static Structs](https://discourse.julialang.org/t/how-to-avoiding-allocations-in-static-structs/91196)

<div class="topic-metadata">

**Author:** [@cdelv](https://discourse.julialang.org/u/cdelv)\
**Replies:** 4\
**Last updated:** [December 5, 2022, 4:48pm UTC](https://discourse.julialang.org/t/how-to-avoiding-allocations-in-static-structs/91196 "2022-12-05T16:48:08Z")

</div>

Hi, I’m doing an MD simulation and have a problem getting good performance with static structs. The idea is to have a struct that represents a particle. I checked that using static structs is the fastest (nice) way of do…

---

## [N-dimensional ConvLayer by scratch with all the bells and whistles but... super super slow :-/](https://discourse.julialang.org/t/n-dimensional-convlayer-by-scratch-with-all-the-bells-and-whistles-but-super-super-slow/91104)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 5\
**Last updated:** [December 5, 2022, 4:30pm UTC](https://discourse.julialang.org/t/n-dimensional-convlayer-by-scratch-with-all-the-bells-and-whistles-but-super-super-slow/91104 "2022-12-05T16:30:59Z")

</div>

I just implemented a fully-from-scratch convolutional layer on my BetaML ML lib. It works with or without autodiff, it accepts infinite dimensions, nchannels input/output, padding, stride… training even works …

---

## [Makie 3D arrows scale in a strange fashion](https://discourse.julialang.org/t/makie-3d-arrows-scale-in-a-strange-fashion/89371)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 5\
**Last updated:** [December 5, 2022, 4:29pm UTC](https://discourse.julialang.org/t/makie-3d-arrows-scale-in-a-strange-fashion/89371 "2022-12-05T16:29:52Z")

</div>

I’m currently using a plot with a lot of arrows drawn into it. Sometimes I want to have both the length of the arrows and their size (cylinder / cone diameter in 3D) be proportional to a given value. The following plot …

---

## [Performant and user-friendly function only through metaprogramming?](https://discourse.julialang.org/t/performant-and-user-friendly-function-only-through-metaprogramming/91268)

<div class="topic-metadata">

**Author:** [@corbat](https://discourse.julialang.org/u/corbat)\
**Replies:** 1\
**Last updated:** [December 5, 2022, 3:49pm UTC](https://discourse.julialang.org/t/performant-and-user-friendly-function-only-through-metaprogramming/91268 "2022-12-05T15:49:11Z")

</div>

Hi, I have a question on how to write performant functions that are still somewhat convenient for the user. I have an application where I need to run optimizers on custom functions, i.e., the functions are called very o…

---

## [Setting size (resolution) of makie plot when plotting?](https://discourse.julialang.org/t/setting-size-resolution-of-makie-plot-when-plotting/91148)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 6\
**Last updated:** [December 5, 2022, 3:24pm UTC](https://discourse.julialang.org/t/setting-size-resolution-of-makie-plot-when-plotting/91148 "2022-12-05T15:24:50Z")

</div>

I want to change the size of a plot I am making in Makie. I try: graphplot(mygraph,resolution=(500,500)) but get an error: ERROR: setting resolution for scene via plot attribute not supported anymore Is there some ot…

---

## [Bug In Detecting Changed Constant in Objective Function](https://discourse.julialang.org/t/bug-in-detecting-changed-constant-in-objective-function/91235)

<div class="topic-metadata">

**Author:** [@elipivo](https://discourse.julialang.org/u/elipivo)\
**Replies:** 3\
**Last updated:** [December 5, 2022, 2:55pm UTC](https://discourse.julialang.org/t/bug-in-detecting-changed-constant-in-objective-function/91235 "2022-12-05T14:55:16Z")

</div>

I’m experiencing a bug where it appears the constant in the objective function doesn’t get updated using Gurobi, here is a quick example: model = Model(() -\> Gurobi.Optimizer(env)) @variable(model, x\[1:2\]) @constraint(m…

---

## [\[ANN\] SimplicialCubature.jl](https://discourse.julialang.org/t/ann-simplicialcubature-jl/91255)

<div class="topic-metadata">

**Author:** [@\_stla](https://discourse.julialang.org/u/_stla)\
**Replies:** 7\
**Last updated:** [December 5, 2022, 2:37pm UTC](https://discourse.julialang.org/t/ann-simplicialcubature-jl/91255 "2022-12-05T14:37:53Z")

</div>

Hello, I made a package for the numerical integration of a multivariate function on a simplex: SimplicialCubature.jl. This is a port of the R package SimplicialCubature. The integration is adaptive. There’s also a fun…

---

## [@spawn and @async in producer-consumer problem](https://discourse.julialang.org/t/spawn-and-async-in-producer-consumer-problem/91252)

<div class="topic-metadata">

**Author:** [@achjaj](https://discourse.julialang.org/u/achjaj)\
**Replies:** 4\
**Last updated:** [December 5, 2022, 2:09pm UTC](https://discourse.julialang.org/t/spawn-and-async-in-producer-consumer-problem/91252 "2022-12-05T14:09:37Z")

</div>

Hello, I am trying to implement a producer-consumer problem, where I want one thread to produce some data and a second thread to take the data and write them to a disk. I am using Channel as my queue so that the produce…

---

## [Characteristic Functions --\> pdf using fft?](https://discourse.julialang.org/t/characteristic-functions-pdf-using-fft/91060)

<div class="topic-metadata">

**Author:** [@tom-plaa](https://discourse.julialang.org/u/tom-plaa)\
**Replies:** 11\
**Last updated:** [December 5, 2022, 1:16pm UTC](https://discourse.julialang.org/t/characteristic-functions-pdf-using-fft/91060 "2022-12-05T13:16:04Z")

</div>

I have to work on a problem that requires me to use characteristic functions to represent random variables, as these particular rv’s have no close form distribution. The last time I did something remotely similar was at …

---

## [Makie does not update the plot during an animation](https://discourse.julialang.org/t/makie-does-not-update-the-plot-during-an-animation/91109)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 15\
**Last updated:** [December 5, 2022, 9:17am UTC](https://discourse.julialang.org/t/makie-does-not-update-the-plot-during-an-animation/91109 "2022-12-05T09:17:07Z")

</div>

Working with lots of geometry objects, I wrote some recipes to plot such objects using low-level commands like lines! and scatter! I have a master-recipe that combines all of those so that my call sequence remains simpl…

---

## [Insert time in missing rows](https://discourse.julialang.org/t/insert-time-in-missing-rows/91244)

<div class="topic-metadata">

**Author:** [@sai\_matcha](https://discourse.julialang.org/u/sai_matcha)\
**Replies:** 2\
**Last updated:** [December 5, 2022, 7:42am UTC](https://discourse.julialang.org/t/insert-time-in-missing-rows/91244 "2022-12-05T07:42:36Z")

</div>

Hi i have column containts time. looks like this julia\> df.TOB 391-element SentinelArrays.ChainedVector{Union{Missing, Time}, SentinelArrays.SentinelVector{Time, Time, Missing, Vector{Time}}}: 12:30:00 12:30:00 12:…

---

## [What is DiffEqBase.NoRootFind?](https://discourse.julialang.org/t/what-is-diffeqbase-norootfind/91223)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 2\
**Last updated:** [December 5, 2022, 5:43am UTC](https://discourse.julialang.org/t/what-is-diffeqbase-norootfind/91223 "2022-12-05T05:43:40Z")

</div>

Hello, I have inherited some code to solve ODE and there is a line containing: julia\> make\_callback(t, v) = PresetTimeCallback(\[t\], (i) -\> ( i.u\[end\] += v)) make\_callback (generic function with 1 method) julia\> no\_aff…

---

## [Is Julia Optimization fit for me?](https://discourse.julialang.org/t/is-julia-optimization-fit-for-me/90114)

<div class="topic-metadata">

**Author:** [@dhathri](https://discourse.julialang.org/u/dhathri)\
**Replies:** 6\
**Last updated:** [December 5, 2022, 4:51am UTC](https://discourse.julialang.org/t/is-julia-optimization-fit-for-me/90114 "2022-12-05T04:51:44Z")

</div>

Hello, I am new to Julia but not to optimization. I have implemented a large direct collocation constrained optimization NLP problem in MATLAB, it works but is a bit slow for my taste (takes about 5 minutes on average). …

---

## [Guidance for contributing](https://discourse.julialang.org/t/guidance-for-contributing/91226)

<div class="topic-metadata">

**Author:** [@vibhoo\_24](https://discourse.julialang.org/u/vibhoo_24)\
**Replies:** 4\
**Last updated:** [December 5, 2022, 4:50am UTC](https://discourse.julialang.org/t/guidance-for-contributing/91226 "2022-12-05T04:50:09Z")

</div>

I have learned the julia language from the course on the julia academy.I knows basics of machine learning and deep learning.Please assign me some issues on which I should work on so that I can start contributing. Thank …

---

## [Automatic differentiation and optimization with respect to callback times](https://discourse.julialang.org/t/automatic-differentiation-and-optimization-with-respect-to-callback-times/91024)

<div class="topic-metadata">

**Author:** [@pbryde](https://discourse.julialang.org/u/pbryde)\
**Replies:** 2\
**Last updated:** [December 5, 2022, 4:30am UTC](https://discourse.julialang.org/t/automatic-differentiation-and-optimization-with-respect-to-callback-times/91024 "2022-12-05T04:30:50Z")

</div>

From the Training Neural Networks in Hybrid Differential Equations example, I know that SciMLSensitivity is compatible with PresetTimeCallback. I was wondering whether it is possible to compute derivatives (and then opti…

---

## [Is OffsetArrays.jl a poison pill?](https://discourse.julialang.org/t/is-offsetarrays-jl-a-poison-pill/85188)

<div class="topic-metadata">

**Author:** [@Paul\_Soderlind](https://discourse.julialang.org/u/Paul_Soderlind)\
**Replies:** 63\
**Last updated:** [December 5, 2022, 4:05am UTC](https://discourse.julialang.org/t/is-offsetarrays-jl-a-poison-pill/85188 "2022-12-05T04:05:50Z")

</div>

There have been recent discussions of issues related to OffsetArrays.jl. What I hope to contribute here is the perspective of an end-user (non-CS person), which was not the focus of the earlier threads. The need to acco…

---

## [How to locate problem when the called function has no output?](https://discourse.julialang.org/t/how-to-locate-problem-when-the-called-function-has-no-output/91237)

<div class="topic-metadata">

**Author:** [@XuJingye2022](https://discourse.julialang.org/u/XuJingye2022)\
**Replies:** 0\
**Last updated:** [December 5, 2022, 1:13am UTC](https://discourse.julialang.org/t/how-to-locate-problem-when-the-called-function-has-no-output/91237 "2022-12-05T01:13:59Z")

</div>

I write a function funCalled. it ran successfully yesterday but failed today——The task manager shows that Julia has been consuming CPU but no error reported. So I inserted println() in the first line. function funMain(…

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

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