# Latest

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

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

**Page:** 1114

---

## [Please vote for preview capabilities in Dropbox](https://discourse.julialang.org/t/please-vote-for-preview-capabilities-in-dropbox/76956)

<div class="topic-metadata">

**Author:** [@fredrikpaues](https://discourse.julialang.org/u/fredrikpaues)\
**Replies:** 0\
**Last updated:** [February 23, 2022, 5:28am UTC](https://discourse.julialang.org/t/please-vote-for-preview-capabilities-in-dropbox/76956 "2022-02-23T05:28:59Z")

</div>

I just suggested that Dropbox (iOS) add preview capabilities to .jl files just like it has for Python’s .py files and MATLAB’s .m files. As an old idea was closed for voting due to inactivity, I felt it might be a good i…

---

## [Include .jl file](https://discourse.julialang.org/t/include-jl-file/76884)

<div class="topic-metadata">

**Author:** [@iAnkiit](https://discourse.julialang.org/u/iAnkiit)\
**Replies:** 4\
**Last updated:** [February 23, 2022, 4:49am UTC](https://discourse.julialang.org/t/include-jl-file/76884 "2022-02-23T04:49:19Z")

</div>

Include is not recognized command Julia version 1.7.2

---

## [How to plumb together download -\> uncompress -\> untar without writing full downloaded file](https://discourse.julialang.org/t/how-to-plumb-together-download-uncompress-untar-without-writing-full-downloaded-file/76668)

<div class="topic-metadata">

**Author:** [@frtps](https://discourse.julialang.org/u/frtps)\
**Replies:** 15\
**Last updated:** [February 23, 2022, 4:17am UTC](https://discourse.julialang.org/t/how-to-plumb-together-download-uncompress-untar-without-writing-full-downloaded-file/76668 "2022-02-23T04:17:48Z")

</div>

I would like to extract a particular file from a large (say dozens of Gb) gzipped tar archive located somewhere else on the internet. I don’t want to actually write that whole archive to local disk, but instead stream t…

---

## [How to \`unsafe\_wrap()\` with array of struct?](https://discourse.julialang.org/t/how-to-unsafe-wrap-with-array-of-struct/76952)

<div class="topic-metadata">

**Author:** [@chkwon](https://discourse.julialang.org/u/chkwon)\
**Replies:** 0\
**Last updated:** [February 23, 2022, 3:32am UTC](https://discourse.julialang.org/t/how-to-unsafe-wrap-with-array-of-struct/76952 "2022-02-23T03:32:48Z")

</div>

I have C code that returns an array of struct using pointer: mutable struct Result value :: Cdouble len\_sequence :: Cint # length of sequence\[\] sequence :: Ptr{Cint} end mutable struct ResultList len…

---

## [How to convert comma-seperated number to number?](https://discourse.julialang.org/t/how-to-convert-comma-seperated-number-to-number/76906)

<div class="topic-metadata">

**Author:** [@yummy527](https://discourse.julialang.org/u/yummy527)\
**Replies:** 7\
**Last updated:** [February 23, 2022, 3:47am UTC](https://discourse.julialang.org/t/how-to-convert-comma-seperated-number-to-number/76906 "2022-02-23T03:47:59Z")

</div>

Data are read from excel xls file in which some numbers are stored as text and comma-seperated. excel screenshot: Dataframe sreenshot (read using ExcelFiles.jl): I have tried function tryparse or parse, but it doe…

---

## [Interpreting raw memory as a vector of unions](https://discourse.julialang.org/t/interpreting-raw-memory-as-a-vector-of-unions/61128)

<div class="topic-metadata">

**Author:** [@Sheemon7](https://discourse.julialang.org/u/Sheemon7)\
**Replies:** 4\
**Last updated:** [February 23, 2022, 1:24am UTC](https://discourse.julialang.org/t/interpreting-raw-memory-as-a-vector-of-unions/61128 "2022-02-23T01:24:00Z")

</div>

To avoid excessive allocation & garbage collection for performance critical applications, I sometimes use the following approach (simplified): buffer = pointer(Vector{UInt8}(undef, 100)) function alloc(::Type{T}, n, off…

---

## [A Python-like REPL?](https://discourse.julialang.org/t/a-python-like-repl/76944)

<div class="topic-metadata">

**Author:** [@Seif\_Shebl](https://discourse.julialang.org/u/Seif_Shebl)\
**Replies:** 2\
**Last updated:** [February 23, 2022, 12:53am UTC](https://discourse.julialang.org/t/a-python-like-repl/76944 "2022-02-23T00:53:27Z")

</div>

The current Julia REPL behaves like MATLAB’s Command Window, that’s, it displays the output by default unless a line is terminated with a semi-colon ; (except inner-lines). Python’s REPL, on the other hand, doesn’t show …

---

## [Julia causing latency?](https://discourse.julialang.org/t/julia-causing-latency/76938)

<div class="topic-metadata">

**Author:** [@croberts](https://discourse.julialang.org/u/croberts)\
**Replies:** 4\
**Last updated:** [February 22, 2022, 11:15pm UTC](https://discourse.julialang.org/t/julia-causing-latency/76938 "2022-02-22T23:15:52Z")

</div>

I have used Julia for several years, love it. I recently installed Julia 1.7.2 on a new Windows machine. After running some code in the REPL (to rule out VSCode being at fault), I am getting significant latency for all…

---

## [Symmetric matrices](https://discourse.julialang.org/t/symmetric-matrices/4086)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 13\
**Last updated:** [February 22, 2022, 11:04pm UTC](https://discourse.julialang.org/t/symmetric-matrices/4086 "2022-02-22T23:04:12Z")

</div>

According to the docs, we are able to create a Symmetric matrix from another matrix that is already stored in memory: A = eye(3) B = Symmetric(A) sizeof(A) # 72 bytes sizeof(B) # 16 bytes How to populate a Symmetric ma…

---

## [Base.@kwdef](https://discourse.julialang.org/t/base-kwdef/76875)

<div class="topic-metadata">

**Author:** [@lewis](https://discourse.julialang.org/u/lewis)\
**Replies:** 8\
**Last updated:** [February 22, 2022, 11:00pm UTC](https://discourse.julialang.org/t/base-kwdef/76875 "2022-02-22T23:00:49Z")

</div>

I know it’s been discussed before. Can this be made the way structs work? default values in the struct definition; constructors can use keyword arguments. And, of course, constructors can continue to use positional a…

---

## [Where to discuss replacement of Rmath?](https://discourse.julialang.org/t/where-to-discuss-replacement-of-rmath/9671)

<div class="topic-metadata">

**Author:** [@dmbates](https://discourse.julialang.org/u/dmbates)\
**Replies:** 26\
**Last updated:** [February 22, 2022, 10:18pm UTC](https://discourse.julialang.org/t/where-to-discuss-replacement-of-rmath/9671 "2022-02-22T22:18:34Z")

</div>

A long-standing objective related to the Distributions and StatsFuns packages is to provide native Julia versions of various pdf (probability density or mass) and cdf (cumulative distribution) functions. The Rmath packa…

---

## [Broadcasting getindex for a range](https://discourse.julialang.org/t/broadcasting-getindex-for-a-range/76937)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 1\
**Last updated:** [February 22, 2022, 8:57pm UTC](https://discourse.julialang.org/t/broadcasting-getindex-for-a-range/76937 "2022-02-22T20:57:30Z")

</div>

Given vv is a Vector{Vector} shouldn’t broadcasting to get a range getindex.(vv, UnitRange) work ? Let’s say I have: ar = \[\[1,2,3\], \[4,5,6\], \[7,8,9\]\] getindex.(ar, 2:3) ERROR: DimensionMismatch("arrays could not be br…

---

## [Code listing in Makie.jl figure](https://discourse.julialang.org/t/code-listing-in-makie-jl-figure/74395)

<div class="topic-metadata">

**Author:** [@willtebbutt](https://discourse.julialang.org/u/willtebbutt)\
**Replies:** 7\
**Last updated:** [February 22, 2022, 8:54pm UTC](https://discourse.julialang.org/t/code-listing-in-makie-jl-figure/74395 "2022-02-22T20:54:54Z")

</div>

I’m interested in producing a figure using Makie with two sections. One section with a figure, another with a code listing (Julia code, of course). Has anyone tried this before / got any thoughts about how I could go abo…

---

## [Julia Gender Inclusive Coffee meet-up](https://discourse.julialang.org/t/julia-gender-inclusive-coffee-meet-up/76935)

<div class="topic-metadata">

**Author:** [@kimauth](https://discourse.julialang.org/u/kimauth)\
**Replies:** 0\
**Last updated:** [February 22, 2022, 8:31pm UTC](https://discourse.julialang.org/t/julia-gender-inclusive-coffee-meet-up/76935 "2022-02-22T20:31:21Z")

</div>

Hey everyone, Julia Gender Inclusive invites you to another coffee meetup on Sunday, 27th of February at 11AM EST / 4pm UTC / 5pm CET / 9:30 pm IST! Sign-up here for a link to join: https://forms.gle/w1f74sS35JV1vbFy6 T…

---

## [Dedicated threads for handling requests to endpoints with HTTP.jl](https://discourse.julialang.org/t/dedicated-threads-for-handling-requests-to-endpoints-with-http-jl/76339)

<div class="topic-metadata">

**Author:** [@thazhemadam](https://discourse.julialang.org/u/thazhemadam)\
**Replies:** 3\
**Last updated:** [February 22, 2022, 7:47pm UTC](https://discourse.julialang.org/t/dedicated-threads-for-handling-requests-to-endpoints-with-http-jl/76339 "2022-02-22T19:47:23Z")

</div>

Say I’m running a HTTP.jl server, that serves two endpoints /one and /two. Requests to /one will start a computation-based task asynchronously and return a Response with a 200 status code. This task can be assumed to ta…

---

## [Help with runtest](https://discourse.julialang.org/t/help-with-runtest/76898)

<div class="topic-metadata">

**Author:** [@vinod](https://discourse.julialang.org/u/vinod)\
**Replies:** 7\
**Last updated:** [February 22, 2022, 7:24pm UTC](https://discourse.julialang.org/t/help-with-runtest/76898 "2022-02-22T19:24:25Z")

</div>

Hi I am new to julia and trying to create package. I am facing trouble with running the test cases and get the following error. Testing Running tests… ERROR: LoadError: ArgumentError: Package Test not found in curre…

---

## [Segmentation fault when applying PCA to a big dataset on an HPC](https://discourse.julialang.org/t/segmentation-fault-when-applying-pca-to-a-big-dataset-on-an-hpc/76900)

<div class="topic-metadata">

**Author:** [@Ivan](https://discourse.julialang.org/u/Ivan)\
**Replies:** 2\
**Last updated:** [February 22, 2022, 7:15pm UTC](https://discourse.julialang.org/t/segmentation-fault-when-applying-pca-to-a-big-dataset-on-an-hpc/76900 "2022-02-22T19:15:11Z")

</div>

I understand the following may be due to the fact that I am using an HPC remote service. If that’s the case, I would appreciate comments on where to ask this question best. I have a big array (2765 x 12212224), and I wa…

---

## [How to check if a pid is currently running?](https://discourse.julialang.org/t/how-to-check-if-a-pid-is-currently-running/76908)

<div class="topic-metadata">

**Author:** [@taotree](https://discourse.julialang.org/u/taotree)\
**Replies:** 7\
**Last updated:** [February 22, 2022, 6:27pm UTC](https://discourse.julialang.org/t/how-to-check-if-a-pid-is-currently-running/76908 "2022-02-22T18:27:39Z")

</div>

I want to confirm that a specific program is running. The other program can write its pid to a file, so I can read that. Is there an existing API (not platform specific) in Julia to confirm that a certain pid (or process…

---

## [Where to put a bunch of constants?](https://discourse.julialang.org/t/where-to-put-a-bunch-of-constants/76885)

<div class="topic-metadata">

**Author:** [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)\
**Replies:** 3\
**Last updated:** [February 22, 2022, 5:49pm UTC](https://discourse.julialang.org/t/where-to-put-a-bunch-of-constants/76885 "2022-02-22T17:49:07Z")

</div>

Hi everyone. I am developing a set of scripts for geophysics in Julia and at the core of many of my codes I have a bunch of values (maybe they can be consider Julia Constants at some point) but in general they are physi…

---

## [Cubicspline Interpolation where domain is non-uniform array](https://discourse.julialang.org/t/cubicspline-interpolation-where-domain-is-non-uniform-array/63864)

<div class="topic-metadata">

**Author:** [@donkeysaddle](https://discourse.julialang.org/u/donkeysaddle)\
**Replies:** 10\
**Last updated:** [February 22, 2022, 5:30pm UTC](https://discourse.julialang.org/t/cubicspline-interpolation-where-domain-is-non-uniform-array/63864 "2022-02-22T17:30:48Z")

</div>

Perhaps this is the answer to my question: Using CubicSplineInterpolation on a vector (not on a Lazy Array) but wanted to make sure… using Interpolations function f(x) return x/2 end times = \[1,20,100,150,200,238…

---

## [Optim user-supplied gradient and hessian MLE](https://discourse.julialang.org/t/optim-user-supplied-gradient-and-hessian-mle/76848)

<div class="topic-metadata">

**Author:** [@luischanci](https://discourse.julialang.org/u/luischanci)\
**Replies:** 3\
**Last updated:** [February 22, 2022, 5:19pm UTC](https://discourse.julialang.org/t/optim-user-supplied-gradient-and-hessian-mle/76848 "2022-02-22T17:19:10Z")

</div>

I’m moving my MLE class notes to incorporate Julia, so I’m exploring how to incorporate the analytical gradient and hessian into an optimization problem using Optim. I created a toy model to check the commands first. Ho…

---

## [\[ANN\] DLPack.jl - Share CPU and CUDA arrays between Julia and Python](https://discourse.julialang.org/t/ann-dlpack-jl-share-cpu-and-cuda-arrays-between-julia-and-python/76871)

<div class="topic-metadata">

**Author:** [@PabloZubieta](https://discourse.julialang.org/u/PabloZubieta)\
**Replies:** 0\
**Last updated:** [February 21, 2022, 11:01pm UTC](https://discourse.julialang.org/t/ann-dlpack-jl-share-cpu-and-cuda-arrays-between-julia-and-python/76871 "2022-02-21T23:01:29Z")

</div>

Hello, I’m pleased to announce the release of DLPack.jl. DLPack is a C API that has continuously been adopted as a the base protocol for exchanging tensor data structures between different python libraries including JAX,…

---

## [How to wrap a network I/O library? (i.e. how to teach libuv to yield)](https://discourse.julialang.org/t/how-to-wrap-a-network-i-o-library-i-e-how-to-teach-libuv-to-yield/76920)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 0\
**Last updated:** [February 22, 2022, 4:39pm UTC](https://discourse.julialang.org/t/how-to-wrap-a-network-i-o-library-i-e-how-to-teach-libuv-to-yield/76920 "2022-02-22T16:39:41Z")

</div>

from: I can vaguely understand the scheme, but concretely, what should I do, assuming I have these functions wrapped: function \_read!(ptr, fobj, nb, seekloc) @ccall lib.ReadAt(ptr::Ptr{UInt8}, …

---

## [Unitful and Plots, vector return types](https://discourse.julialang.org/t/unitful-and-plots-vector-return-types/76694)

<div class="topic-metadata">

**Author:** [@Asmund\_Hjulstad](https://discourse.julialang.org/u/Asmund_Hjulstad)\
**Replies:** 4\
**Last updated:** [February 22, 2022, 4:23pm UTC](https://discourse.julialang.org/t/unitful-and-plots-vector-return-types/76694 "2022-02-22T16:23:58Z")

</div>

The following behaviour surprised me: I would like to plot with data with units (Using Unitful), but it seems return type declarations causes something to break. Silly example: using Unitful, UnitfulRecipes, Plots fun…

---

## [Layouts of a plot and of the same in a subplot](https://discourse.julialang.org/t/layouts-of-a-plot-and-of-the-same-in-a-subplot/76901)

<div class="topic-metadata">

**Author:** [@maajdl](https://discourse.julialang.org/u/maajdl)\
**Replies:** 2\
**Last updated:** [February 22, 2022, 3:10pm UTC](https://discourse.julialang.org/t/layouts-of-a-plot-and-of-the-same-in-a-subplot/76901 "2022-02-22T15:10:57Z")

</div>

Continuing the discussion from Plot size from subplots sizes ! The discussion was about the layout changes illustrated below. The first plot was good-looking, but the combination in subplots was not. A useful workarou…

---

## [How to group by multiple data types?](https://discourse.julialang.org/t/how-to-group-by-multiple-data-types/76872)

<div class="topic-metadata">

**Author:** [@a.frist](https://discourse.julialang.org/u/a.frist)\
**Replies:** 4\
**Last updated:** [February 22, 2022, 2:45pm UTC](https://discourse.julialang.org/t/how-to-group-by-multiple-data-types/76872 "2022-02-22T14:45:16Z")

</div>

Hello all, I’m a bit new to the Julia programming language and haven’t been able to find an answer that solves my problem. I have the following dataframe: 10×5 DataFrame Row │ DATE TOPIC\_I TOPIC\_J JOINT\_PROB …

---

## [How to create dll file from my julia code via PackageCompiler?](https://discourse.julialang.org/t/how-to-create-dll-file-from-my-julia-code-via-packagecompiler/76702)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 6\
**Last updated:** [February 21, 2022, 7:32pm UTC](https://discourse.julialang.org/t/how-to-create-dll-file-from-my-julia-code-via-packagecompiler/76702 "2022-02-21T19:32:38Z")

</div>

Dear @kristoffer.carlsson I am trying to practice creating a dll file of a simple code called sourceCode.jl defined as below: Base.@ccallable function test()::Cint return(2) end I have created a folder Projectfold…

---

## [Find in an array of custom structs if we have an element with a specific field value or not](https://discourse.julialang.org/t/find-in-an-array-of-custom-structs-if-we-have-an-element-with-a-specific-field-value-or-not/76850)

<div class="topic-metadata">

**Author:** [@Shuvomoy\_Das\_Gupta](https://discourse.julialang.org/u/Shuvomoy_Das_Gupta)\
**Replies:** 4\
**Last updated:** [February 22, 2022, 12:51pm UTC](https://discourse.julialang.org/t/find-in-an-array-of-custom-structs-if-we-have-an-element-with-a-specific-field-value-or-not/76850 "2022-02-22T12:51:29Z")

</div>

Dear All, Is there a neat way to find whether, in an array of custom structs, we have an entry with a specific field value or not (outputs as true or false)? For example, consider the following example. I have a custom…

---

## [Code introspection](https://discourse.julialang.org/t/code-introspection/76734)

<div class="topic-metadata">

**Author:** [@FedeClaudi](https://discourse.julialang.org/u/FedeClaudi)\
**Replies:** 4\
**Last updated:** [February 22, 2022, 9:29am UTC](https://discourse.julialang.org/t/code-introspection/76734 "2022-02-22T09:29:04Z")

</div>

Hi all, I’m working on a Julia terminal application implementing some of python’s awesome rich terminal library. Two of rich’s best features, in my opinion, are inspect which prints out details and methods about a pyth…

---

## [Launch speed](https://discourse.julialang.org/t/launch-speed/76889)

<div class="topic-metadata">

**Author:** [@DanielP](https://discourse.julialang.org/u/DanielP)\
**Replies:** 2\
**Last updated:** [February 22, 2022, 9:17am UTC](https://discourse.julialang.org/t/launch-speed/76889 "2022-02-22T09:17:16Z")

</div>

Hi, I have a question related to Julia launch speed. I have succesfully created a simple module manipulating process data using DataFrames. I made a package. My package now seems to sit in ~.julia\\compiled\\v1.6\<package-n…

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

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