# Latest

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

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

**Page:** 1068

---

## [How can I package julia program with dependencies using PackageCompiler?](https://discourse.julialang.org/t/how-can-i-package-julia-program-with-dependencies-using-packagecompiler/79373)

<div class="topic-metadata">

**Author:** [@Supernova](https://discourse.julialang.org/u/Supernova)\
**Replies:** 3\
**Last updated:** [April 15, 2022, 7:36am UTC](https://discourse.julialang.org/t/how-can-i-package-julia-program-with-dependencies-using-packagecompiler/79373 "2022-04-15T07:36:52Z")

</div>

I’m trying to package my Julia program with PackageCompiler, but I met a problem of dependencies. I tried the simplest demo of MyApp as Apps · PackageCompiler (julialang.github.io) showed, and it worked normally. Howeve…

---

## [What's \`jlhub.com\`?](https://discourse.julialang.org/t/whats-jlhub-com/79508)

<div class="topic-metadata">

**Author:** [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Replies:** 2\
**Last updated:** [April 15, 2022, 12:31am UTC](https://discourse.julialang.org/t/whats-jlhub-com/79508 "2022-04-15T00:31:54Z")

</div>

Is the website jlhub.com affiliated with Julia in any way, or just a fan site? Often when searching for the Julia documentation the first result is from there instead of the official docs. I haven’t seen any outdated con…

---

## [Using AWSS3.jl getting the following error](https://discourse.julialang.org/t/using-awss3-jl-getting-the-following-error/79497)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 1\
**Last updated:** [April 14, 2022, 4:51pm UTC](https://discourse.julialang.org/t/using-awss3-jl-getting-the-following-error/79497 "2022-04-14T16:51:34Z")

</div>

Hi all :slight\_smile: I’m debugging this error now for a while. I think it’s related with a different post I made a while ago. So I’m using a couple of threads to do stuff async. Once in while the main/ starting thread…

---

## [Strange multithreaded behaviour on ARM Ampere A1 (Oracle Cloud)](https://discourse.julialang.org/t/strange-multithreaded-behaviour-on-arm-ampere-a1-oracle-cloud/79490)

<div class="topic-metadata">

**Author:** [@Dandan](https://discourse.julialang.org/u/Dandan)\
**Replies:** 10\
**Last updated:** [April 14, 2022, 6:56pm UTC](https://discourse.julialang.org/t/strange-multithreaded-behaviour-on-arm-ampere-a1-oracle-cloud/79490 "2022-04-14T18:56:17Z")

</div>

I’ve tried to run the following simple benchmark in Oracle Cloud VM on an instance with 4 vCPU of ARM Ampere A1 and 24GB ram: using LinearAlgebra function foo() Threads.@threads for i in 1:10000 H = rand(100, 100) +…

---

## [How to pass 'ADNLPModels.ReverseDiffAD() as the adbackend keyword argument to the ADNLPModel or ADNLSModel constructor.'](https://discourse.julialang.org/t/how-to-pass-adnlpmodels-reversediffad-as-the-adbackend-keyword-argument-to-the-adnlpmodel-or-adnlsmodel-constructor/79442)

<div class="topic-metadata">

**Author:** [@Gummala\_Navneeth](https://discourse.julialang.org/u/Gummala_Navneeth)\
**Replies:** 10\
**Last updated:** [April 14, 2022, 8:49pm UTC](https://discourse.julialang.org/t/how-to-pass-adnlpmodels-reversediffad-as-the-adbackend-keyword-argument-to-the-adnlpmodel-or-adnlsmodel-constructor/79442 "2022-04-14T20:49:42Z")

</div>

Hi all, I’m trying to minimize a function which has constraint as nonlinear vector function. input of constraint function is vector and output of constraint function is a vector of large size ( more than 500 elements ) …

---

## [Why passing a distributed matrix to functions hurts performance?](https://discourse.julialang.org/t/why-passing-a-distributed-matrix-to-functions-hurts-performance/79353)

<div class="topic-metadata">

**Author:** [@Neo](https://discourse.julialang.org/u/Neo)\
**Replies:** 7\
**Last updated:** [April 14, 2022, 8:19pm UTC](https://discourse.julialang.org/t/why-passing-a-distributed-matrix-to-functions-hurts-performance/79353 "2022-04-14T20:19:00Z")

</div>

Hi folks, I observed something strange recently. Passing a distributed matrix to a function will hurt its performance? Let’s say here is task to apply a distributed matrix to some vectors like below: using Distributed…

---

## [Minimizing allocations for custom powerset iterator](https://discourse.julialang.org/t/minimizing-allocations-for-custom-powerset-iterator/79361)

<div class="topic-metadata">

**Author:** [@RobertGregg](https://discourse.julialang.org/u/RobertGregg)\
**Replies:** 7\
**Last updated:** [April 14, 2022, 7:28pm UTC](https://discourse.julialang.org/t/minimizing-allocations-for-custom-powerset-iterator/79361 "2022-04-14T19:28:22Z")

</div>

Just to preface: I realize both Combinatorics.jl and IterTools.jl implement an iterator for powersets. This question is mostly for improving my own Julia skills. I’m trying to iterate through a powerset as efficiently a…

---

## [C-Compatible Julia Function](https://discourse.julialang.org/t/c-compatible-julia-function/79458)

<div class="topic-metadata">

**Author:** [@Yinmin\_Liu](https://discourse.julialang.org/u/Yinmin_Liu)\
**Replies:** 8\
**Last updated:** [April 14, 2022, 7:27pm UTC](https://discourse.julialang.org/t/c-compatible-julia-function/79458 "2022-04-14T19:27:14Z")

</div>

Hi, According to the ccall doc, it is possible to pass Julia functions to native C functions. But how should I program my Julia function, when the C function need an input function with void return type and take a point…

---

## [Pluto Notebooks for Introductory Machine Learning Course](https://discourse.julialang.org/t/pluto-notebooks-for-introductory-machine-learning-course/79478)

<div class="topic-metadata">

**Author:** [@jbrea](https://discourse.julialang.org/u/jbrea)\
**Replies:** 0\
**Last updated:** [April 14, 2022, 9:22am UTC](https://discourse.julialang.org/t/pluto-notebooks-for-introductory-machine-learning-course/79478 "2022-04-14T09:22:17Z")

</div>

I am happy to share my teaching material for an introductory machine learning course. It is a 4 credits course I teach for fifth semester Bachelor students in Life Sciences at EPFL. Previews of the pluto notebooks runni…

---

## [OOM when using Flux and loops](https://discourse.julialang.org/t/oom-when-using-flux-and-loops/79468)

<div class="topic-metadata">

**Author:** [@Fabrice\_Rosay](https://discourse.julialang.org/u/Fabrice_Rosay)\
**Replies:** 4\
**Last updated:** [April 14, 2022, 1:37pm UTC](https://discourse.julialang.org/t/oom-when-using-flux-and-loops/79468 "2022-04-14T13:37:19Z")

</div>

The following code works with actor a residual network of depth 5 and 64 filters if n=1000 (using Flux) But if the lines calling GC are commented, it fails with OOM. Using CUDA 3.9 and Nvidia Driver Version: 510.47.03 …

---

## [LinearMaps.jl](https://discourse.julialang.org/t/linearmaps-jl/79413)

<div class="topic-metadata">

**Author:** [@Srikumar](https://discourse.julialang.org/u/Srikumar)\
**Replies:** 7\
**Last updated:** [April 14, 2022, 6:08pm UTC](https://discourse.julialang.org/t/linearmaps-jl/79413 "2022-04-14T18:08:21Z")

</div>

Is it possible to use Linearmaps on custom data types? I have a struct data type v and wish to construct a function wrapped linear map A that can act on v like A\*v. Would love to know how I could do this! Thanks in adva…

---

## [How to model a chemical reaction network with changing parameters? (Catalyst.jl)](https://discourse.julialang.org/t/how-to-model-a-chemical-reaction-network-with-changing-parameters-catalyst-jl/79489)

<div class="topic-metadata">

**Author:** [@govissers](https://discourse.julialang.org/u/govissers)\
**Replies:** 5\
**Last updated:** [April 14, 2022, 5:38pm UTC](https://discourse.julialang.org/t/how-to-model-a-chemical-reaction-network-with-changing-parameters-catalyst-jl/79489 "2022-04-14T17:38:12Z")

</div>

Hello, I am hoping to model a chemical reaction network within a cell, where an organism may change the rate of a reaction given an external stimulus at time t. Is it possible to model a CRN wherea reaction constant, sp…

---

## [Solve strain for given stress in von Mises plasticity](https://discourse.julialang.org/t/solve-strain-for-given-stress-in-von-mises-plasticity/79501)

<div class="topic-metadata">

**Author:** [@FrootLoops](https://discourse.julialang.org/u/FrootLoops)\
**Replies:** 0\
**Last updated:** [April 14, 2022, 5:23pm UTC](https://discourse.julialang.org/t/solve-strain-for-given-stress-in-von-mises-plasticity/79501 "2022-04-14T17:23:46Z")

</div>

Hi, I am trying to caculate for a given stress the corresponding strain in the Von Mises plasticity example. I know that this results in a non-linear equation. Not notice I have the following equations: σᵗ = C ⊡ (ϵ - ϵ…

---

## [Deleting row and column from an array](https://discourse.julialang.org/t/deleting-row-and-column-from-an-array/28969)

<div class="topic-metadata">

**Author:** [@mamuniut09](https://discourse.julialang.org/u/mamuniut09)\
**Replies:** 8\
**Last updated:** [April 14, 2022, 3:24pm UTC](https://discourse.julialang.org/t/deleting-row-and-column-from-an-array/28969 "2022-04-14T15:24:37Z")

</div>

Hello all, I wanted to remove column and row from an array, but couldn’t find any function to do that. For example, if I want to remove the second row and second column from the following array, how can I do that? a=\[1…

---

## [Offline installation of packages: Move from computer with the internet access to another offline computer](https://discourse.julialang.org/t/offline-installation-of-packages-move-from-computer-with-the-internet-access-to-another-offline-computer/50815)

<div class="topic-metadata">

**Author:** [@EconModeler](https://discourse.julialang.org/u/EconModeler)\
**Replies:** 3\
**Last updated:** [April 14, 2022, 2:31pm UTC](https://discourse.julialang.org/t/offline-installation-of-packages-move-from-computer-with-the-internet-access-to-another-offline-computer/50815 "2022-04-14T14:31:17Z")

</div>

I am new to Julia and using JuliaPro. I have two computers with the same OS (Windows) and the same version of JuliaPro. One computer has an internet connection and the other does not. I have to use the former computer j…

---

## [Transferring \*all\* plotted elements (and their links to observables) between Axis](https://discourse.julialang.org/t/transferring-all-plotted-elements-and-their-links-to-observables-between-axis/79492)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 2\
**Last updated:** [April 14, 2022, 2:26pm UTC](https://discourse.julialang.org/t/transferring-all-plotted-elements-and-their-links-to-observables-between-axis/79492 "2022-04-14T14:26:02Z")

</div>

I admit, I’m not particularly optimistic whether this is possible, but here goes. I have a fig, ax, which is an Axis/Axis3 plotted on a Figure. On this axis many things are plotted, and many of the plotted things are ob…

---

## [CI/CD for package that requires X server](https://discourse.julialang.org/t/ci-cd-for-package-that-requires-x-server/79400)

<div class="topic-metadata">

**Author:** [@samo](https://discourse.julialang.org/u/samo)\
**Replies:** 3\
**Last updated:** [April 14, 2022, 10:51am UTC](https://discourse.julialang.org/t/ci-cd-for-package-that-requires-x-server/79400 "2022-04-14T10:51:26Z")

</div>

Hi all, I am trying to add CI/CD for a package that requires X server: https://github.com/omlins/JustSayIt.jl Concretely, it is the Python dependency pynput that requires it. Does anybody have some suggestions on how …

---

## [Apply a column of anonymous functions for each column in a column subset](https://discourse.julialang.org/t/apply-a-column-of-anonymous-functions-for-each-column-in-a-column-subset/79402)

<div class="topic-metadata">

**Author:** [@babaq](https://discourse.julialang.org/u/babaq)\
**Replies:** 11\
**Last updated:** [April 14, 2022, 1:02pm UTC](https://discourse.julialang.org/t/apply-a-column-of-anonymous-functions-for-each-column-in-a-column-subset/79402 "2022-04-14T13:02:50Z")

</div>

Hi, Suppose we have a DataFrame like this: df = DataFrame(name='a':'c',x1=1:3,x2=\[\[1,2\],\[3,4\],\[5,6\]\],xfun=\[x-\>x.-1,x-\>x.^2,x-\>x.^3\]) I want to transform column x1 and x2 in df by apply each fun in xfun for the corresp…

---

## [Constrained Optimization and Constraints with more than one variable](https://discourse.julialang.org/t/constrained-optimization-and-constraints-with-more-than-one-variable/79482)

<div class="topic-metadata">

**Author:** [@IljaK91](https://discourse.julialang.org/u/IljaK91)\
**Replies:** 4\
**Last updated:** [April 14, 2022, 1:00pm UTC](https://discourse.julialang.org/t/constrained-optimization-and-constraints-with-more-than-one-variable/79482 "2022-04-14T13:00:42Z")

</div>

Hello everyone, I want to use Optim.jl to solve a constrained optimization problem. As far as I understand, Optim.jl offers constraints of the form (lower\_bound\_i \<= x\_i \<= upper\_bound\_i). However, for my problem I need…

---

## [VS Code grid viewer for tabular data showing error message](https://discourse.julialang.org/t/vs-code-grid-viewer-for-tabular-data-showing-error-message/79100)

<div class="topic-metadata">

**Author:** [@alexgr](https://discourse.julialang.org/u/alexgr)\
**Replies:** 5\
**Last updated:** [April 14, 2022, 12:46pm UTC](https://discourse.julialang.org/t/vs-code-grid-viewer-for-tabular-data-showing-error-message/79100 "2022-04-14T12:46:17Z")

</div>

I am getting the following message (first attached picture) when trying to open a dataframe view through the icon pointed by the arrow (second picture). Does anyone have any clue? Julia 1.7.2 Julia extension v1.6.15 …

---

## [Jobs: AI-augmented modelling for healthcare at Pumas-AI](https://discourse.julialang.org/t/jobs-ai-augmented-modelling-for-healthcare-at-pumas-ai/78384)

<div class="topic-metadata">

**Author:** [@korsbo](https://discourse.julialang.org/u/korsbo)\
**Replies:** 3\
**Last updated:** [April 14, 2022, 12:22pm UTC](https://discourse.julialang.org/t/jobs-ai-augmented-modelling-for-healthcare-at-pumas-ai/78384 "2022-04-14T12:22:24Z")

</div>

Hi everyone, I’m happy to announce that the DeepPumas team at Pumas-AI is now looking for two new full-time employees to help revolutionise pharmacology through AI-augmented modelling! Pumas-AI is a globally remote com…

---

## [Understaing vector (or array?) fields in julia mutable struct](https://discourse.julialang.org/t/understaing-vector-or-array-fields-in-julia-mutable-struct/79479)

<div class="topic-metadata">

**Author:** [@francesco123212](https://discourse.julialang.org/u/francesco123212)\
**Replies:** 2\
**Last updated:** [April 14, 2022, 12:20pm UTC](https://discourse.julialang.org/t/understaing-vector-or-array-fields-in-julia-mutable-struct/79479 "2022-04-14T12:20:56Z")

</div>

Hello everyone! I’m a mechanical engineer coming from MATLAB and relatively new to Julia, so I’m really sorry for my heresies! I’m currently working on mutable structures, and I’m interested in creating an array (or vec…

---

## [Can't load package (StatsBase) in Jupyter notebook but can in REPL](https://discourse.julialang.org/t/cant-load-package-statsbase-in-jupyter-notebook-but-can-in-repl/77095)

<div class="topic-metadata">

**Author:** [@rwgardner](https://discourse.julialang.org/u/rwgardner)\
**Replies:** 7\
**Last updated:** [April 14, 2022, 11:41am UTC](https://discourse.julialang.org/t/cant-load-package-statsbase-in-jupyter-notebook-but-can-in-repl/77095 "2022-04-14T11:41:10Z")

</div>

I have a fresh installation of julia-1.6.5 on an ubuntu 18.04 box. I added a number of packages and in the REPL, I can julia\> using StatsBase \[ Info: Precompiling StatsBase \[2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91\] Succe…

---

## [Valid values for attributes: is there a list or a way to look them up?](https://discourse.julialang.org/t/valid-values-for-attributes-is-there-a-list-or-a-way-to-look-them-up/79386)

<div class="topic-metadata">

**Author:** [@weltenbummler](https://discourse.julialang.org/u/weltenbummler)\
**Replies:** 2\
**Last updated:** [April 14, 2022, 10:40am UTC](https://discourse.julialang.org/t/valid-values-for-attributes-is-there-a-list-or-a-way-to-look-them-up/79386 "2022-04-14T10:40:23Z")

</div>

Hello, In makie, I can look up a list with attributes by e.g. writing fig = Figure() ax = Axis(fig\[1,1\]) ax.attributes It lists the attributes and shows the current settings. However, how can I find out the valid valu…

---

## [Time varying input in ReachabilityAnalysis](https://discourse.julialang.org/t/time-varying-input-in-reachabilityanalysis/78419)

<div class="topic-metadata">

**Author:** [@martincornejo](https://discourse.julialang.org/u/martincornejo)\
**Replies:** 2\
**Last updated:** [April 14, 2022, 10:10am UTC](https://discourse.julialang.org/t/time-varying-input-in-reachabilityanalysis/78419 "2022-04-14T10:10:09Z")

</div>

Let’s take the following example taken from ReachabilityAnalysis’s documentation: https://juliareach.github.io/ReachabilityAnalysis.jl/dev/models/TransmissionLine/#Transmission-line-circuit For the input, it takes the …

---

## [PlotlyJS 3d scatter plot does not respect zmin and zmax](https://discourse.julialang.org/t/plotlyjs-3d-scatter-plot-does-not-respect-zmin-and-zmax/79475)

<div class="topic-metadata">

**Author:** [@Jae-Mo\_Lihm](https://discourse.julialang.org/u/Jae-Mo_Lihm)\
**Replies:** 2\
**Last updated:** [April 14, 2022, 9:15am UTC](https://discourse.julialang.org/t/plotlyjs-3d-scatter-plot-does-not-respect-zmin-and-zmax/79475 "2022-04-14T09:15:38Z")

</div>

How can I fix zmin and zmax in the colorscale? using PlotlyJS PlotlyJS.plot(PlotlyJS.scatter( x=\[0, 1\], y=\[0, 1\], mode="markers", marker=attr( size = 10, color = \[-2, 1\], showscale =…

---

## [Use of Openlibm](https://discourse.julialang.org/t/use-of-openlibm/79473)

<div class="topic-metadata">

**Author:** [@Shreya\_Gupta](https://discourse.julialang.org/u/Shreya_Gupta)\
**Replies:** 1\
**Last updated:** [April 14, 2022, 8:56am UTC](https://discourse.julialang.org/t/use-of-openlibm/79473 "2022-04-14T08:56:21Z")

</div>

Hello Julia community, I am working on a project(written in C/C++,Octave) where I have to make the C math library function work consistently across compilers and operating systems. For this, One solution that comes is th…

---

## [How to run code cell in a REPL that I already opened in VS code?](https://discourse.julialang.org/t/how-to-run-code-cell-in-a-repl-that-i-already-opened-in-vs-code/79457)

<div class="topic-metadata">

**Author:** [@neuro\_enthusiast](https://discourse.julialang.org/u/neuro_enthusiast)\
**Replies:** 6\
**Last updated:** [April 14, 2022, 8:41am UTC](https://discourse.julialang.org/t/how-to-run-code-cell-in-a-repl-that-i-already-opened-in-vs-code/79457 "2022-04-14T08:41:09Z")

</div>

When I run alt-enter on a code cell/ code block after opening up VS code, it automatically opens up a REPL, even if I already opened one up within VS code. Is there a way to run code cells within a REPL I already opened …

---

## [Interesting Paper on Pain-Points in Computational Notebooks](https://discourse.julialang.org/t/interesting-paper-on-pain-points-in-computational-notebooks/78991)

<div class="topic-metadata">

**Author:** [@grahamstark](https://discourse.julialang.org/u/grahamstark)\
**Replies:** 3\
**Last updated:** [April 14, 2022, 7:27am UTC](https://discourse.julialang.org/t/interesting-paper-on-pain-points-in-computational-notebooks/78991 "2022-04-14T07:27:11Z")

</div>

I found an interesting paper: What’s Wrong with Computational Notebooks? Pain Points, Needs, and Design Opportunities Souti Chattopadhyay, Austin Z. Henley, Ishita Prasad, Anita Sarma, and Titus Barik. CHI '20: ACM SI…

---

## [Performance of \`zero\`, \`oneunit\` etc. in constructing unsigned ranges](https://discourse.julialang.org/t/performance-of-zero-oneunit-etc-in-constructing-unsigned-ranges/79470)

<div class="topic-metadata">

**Author:** [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Replies:** 5\
**Last updated:** [April 14, 2022, 7:26am UTC](https://discourse.julialang.org/t/performance-of-zero-oneunit-etc-in-constructing-unsigned-ranges/79470 "2022-04-14T07:26:32Z")

</div>

In my code, I often need to iterate over the range 0:m or 1:m where the type of each range element is a primitive type T, usually UInt8 or UInt16. m itself is already of type T. This leaves me with many options for spe…

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

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