# Latest

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

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

**Page:** 871

---

## [AD in DiffEqFlux using DiscreteCallback](https://discourse.julialang.org/t/ad-in-diffeqflux-using-discretecallback/89748)

<div class="topic-metadata">

**Author:** [@facusapienza](https://discourse.julialang.org/u/facusapienza)\
**Replies:** 1\
**Last updated:** [November 9, 2022, 12:07am UTC](https://discourse.julialang.org/t/ad-in-diffeqflux-using-discretecallback/89748 "2022-11-09T00:07:10Z")

</div>

I am trying to implement a callback term in my ODE solver and using Zygote to differentiate with respect to the model parameters. The action that callback uses is very simple and not very different to the one used in Eve…

---

## [Numerical intergration order problem (probably)](https://discourse.julialang.org/t/numerical-intergration-order-problem-probably/89960)

<div class="topic-metadata">

**Author:** [@swish47](https://discourse.julialang.org/u/swish47)\
**Replies:** 0\
**Last updated:** [November 8, 2022, 11:51pm UTC](https://discourse.julialang.org/t/numerical-intergration-order-problem-probably/89960 "2022-11-08T23:51:34Z")

</div>

This is a long example inspired by quantum physics. I tried to abstract the key points and write a typically similar and simpler example, however I failed. Thanks for read my naive and tedious codes in advance. using HC…

---

## [Independence of function from an input variable](https://discourse.julialang.org/t/independence-of-function-from-an-input-variable/89959)

<div class="topic-metadata">

**Author:** [@NicholasMueller](https://discourse.julialang.org/u/NicholasMueller)\
**Replies:** 0\
**Last updated:** [November 8, 2022, 11:29pm UTC](https://discourse.julialang.org/t/independence-of-function-from-an-input-variable/89959 "2022-11-08T23:29:07Z")

</div>

Hi I’m wondering if there is a way to check if a function is independent from one of its input variables. For example, if we consider the function f(x,μ) = x, I’m looking for a method that tells me that the function μ -\> …

---

## [How to update a JLL wrapper to support Mac M1](https://discourse.julialang.org/t/how-to-update-a-jll-wrapper-to-support-mac-m1/89936)

<div class="topic-metadata">

**Author:** [@Wikunia](https://discourse.julialang.org/u/Wikunia)\
**Replies:** 2\
**Last updated:** [November 8, 2022, 10:20pm UTC](https://discourse.julialang.org/t/how-to-update-a-jll-wrapper-to-support-mac-m1/89936 "2022-11-08T22:20:51Z")

</div>

Hey everyone, I’m an extensive user of the Clipper.jl package and would like to use the M1 version of Julia and it seems it’s currently the only package that I can’t use with native M1 due to GitHub - JuliaBinaryWrapper…

---

## [\`sizehint!\` style approach for matrices](https://discourse.julialang.org/t/sizehint-style-approach-for-matrices/89951)

<div class="topic-metadata">

**Author:** [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Replies:** 2\
**Last updated:** [November 8, 2022, 9:52pm UTC](https://discourse.julialang.org/t/sizehint-style-approach-for-matrices/89951 "2022-11-08T21:52:12Z")

</div>

My program has the following structure: for i in 1:1000 u = foo(i) # A 3xN Matrix{Float64} bar(u) end where N is usually between 100 and 150. Through profiling, I have learned that allocating memory in line 2 …

---

## [I can not make Julia run inside Atom](https://discourse.julialang.org/t/i-can-not-make-julia-run-inside-atom/89746)

<div class="topic-metadata">

**Author:** [@Redwan\_Khan](https://discourse.julialang.org/u/Redwan_Khan)\
**Replies:** 3\
**Last updated:** [November 8, 2022, 9:12pm UTC](https://discourse.julialang.org/t/i-can-not-make-julia-run-inside-atom/89746 "2022-11-08T21:12:20Z")

</div>

I can not make Julia run inside Atom. All the time I receive the following alert: But if i start in cmd, it start for sure… And i already unstall and re-install but still didn’t work… can anyone help me pls ? Thank…

---

## [JuMP kmeans with constraints](https://discourse.julialang.org/t/jump-kmeans-with-constraints/89906)

<div class="topic-metadata">

**Author:** [@monty](https://discourse.julialang.org/u/monty)\
**Replies:** 4\
**Last updated:** [November 8, 2022, 8:03pm UTC](https://discourse.julialang.org/t/jump-kmeans-with-constraints/89906 "2022-11-08T20:03:47Z")

</div>

I am solving k-means using JuMP. X = \[ 2.0 2.0; 2.5 2.1; 7.0 7.0; 2.2 2.3; 6.8 7.0; 7.2 7.5;\] k=2 m, n = size(X) W = exp.(-Distances.pairwise(Distances.Euclidean(), X')) I = Matrix(1.0 \* LinearAlgebra.I, m, m) mo…

---

## [Is it possible to manually manage the memory without having to use C Standard Library?](https://discourse.julialang.org/t/is-it-possible-to-manually-manage-the-memory-without-having-to-use-c-standard-library/89881)

<div class="topic-metadata">

**Author:** [@phantomcraft](https://discourse.julialang.org/u/phantomcraft)\
**Replies:** 15\
**Last updated:** [November 8, 2022, 8:03pm UTC](https://discourse.julialang.org/t/is-it-possible-to-manually-manage-the-memory-without-having-to-use-c-standard-library/89881 "2022-11-08T20:03:21Z")

</div>

If I want maximum performance for a program written in Julia, one of my options would be manually managing the memory with help of Julia C Standard Library. But is it possible to do that in another way? Has Julia facili…

---

## [Defining new types with strict requirements](https://discourse.julialang.org/t/defining-new-types-with-strict-requirements/89751)

<div class="topic-metadata">

**Author:** [@mmv](https://discourse.julialang.org/u/mmv)\
**Replies:** 4\
**Last updated:** [November 8, 2022, 7:45pm UTC](https://discourse.julialang.org/t/defining-new-types-with-strict-requirements/89751 "2022-11-08T19:45:07Z")

</div>

Hi! I intend to create a set of dozens of Julia functions routines that will operate on objects a, b, c and d, where the following conditions must always be verified: a is an 8-bit unsigned integer such that 1 \< a \< …

---

## [Parameter estimation ODEs](https://discourse.julialang.org/t/parameter-estimation-odes/64053)

<div class="topic-metadata">

**Author:** [@NickJ](https://discourse.julialang.org/u/NickJ)\
**Replies:** 6\
**Last updated:** [November 8, 2022, 7:10pm UTC](https://discourse.julialang.org/t/parameter-estimation-odes/64053 "2022-11-08T19:10:43Z")

</div>

Hi all, I am a beginner in both Julia and Bayesian inference, and I am interested in Turing.jl to learn about both. I am a mechanical engineer who typically works with deterministic ODEs, i.e. given some parameters as i…

---

## [Selecting arbitrary columns from DataFrameRow](https://discourse.julialang.org/t/selecting-arbitrary-columns-from-dataframerow/89950)

<div class="topic-metadata">

**Author:** [@tom-plaa](https://discourse.julialang.org/u/tom-plaa)\
**Replies:** 2\
**Last updated:** [November 8, 2022, 7:02pm UTC](https://discourse.julialang.org/t/selecting-arbitrary-columns-from-dataframerow/89950 "2022-11-08T19:02:51Z")

</div>

EDIT: Disregard this, I don’t know why I wasn’t getting the results I expected before… I want to replicate finding duplicate composite primary keys in an sql database to some arbitrary dataframe. Let’s set up some dumm…

---

## [Warning "Error requiring PyPlot from Plots" in compiled julia program](https://discourse.julialang.org/t/warning-error-requiring-pyplot-from-plots-in-compiled-julia-program/89857)

<div class="topic-metadata">

**Author:** [@clarakoehne](https://discourse.julialang.org/u/clarakoehne)\
**Replies:** 7\
**Last updated:** [November 8, 2022, 6:47pm UTC](https://discourse.julialang.org/t/warning-error-requiring-pyplot-from-plots-in-compiled-julia-program/89857 "2022-11-08T18:47:41Z")

</div>

Hi all! I am trying to compile my julia project using PackageCompiler v. 2.1.0. My julia version is 1.8.2, Plots is v. 1.35.8, PyCall 1.94.1 and, PyPlot 2.11.0. Compilation works, at least it doesn’t error in the middle.…

---

## [Improve model parameters in a chain of simple transfer functions by optimization](https://discourse.julialang.org/t/improve-model-parameters-in-a-chain-of-simple-transfer-functions-by-optimization/89565)

<div class="topic-metadata">

**Author:** [@JanKap](https://discourse.julialang.org/u/JanKap)\
**Replies:** 3\
**Last updated:** [November 8, 2022, 6:19pm UTC](https://discourse.julialang.org/t/improve-model-parameters-in-a-chain-of-simple-transfer-functions-by-optimization/89565 "2022-11-08T18:19:47Z")

</div>

I hope this is the right section here. Suppose there’s a simple chain of transfer functions which originate from an electrical system. I try to match an output curve to be as close to a target as possible. I’ll try to d…

---

## [Status of database packages and tools for, e.g. ORM tools](https://discourse.julialang.org/t/status-of-database-packages-and-tools-for-e-g-orm-tools/89933)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 1\
**Last updated:** [November 8, 2022, 5:51pm UTC](https://discourse.julialang.org/t/status-of-database-packages-and-tools-for-e-g-orm-tools/89933 "2022-11-08T17:51:37Z")

</div>

You can use e.g. LibPQ.jl for PostgreSQL, i.e. it directly. There’s also a specific PostgresORM.jl But I want to know of the best tools for databases that work for all, FunSQL.jl seems to be one. FunSQL.jl allows yo…

---

## [Computational Secrets of Julia Revealed - Intel workshop 2 December](https://discourse.julialang.org/t/computational-secrets-of-julia-revealed-intel-workshop-2-december/89944)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 0\
**Last updated:** [November 8, 2022, 5:15pm UTC](https://discourse.julialang.org/t/computational-secrets-of-julia-revealed-intel-workshop-2-december/89944 "2022-11-08T17:15:48Z")

</div>

Explore the power of the fifth most popular programming language: Julia The programming language Julia has gained adoption in organizations that focus strongly on performance, with adherents such as NASA, Climate Modelin…

---

## [Why begin/end instead of { } for block delimiter](https://discourse.julialang.org/t/why-begin-end-instead-of-for-block-delimiter/89735)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 27\
**Last updated:** [November 8, 2022, 4:58pm UTC](https://discourse.julialang.org/t/why-begin-end-instead-of-for-block-delimiter/89735 "2022-11-08T16:58:04Z")

</div>

Why does Julia use begin/end as the block delimiter instead of the more common and concise { }? Why is that better?

---

## [Adding pdf/png into existing pgfplots](https://discourse.julialang.org/t/adding-pdf-png-into-existing-pgfplots/89922)

<div class="topic-metadata">

**Author:** [@Elyco](https://discourse.julialang.org/u/Elyco)\
**Replies:** 2\
**Last updated:** [November 8, 2022, 3:46pm UTC](https://discourse.julialang.org/t/adding-pdf-png-into-existing-pgfplots/89922 "2022-11-08T15:46:52Z")

</div>

Hi, I’m trying to add a node to a pgfplot that contains a pdf/png file. Here is what I have until now using Plots pgfplotsx() fig1 = plot(1:5) savefig(fig1, "fig1.png") savefig(fig1, "fig1.pdf") # just to create a fig…

---

## [@inbounds equivalent for type assertions](https://discourse.julialang.org/t/inbounds-equivalent-for-type-assertions/89107)

<div class="topic-metadata">

**Author:** [@HashBrown](https://discourse.julialang.org/u/HashBrown)\
**Replies:** 2\
**Last updated:** [November 8, 2022, 3:31pm UTC](https://discourse.julialang.org/t/inbounds-equivalent-for-type-assertions/89107 "2022-11-08T15:31:17Z")

</div>

Is there an @inbounds equivalent for type assertions? That is allow the compiler to aggressively compile a specialization based on a type assertion that is unsafe if the type is not correct?

---

## [Computational time of appending an array and mutating an array](https://discourse.julialang.org/t/computational-time-of-appending-an-array-and-mutating-an-array/89118)

<div class="topic-metadata">

**Author:** [@bdas123](https://discourse.julialang.org/u/bdas123)\
**Replies:** 4\
**Last updated:** [November 8, 2022, 1:41pm UTC](https://discourse.julialang.org/t/computational-time-of-appending-an-array-and-mutating-an-array/89118 "2022-11-08T13:41:06Z")

</div>

I want to transition from Zygote.jl to AbstractDifferentiation.jl so that I can mutate arrays instead of appending them. Before I do so, I want to make sure that mutating arrays is faster than appending an array. I’ve r…

---

## [Unitful SymbolicNumericIntegration ambiguity](https://discourse.julialang.org/t/unitful-symbolicnumericintegration-ambiguity/89917)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 1\
**Last updated:** [November 8, 2022, 11:22am UTC](https://discourse.julialang.org/t/unitful-symbolicnumericintegration-ambiguity/89917 "2022-11-08T11:22:30Z")

</div>

What is supposed to happen here? using Symbolics, SymbolicNumericIntegration, Unitful @variables x julia\> integrate(9.8u"m/s^2"\*x) ERROR: MethodError: \*(::Quantity{Float64, 𝐋 𝐓^-2, …}, ::Num) is ambiguous. Candidates: …

---

## [Binding docstring to struct field](https://discourse.julialang.org/t/binding-docstring-to-struct-field/89439)

<div class="topic-metadata">

**Author:** [@nandoconde](https://discourse.julialang.org/u/nandoconde)\
**Replies:** 2\
**Last updated:** [November 8, 2022, 10:30am UTC](https://discourse.julialang.org/t/binding-docstring-to-struct-field/89439 "2022-11-08T10:30:25Z")

</div>

Why does field docstring generation depend on where it was defined? In a file: # MyModule.jl module MyModule "A docstring" struct A "a docstring" a::Int64 end end julia\> include("MyModule.jl") Main.MyModule he…

---

## [EquivalentCircuits: Plot fitted impedance curve](https://discourse.julialang.org/t/equivalentcircuits-plot-fitted-impedance-curve/89788)

<div class="topic-metadata">

**Author:** [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Replies:** 1\
**Last updated:** [November 8, 2022, 10:12am UTC](https://discourse.julialang.org/t/equivalentcircuits-plot-fitted-impedance-curve/89788 "2022-11-08T10:12:22Z")

</div>

Today I discovered a nice package to fit equivalent circuits: EquivalentCircuits.jl Everything works fine, I am able to fit the electrical values of the components. But I have not yet figured out, how to transfer the r…

---

## [How do you get all the first elements of a tuple in a struct array?](https://discourse.julialang.org/t/how-do-you-get-all-the-first-elements-of-a-tuple-in-a-struct-array/89897)

<div class="topic-metadata">

**Author:** [@prittjam](https://discourse.julialang.org/u/prittjam)\
**Replies:** 4\
**Last updated:** [November 8, 2022, 9:51am UTC](https://discourse.julialang.org/t/how-do-you-get-all-the-first-elements-of-a-tuple-in-a-struct-array/89897 "2022-11-08T09:51:24Z")

</div>

adata = collect(1:10) bdata = collect(31:40) tmp2=StructArray((adata,bdata)) How can I get the numbers 1:10 as if they were an array from the StructArray?

---

## [How to change the display size of an image in IJulia (Jupyter)?](https://discourse.julialang.org/t/how-to-change-the-display-size-of-an-image-in-ijulia-jupyter/70675)

<div class="topic-metadata">

**Author:** [@Shuhua](https://discourse.julialang.org/u/Shuhua)\
**Replies:** 2\
**Last updated:** [November 8, 2022, 8:58am UTC](https://discourse.julialang.org/t/how-to-change-the-display-size-of-an-image-in-ijulia-jupyter/70675 "2022-11-08T08:58:12Z")

</div>

We can generate a random image with a rand array. However, regardless of the size of the array, the image is always displayed in Jupyter IJulia (in VS code) with a fixed size. Is there any way to adjust the display size? …

---

## [Add a value to task local storage if it is not already present](https://discourse.julialang.org/t/add-a-value-to-task-local-storage-if-it-is-not-already-present/89909)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 2\
**Last updated:** [November 8, 2022, 7:43am UTC](https://discourse.julialang.org/t/add-a-value-to-task-local-storage-if-it-is-not-already-present/89909 "2022-11-08T07:43:54Z")

</div>

I have a workload that I want to multi thread. This involves calling a function in parallel, that needs some work space for computing. The following rules apply: There may never be two computations using the same works…

---

## [Julia 1.8.3 testing period](https://discourse.julialang.org/t/julia-1-8-3-testing-period/89919)

<div class="topic-metadata">

**Author:** [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Replies:** 0\
**Last updated:** [November 8, 2022, 6:27am UTC](https://discourse.julialang.org/t/julia-1-8-3-testing-period/89919 "2022-11-08T06:27:27Z")

</div>

The release-1.8 branch on the Julia repository now contains the set of commits we’re planning to tag as v1.8.3, the third patch release in the 1.8 series. The list of commits included since v1.8.2 is available here . As …

---

## [Progress bar, or printing during execution, in Jupyter/IJulia?](https://discourse.julialang.org/t/progress-bar-or-printing-during-execution-in-jupyter-ijulia/89916)

<div class="topic-metadata">

**Author:** [@amca01](https://discourse.julialang.org/u/amca01)\
**Replies:** 9\
**Last updated:** [November 8, 2022, 3:44am UTC](https://discourse.julialang.org/t/progress-bar-or-printing-during-execution-in-jupyter-ijulia/89916 "2022-11-08T03:44:47Z")

</div>

I’m not sure whether this is a Julia question, or a Jupyter question, but anyway … I’m working with Julia in a Jupyter notebook (within VSCode on Windows). This is an environment I’m very happy with, and it suits me wel…

---

## [Model options for numeric and categorical](https://discourse.julialang.org/t/model-options-for-numeric-and-categorical/89872)

<div class="topic-metadata">

**Author:** [@Billpete002](https://discourse.julialang.org/u/Billpete002)\
**Replies:** 1\
**Last updated:** [November 8, 2022, 1:34am UTC](https://discourse.julialang.org/t/model-options-for-numeric-and-categorical/89872 "2022-11-08T01:34:14Z")

</div>

Hi All, I am wondering if there is something similar in Julia to Python’s Catboost, i.e. a gradient boosted determinant model that allows for categorical and numeric data? I found a Catboost.jl package, but it is relia…

---

## [Does Python 3.11 improve the performance of compatible imported python packages in Julia?](https://discourse.julialang.org/t/does-python-3-11-improve-the-performance-of-compatible-imported-python-packages-in-julia/89903)

<div class="topic-metadata">

**Author:** [@Shayan](https://discourse.julialang.org/u/Shayan)\
**Replies:** 8\
**Last updated:** [November 8, 2022, 12:08am UTC](https://discourse.julialang.org/t/does-python-3-11-improve-the-performance-of-compatible-imported-python-packages-in-julia/89903 "2022-11-08T00:08:06Z")

</div>

Scikit-Learn recently released wheels suitable for Python3.11. Now I wonder if Python3.11 improves the Python packages’ performance in Julia. PyCall.jl uses a specific python version, and one can install any installable …

---

## [ReverseDiff not using custom derivative from ChainRules](https://discourse.julialang.org/t/reversediff-not-using-custom-derivative-from-chainrules/89888)

<div class="topic-metadata">

**Author:** [@mrVeng](https://discourse.julialang.org/u/mrVeng)\
**Replies:** 3\
**Last updated:** [November 7, 2022, 6:02pm UTC](https://discourse.julialang.org/t/reversediff-not-using-custom-derivative-from-chainrules/89888 "2022-11-07T18:02:18Z")

</div>

Hi there, I would like to use a custom derivative for a function - the cdf of a T distribution wrt to the data. I keep the parameter of this distribution fixed, so NoTangent for the parameter is enough for me here. Here…

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

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