# Latest

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

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

**Page:** 1247

---

## [Ipopt and JuMP - Invalid number in NLP function or derivative](https://discourse.julialang.org/t/ipopt-and-jump-invalid-number-in-nlp-function-or-derivative/69342)

<div class="topic-metadata">

**Author:** [@jaberdeen](https://discourse.julialang.org/u/jaberdeen)\
**Replies:** 4\
**Last updated:** [October 7, 2021, 6:50am UTC](https://discourse.julialang.org/t/ipopt-and-jump-invalid-number-in-nlp-function-or-derivative/69342 "2021-10-07T06:50:38Z")

</div>

We are generalising the following julia code to two or more dimensional grids. The following is the output (for each grid point): "Number of Iterations…: 0 Number of objective function evaluations = 0 N…

---

## [\[GitHub.jl\] Getting the list of languages from a github repository](https://discourse.julialang.org/t/github-jl-getting-the-list-of-languages-from-a-github-repository/62455)

<div class="topic-metadata">

**Author:** [@Azzaare](https://discourse.julialang.org/u/Azzaare)\
**Replies:** 2\
**Last updated:** [June 6, 2021, 1:54am UTC](https://discourse.julialang.org/t/github-jl-getting-the-list-of-languages-from-a-github-repository/62455 "2021-06-06T01:54:39Z")

</div>

I am a bit lost on how to make a custom request to the GitHub API to get the list of languages of a repo. Any idea? The API link is here: Repositories - GitHub Docs

---

## [\[ANN\] ErrorTypes.jl - Rust-like safe errors in Julia](https://discourse.julialang.org/t/ann-errortypes-jl-rust-like-safe-errors-in-julia/53953)

<div class="topic-metadata">

**Author:** [@jakobnissen](https://discourse.julialang.org/u/jakobnissen)\
**Replies:** 14\
**Last updated:** [October 6, 2021, 3:39am UTC](https://discourse.julialang.org/t/ann-errortypes-jl-rust-like-safe-errors-in-julia/53953 "2021-10-06T03:39:39Z")

</div>

I’m pleased to announce the inital 0.1 release of my new package ErrorTypes.jl. If you’re familiar with Rust, ErrorTypes introduces limited versions of Rust’s Option\<T\> and Result\<T, E\> and the recoverable error handlin…

---

## [Why doesn't an argument of type Any match an Int64](https://discourse.julialang.org/t/why-doesnt-an-argument-of-type-any-match-an-int64/69278)

<div class="topic-metadata">

**Author:** [@Soldalma](https://discourse.julialang.org/u/Soldalma)\
**Replies:** 2\
**Last updated:** [October 6, 2021, 11:38pm UTC](https://discourse.julialang.org/t/why-doesnt-an-argument-of-type-any-match-an-int64/69278 "2021-10-06T23:38:23Z")

</div>

I must be missing something about the Julia language, because my perhaps naive logic tells me a parameter of type Any should match an argument of a concrete type. Still, I am getting this message: Closest candidates are…

---

## [Julia can not start inside Atom](https://discourse.julialang.org/t/julia-can-not-start-inside-atom/18923)

<div class="topic-metadata">

**Author:** [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Replies:** 45\
**Last updated:** [October 6, 2021, 11:28pm UTC](https://discourse.julialang.org/t/julia-can-not-start-inside-atom/18923 "2021-10-06T23:28:12Z")

</div>

I can not make Julia run inside Atom. All the time I receive the following alert: Julia could not be started. We tried to launch Julia from: C:\\Users\\user\\AppData\\Local\\Julia-1.0.3\\bin\\julia.exe This path can be ch…

---

## [Calculate the area under the curve based on calculating the area of single polygon](https://discourse.julialang.org/t/calculate-the-area-under-the-curve-based-on-calculating-the-area-of-single-polygon/69330)

<div class="topic-metadata">

**Author:** [@IsraelSI](https://discourse.julialang.org/u/IsraelSI)\
**Replies:** 6\
**Last updated:** [October 6, 2021, 11:12pm UTC](https://discourse.julialang.org/t/calculate-the-area-under-the-curve-based-on-calculating-the-area-of-single-polygon/69330 "2021-10-06T23:12:17Z")

</div>

Hi, sorry I’m new to julia and I’m stuck trying to make based on the function that calculates the area of a polygon to calculate the area under the curve of a strictly non-negative function on a given interval \[𝑎, 𝑏\]. Fo…

---

## [Makie: vlines! and mouse events](https://discourse.julialang.org/t/makie-vlines-and-mouse-events/69321)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 2\
**Last updated:** [October 6, 2021, 8:32pm UTC](https://discourse.julialang.org/t/makie-vlines-and-mouse-events/69321 "2021-10-06T20:32:49Z")

</div>

Hi, another Julia moment which lasts too long. Got stuck when trying to change the manual example to a vertical crosshair: using GLMakie GLMakie.activate!() fig, ax, p = scatter(rand(Point2f0, 100)) pos = Node(\[Point…

---

## [Any way to know the download statistics of packages?](https://discourse.julialang.org/t/any-way-to-know-the-download-statistics-of-packages/15027)

<div class="topic-metadata">

**Author:** [@bicycle1885](https://discourse.julialang.org/u/bicycle1885)\
**Replies:** 12\
**Last updated:** [October 6, 2021, 8:12pm UTC](https://discourse.julialang.org/t/any-way-to-know-the-download-statistics-of-packages/15027 "2021-10-06T20:12:28Z")

</div>

Hi, I’d like to know the download statistics of my packages hosted on GitHub. Before Julia 1.0, the traffic page was a good place to estimate the number of downloads because it shows the number of git clones of the repos…

---

## [Issue updating agent properties - all values are the same! - Agents.jl](https://discourse.julialang.org/t/issue-updating-agent-properties-all-values-are-the-same-agents-jl/69255)

<div class="topic-metadata">

**Author:** [@bfried1](https://discourse.julialang.org/u/bfried1)\
**Replies:** 7\
**Last updated:** [October 6, 2021, 8:04pm UTC](https://discourse.julialang.org/t/issue-updating-agent-properties-all-values-are-the-same-agents-jl/69255 "2021-10-06T20:04:54Z")

</div>

I apologize in advance if the issue is trivial. I’m still learning how to use Agents.jl and I cannot figure out what this issue is. I will post my code and comment around it. The issue is stated below. The packages in …

---

## [Makie: What is a scene?](https://discourse.julialang.org/t/makie-what-is-a-scene/69326)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 2\
**Last updated:** [October 6, 2021, 7:49pm UTC](https://discourse.julialang.org/t/makie-what-is-a-scene/69326 "2021-10-06T19:49:33Z")

</div>

Could not answer the question after reading What is a Scene ? Who can explain in simple terms where scenes fit in a mental picture of Makie? The manual puts them close to a container, the code below suggests them being…

---

## [Grouping consecutive sick days](https://discourse.julialang.org/t/grouping-consecutive-sick-days/69133)

<div class="topic-metadata">

**Author:** [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Replies:** 14\
**Last updated:** [October 6, 2021, 7:09pm UTC](https://discourse.julialang.org/t/grouping-consecutive-sick-days/69133 "2021-10-06T19:09:27Z")

</div>

The following is a “real problem” in the sense that it has been posted in a forum with reference to a real situation. Therefore the starting data are not pretty settled. I have (or almost … missing, in fact, the additi…

---

## [How to resolve \`syntax: too few type parameters specified in "new{...}"\`?](https://discourse.julialang.org/t/how-to-resolve-syntax-too-few-type-parameters-specified-in-new/15766)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 3\
**Last updated:** [October 6, 2021, 6:32pm UTC](https://discourse.julialang.org/t/how-to-resolve-syntax-too-few-type-parameters-specified-in-new/15766 "2021-10-06T18:32:46Z")

</div>

I am trying to define a tree node as a mutable struct in Julia v1.0, But I get the error syntax: too few type parameters specified in "new{...}" below is the MWE. Google points me to this fully switch static parameter …

---

## [Has anyone tried to compile Julia into WASM - seems like this is possible using LLVM](https://discourse.julialang.org/t/has-anyone-tried-to-compile-julia-into-wasm-seems-like-this-is-possible-using-llvm/69042)

<div class="topic-metadata">

**Author:** [@Glen1](https://discourse.julialang.org/u/Glen1)\
**Replies:** 4\
**Last updated:** [October 6, 2021, 6:02pm UTC](https://discourse.julialang.org/t/has-anyone-tried-to-compile-julia-into-wasm-seems-like-this-is-possible-using-llvm/69042 "2021-10-06T18:02:44Z")

</div>

Looking at RUST with WASM. this seems to be compiled into WASM using LLVM and run in the browser - would be good to use julia in the same capacity.

---

## [Quiet Pkg Installation/Precompilation](https://discourse.julialang.org/t/quiet-pkg-installation-precompilation/53796)

<div class="topic-metadata">

**Author:** [@Ian\_Slagle](https://discourse.julialang.org/u/Ian_Slagle)\
**Replies:** 5\
**Last updated:** [October 6, 2021, 4:18pm UTC](https://discourse.julialang.org/t/quiet-pkg-installation-precompilation/53796 "2021-10-06T16:18:24Z")

</div>

Is there a way to quietly install packages through Pkg? Normally, this is not an issue on my own computer, but the output that I get setting up an environment in Google Colab is a lot, so much that not all of it can be s…

---

## [Parallel/distributed k-means clustering replicates](https://discourse.julialang.org/t/parallel-distributed-k-means-clustering-replicates/68963)

<div class="topic-metadata">

**Author:** [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Replies:** 1\
**Last updated:** [October 6, 2021, 3:34pm UTC](https://discourse.julialang.org/t/parallel-distributed-k-means-clustering-replicates/68963 "2021-10-06T15:34:20Z")

</div>

First time trying parallel processing; I’d like to run replicates for the kmeans algorithm in parallel to find a global minimum. Just calling kmeans on some data works fine: using Clustering n\_data\_points = 100000 dat…

---

## [Fft(x,n) when n\>length(x)](https://discourse.julialang.org/t/fft-x-n-when-n-length-x/69308)

<div class="topic-metadata">

**Author:** [@moeinkh88](https://discourse.julialang.org/u/moeinkh88)\
**Replies:** 4\
**Last updated:** [October 6, 2021, 3:15pm UTC](https://discourse.julialang.org/t/fft-x-n-when-n-length-x/69308 "2021-10-06T15:15:22Z")

</div>

I am trying to extract the n-point DFT of using fft for vector X. I am a MATLAB user, so, I run fft(X,n) when length(X)=16 and n=32. But it doesn’t work since fft in FFTW Pkg is limited to the length of vector X. Is ther…

---

## [Skipnothing is missing](https://discourse.julialang.org/t/skipnothing-is-missing/19155)

<div class="topic-metadata">

**Author:** [@galenlynch](https://discourse.julialang.org/u/galenlynch)\
**Replies:** 8\
**Last updated:** [October 6, 2021, 2:59pm UTC](https://discourse.julialang.org/t/skipnothing-is-missing/19155 "2021-10-06T14:59:07Z")

</div>

This is more of a feature request: skipmissing is useful, as would be skipnothing, if it existed. I know it’s easy to filter the nothing values away, but it’s also nice to drop the Union element type, as is achieved with…

---

## [Calculating sub- and super-gradients](https://discourse.julialang.org/t/calculating-sub-and-super-gradients/69306)

<div class="topic-metadata">

**Author:** [@iHany](https://discourse.julialang.org/u/iHany)\
**Replies:** 2\
**Last updated:** [October 6, 2021, 2:07pm UTC](https://discourse.julialang.org/t/calculating-sub-and-super-gradients/69306 "2021-10-06T14:07:34Z")

</div>

Hi, I’d like to know whether there is an easy way of getting sub- or super-gradients in Julia (auto-differentiation of non-differentiable functions…?). Please share related packages :slight\_smile: Thanks.

---

## [Out-of-bounds error when calling map!](https://discourse.julialang.org/t/out-of-bounds-error-when-calling-map/69053)

<div class="topic-metadata">

**Author:** [@JAgho](https://discourse.julialang.org/u/JAgho)\
**Replies:** 17\
**Last updated:** [October 6, 2021, 1:49pm UTC](https://discourse.julialang.org/t/out-of-bounds-error-when-calling-map/69053 "2021-10-06T13:49:46Z")

</div>

I’m using CUDA.jl to carry out some diffusion simulations. It’s a pretty standard setup, but makes fairly heavy use of rem and mod to bin particles to cells in a grid. To this end, we call map! on a pair of F32 CuArrays,…

---

## [\[ANN\] ForecastData: Time Series Datasets for Julia](https://discourse.julialang.org/t/ann-forecastdata-time-series-datasets-for-julia/69285)

<div class="topic-metadata">

**Author:** [@viraltux](https://discourse.julialang.org/u/viraltux)\
**Replies:** 3\
**Last updated:** [October 6, 2021, 1:45pm UTC](https://discourse.julialang.org/t/ann-forecastdata-time-series-datasets-for-julia/69285 "2021-10-06T13:45:10Z")

</div>

ForecastData.lj has been created in the process of decoupling functionality from Forecast.jl . This package handles access to small to medium size time series datasets (in the Megabytes) to be used in Julia. Since the…

---

## [Ctrl-c in Pkg](https://discourse.julialang.org/t/ctrl-c-in-pkg/69268)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 3\
**Last updated:** [October 6, 2021, 1:00pm UTC](https://discourse.julialang.org/t/ctrl-c-in-pkg/69268 "2021-10-06T13:00:59Z")

</div>

What guarantees does Pkg provide if I do Ctrl+c while it’s doing something?

---

## [Any Julia package to compute the Standardized Precipitation Index (SPI)?](https://discourse.julialang.org/t/any-julia-package-to-compute-the-standardized-precipitation-index-spi/69286)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [October 6, 2021, 12:33pm UTC](https://discourse.julialang.org/t/any-julia-package-to-compute-the-standardized-precipitation-index-spi/69286 "2021-10-06T12:33:26Z")

</div>

Any package in Julia to compute the Standardized Precipitation Index (SPI) ? I had a (quick) look at ClimateTools.jl but couldn’t find it there…

---

## [See usage of Channel (i.e. how many items are enqueued)](https://discourse.julialang.org/t/see-usage-of-channel-i-e-how-many-items-are-enqueued/69284)

<div class="topic-metadata">

**Author:** [@torrance](https://discourse.julialang.org/u/torrance)\
**Replies:** 2\
**Last updated:** [October 6, 2021, 11:09am UTC](https://discourse.julialang.org/t/see-usage-of-channel-i-e-how-many-items-are-enqueued/69284 "2021-10-06T11:09:37Z")

</div>

I am using buffered Channels as a stream between different parts of my program, and I’d like to regularly find out how much of a buffered channel is actually used. For example, if the channel is regularly empty, I know …

---

## [Avoid creation of temporaries in non-trivial iterator](https://discourse.julialang.org/t/avoid-creation-of-temporaries-in-non-trivial-iterator/64498)

<div class="topic-metadata">

**Author:** [@mwallerb](https://discourse.julialang.org/u/mwallerb)\
**Replies:** 16\
**Last updated:** [October 6, 2021, 9:23am UTC](https://discourse.julialang.org/t/avoid-creation-of-temporaries-in-non-trivial-iterator/64498 "2021-10-06T09:23:57Z")

</div>

Consider the following Julia “compound” iterator: it merges two iterators, a and b , each of which are assumed to be sorted according to order, to a single ordered sequence: struct MergeSorted{T,A,B,O} a::A b::B…

---

## [Wrapping Templated C++-functions and embedding Julia-functions subject to templates](https://discourse.julialang.org/t/wrapping-templated-c-functions-and-embedding-julia-functions-subject-to-templates/69282)

<div class="topic-metadata">

**Author:** [@Jonas\_Hjulstad](https://discourse.julialang.org/u/Jonas_Hjulstad)\
**Replies:** 0\
**Last updated:** [October 6, 2021, 7:48am UTC](https://discourse.julialang.org/t/wrapping-templated-c-functions-and-embedding-julia-functions-subject-to-templates/69282 "2021-10-06T07:48:56Z")

</div>

I’m looking into the idea of treating instructions as data for an C++ Eigen-algorithm. I already assume that the g+±compiler will be able to resolve the wrapping to Julia using Cxxwrap: GitHub - JuliaInterop/CxxWrap.jl…

---

## [Julia v1.6.3 has been released](https://discourse.julialang.org/t/julia-v1-6-3-has-been-released/68737)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 16\
**Last updated:** [October 6, 2021, 6:50am UTC](https://discourse.julialang.org/t/julia-v1-6-3-has-been-released/68737 "2021-10-06T06:50:40Z")

</div>

Julia version 1.6.3, the third patch release in the 1.6 series of releases, is now available. You can get binaries for glibc Linux (i686, x86-64, AArch64, ARMv7), musl Linux (x86-64), FreeBSD (x86-64), macOS (x86-64), an…

---

## [Matrix operations not symmetric](https://discourse.julialang.org/t/matrix-operations-not-symmetric/69244)

<div class="topic-metadata">

**Author:** [@A\_C](https://discourse.julialang.org/u/A_C)\
**Replies:** 4\
**Last updated:** [October 6, 2021, 6:21am UTC](https://discourse.julialang.org/t/matrix-operations-not-symmetric/69244 "2021-10-06T06:21:14Z")

</div>

Hi. I am relatively new to Julia. Suppose I have a matrix A and I write v = A\[:, 1\]. Now v is a vector as expected. But u = A\[1, :\] is a vector again (I expected u to be adjoint instead of vector). What would the probl…

---

## [Why do I need to re-install Plots after updating Julia?](https://discourse.julialang.org/t/why-do-i-need-to-re-install-plots-after-updating-julia/68864)

<div class="topic-metadata">

**Author:** [@Jerry](https://discourse.julialang.org/u/Jerry)\
**Replies:** 3\
**Last updated:** [October 6, 2021, 6:13am UTC](https://discourse.julialang.org/t/why-do-i-need-to-re-install-plots-after-updating-julia/68864 "2021-10-06T06:13:12Z")

</div>

I just downloaded and installed Julia-1.6.app for macOS (1.6.3 I think), upgrading from 1.5.3. Now when I do using Plots it complains ERROR: ArgumentError: Package Plots not found in current path: Run import Pkg; Pkg.ad…

---

## [Why are files in other folder being loaded instead of the files in the current folder?](https://discourse.julialang.org/t/why-are-files-in-other-folder-being-loaded-instead-of-the-files-in-the-current-folder/69144)

<div class="topic-metadata">

**Author:** [@Soldalma](https://discourse.julialang.org/u/Soldalma)\
**Replies:** 6\
**Last updated:** [October 6, 2021, 6:07am UTC](https://discourse.julialang.org/t/why-are-files-in-other-folder-being-loaded-instead-of-the-files-in-the-current-folder/69144 "2021-10-06T06:07:15Z")

</div>

My project directory was a little crowded and I decided to start a project from scratch in another directory nearby. I followed these steps. Created a new project folder C:\\Dropbox\\Code\\Julia\\Model by running generate…

---

## [For deletion](https://discourse.julialang.org/t/for-deletion/69212)

<div class="topic-metadata">

**Author:** [@Nosferican](https://discourse.julialang.org/u/Nosferican)\
**Replies:** 0\
**Last updated:** [October 5, 2021, 1:52am UTC](https://discourse.julialang.org/t/for-deletion/69212 "2021-10-05T01:52:16Z")

</div>

Got my head around it.

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

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