# Latest

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

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

**Page:** 932

---

## [Alpine+JuMP gives error for quadratic functions](https://discourse.julialang.org/t/alpine-jump-gives-error-for-quadratic-functions/70321)

<div class="topic-metadata">

**Author:** [@blob](https://discourse.julialang.org/u/blob)\
**Replies:** 4\
**Last updated:** [September 7, 2022, 5:54pm UTC](https://discourse.julialang.org/t/alpine-jump-gives-error-for-quadratic-functions/70321 "2022-09-07T17:54:54Z")

</div>

I am using Alpine with JuMP and Alpine fails for quadratic functions. Using the example from nlp3 here: https://github.com/lanl-ansi/Alpine.jl/blob/master/examples/MINLPs/nlp.jl, I have a working example: #Working examp…

---

## [Deleting rows from a dataframe containing stock symbols not found in another dataframe](https://discourse.julialang.org/t/deleting-rows-from-a-dataframe-containing-stock-symbols-not-found-in-another-dataframe/86882)

<div class="topic-metadata">

**Author:** [@Nash](https://discourse.julialang.org/u/Nash)\
**Replies:** 5\
**Last updated:** [September 7, 2022, 5:52pm UTC](https://discourse.julialang.org/t/deleting-rows-from-a-dataframe-containing-stock-symbols-not-found-in-another-dataframe/86882 "2022-09-07T17:52:58Z")

</div>

I have two dataframes, df\_A, and df\_B, each containing stock data (of different kinds) and each containing a column of stock symbols. However, df\_A is longer than df\_B, because it contains more stock symbols than df\_B. H…

---

## [Parquet2 RFC: removing \`CacheVector\`](https://discourse.julialang.org/t/parquet2-rfc-removing-cachevector/86903)

<div class="topic-metadata">

**Author:** [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)\
**Replies:** 0\
**Last updated:** [September 7, 2022, 5:13pm UTC](https://discourse.julialang.org/t/parquet2-rfc-removing-cachevector/86903 "2022-09-07T17:13:41Z")

</div>

When I wrote Parquet2.jl, I had what at the time I thought was a terribly clever idea about only loading specific subsets of the full buffer. My motivation for this was based on the observation that, while parquet is al…

---

## [\[PowerModelsDistribution\] Error in indexing during Kron reduction with 1ph loads](https://discourse.julialang.org/t/powermodelsdistribution-error-in-indexing-during-kron-reduction-with-1ph-loads/86900)

<div class="topic-metadata">

**Author:** [@apigott](https://discourse.julialang.org/u/apigott)\
**Replies:** 0\
**Last updated:** [September 7, 2022, 4:10pm UTC](https://discourse.julialang.org/t/powermodelsdistribution-error-in-indexing-during-kron-reduction-with-1ph-loads/86900 "2022-09-07T16:10:24Z")

</div>

Back again with another question! I’m trying to implement the IEEE-13 bus in PMD and I’m getting an issue with indexing when using the test case defined in the OpenDSS program files. On import, before adding the vbounds…

---

## [Profiling and line numbers](https://discourse.julialang.org/t/profiling-and-line-numbers/86897)

<div class="topic-metadata">

**Author:** [@JackStrauss](https://discourse.julialang.org/u/JackStrauss)\
**Replies:** 6\
**Last updated:** [September 7, 2022, 4:39pm UTC](https://discourse.julialang.org/t/profiling-and-line-numbers/86897 "2022-09-07T16:39:18Z")

</div>

Hello I was looking to find where our code spends all its time, and tried Profile.print(). It gave me a few thousand lines of output. I am sure the answer to my query is in there, but I don’t know where to start looking…

---

## [Functions with two variables](https://discourse.julialang.org/t/functions-with-two-variables/86878)

<div class="topic-metadata">

**Author:** [@Eric.O](https://discourse.julialang.org/u/Eric.O)\
**Replies:** 4\
**Last updated:** [September 7, 2022, 4:41pm UTC](https://discourse.julialang.org/t/functions-with-two-variables/86878 "2022-09-07T16:41:50Z")

</div>

Is there any way I can easily plot this function with two variables in Julia? I need some guidance, please.

---

## [Navier code](https://discourse.julialang.org/t/navier-code/86898)

<div class="topic-metadata">

**Author:** [@simonluzara](https://discourse.julialang.org/u/simonluzara)\
**Replies:** 5\
**Last updated:** [September 7, 2022, 3:59pm UTC](https://discourse.julialang.org/t/navier-code/86898 "2022-09-07T15:59:16Z")

</div>

the site suggested I should send you a pm. Hope it’s fine with you. Why did you say the code it wrong? Do you have any comment looking at it? It is a simple annular flow with harmonic compressible boundary conditions (…

---

## [Distributed.jl, DistributedArray.jl with InfiniBand cluster](https://discourse.julialang.org/t/distributed-jl-distributedarray-jl-with-infiniband-cluster/80049)

<div class="topic-metadata">

**Author:** [@ultrapoci](https://discourse.julialang.org/u/ultrapoci)\
**Replies:** 19\
**Last updated:** [September 7, 2022, 3:51pm UTC](https://discourse.julialang.org/t/distributed-jl-distributedarray-jl-with-infiniband-cluster/80049 "2022-09-07T15:51:54Z")

</div>

I’m developing an algorithm using Distributed.jl and DistributedArrays.jl, and I’m supposed to run this algorithm on a cluster supercomputer. I’ve recently been told that it uses Infiniband to connect internal nodes with…

---

## [Revise.jl bug when updating a package (on Windows)](https://discourse.julialang.org/t/revise-jl-bug-when-updating-a-package-on-windows/85941)

<div class="topic-metadata">

**Author:** [@Brad\_Carman](https://discourse.julialang.org/u/Brad_Carman)\
**Replies:** 7\
**Last updated:** [September 7, 2022, 3:37pm UTC](https://discourse.julialang.org/t/revise-jl-bug-when-updating-a-package-on-windows/85941 "2022-09-07T15:37:13Z")

</div>

If I run pkg"update PkgA" when I already have PkgA loaded, is there anyway to ask Revise to start using the new version?

---

## [Memory challenges for Flux on Resnet](https://discourse.julialang.org/t/memory-challenges-for-flux-on-resnet/85385)

<div class="topic-metadata">

**Author:** [@jeremiedb](https://discourse.julialang.org/u/jeremiedb)\
**Replies:** 8\
**Last updated:** [September 7, 2022, 3:22pm UTC](https://discourse.julialang.org/t/memory-challenges-for-flux-on-resnet/85385 "2022-09-07T15:22:55Z")

</div>

I’m attempting to reproduce Resnet (from Metalhead.jl) on ImageNet performance through simple demos for a single GPU setup (I’m on a RTX A4000, 16Bg, ~6000 CUDA cores) and stumbled upon 2 memory related challenges. A fi…

---

## [Need some help in understanding zygote gradient](https://discourse.julialang.org/t/need-some-help-in-understanding-zygote-gradient/86781)

<div class="topic-metadata">

**Author:** [@tiZ](https://discourse.julialang.org/u/tiZ)\
**Replies:** 2\
**Last updated:** [September 7, 2022, 3:18pm UTC](https://discourse.julialang.org/t/need-some-help-in-understanding-zygote-gradient/86781 "2022-09-07T15:18:27Z")

</div>

Hi, I met some troubles in understanding zygote gradient. for example: I plan to get the gradient for f(x) = x^2 at x = 5, and also sum the result of f(x) for each time let result = 0 f(x) = begin a = x^2 …

---

## [Nonorthogonal axes in Makie (or maybe in other plotting package)](https://discourse.julialang.org/t/nonorthogonal-axes-in-makie-or-maybe-in-other-plotting-package/86749)

<div class="topic-metadata">

**Author:** [@fedoroff](https://discourse.julialang.org/u/fedoroff)\
**Replies:** 14\
**Last updated:** [September 7, 2022, 3:05pm UTC](https://discourse.julialang.org/t/nonorthogonal-axes-in-makie-or-maybe-in-other-plotting-package/86749 "2022-09-07T15:05:45Z")

</div>

Is it possible to make a plot (both in 2d and 3d) using non-orthogonal axes? Something similar to this (link) or this (link) (though here simple image transformation is not enough for me; I want the axes transform…

---

## [Flushing ZMQ pipe before use?](https://discourse.julialang.org/t/flushing-zmq-pipe-before-use/86893)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 2\
**Last updated:** [September 7, 2022, 2:22pm UTC](https://discourse.julialang.org/t/flushing-zmq-pipe-before-use/86893 "2022-09-07T14:22:29Z")

</div>

Hi all this is very strange. I am using ZMQ and after I have finished with it I shut it down using close BUT when I start it up again there’s “END” in there??? using ZMQ context = Context() socket = Socket(context, P…

---

## [\`Revise.jl\` dosn't work on \`include\`ed files](https://discourse.julialang.org/t/revise-jl-dosnt-work-on-include-ed-files/26872)

<div class="topic-metadata">

**Author:** [@affans](https://discourse.julialang.org/u/affans)\
**Replies:** 5\
**Last updated:** [September 7, 2022, 1:04pm UTC](https://discourse.julialang.org/t/revise-jl-dosnt-work-on-include-ed-files/26872 "2022-09-07T13:04:15Z")

</div>

I am having trouble with Revise.jl. I have files setup like this: Tvaccine.jl module Tvaccine using Parameters using Distributions include("entities.jl") export main, world function main() …

---

## [ML estimation of MA(q) model?](https://discourse.julialang.org/t/ml-estimation-of-ma-q-model/86883)

<div class="topic-metadata">

**Author:** [@mcreel](https://discourse.julialang.org/u/mcreel)\
**Replies:** 0\
**Last updated:** [September 7, 2022, 1:00pm UTC](https://discourse.julialang.org/t/ml-estimation-of-ma-q-model/86883 "2022-09-07T13:00:42Z")

</div>

I’m looking for code to estimate a Gaussian MA(2) model by full information maximum likelihood. I have found several Kalman filtering packages that could do the job, but I was wondering if anyone has code for the special…

---

## [Help with boundary-value problem](https://discourse.julialang.org/t/help-with-boundary-value-problem/86862)

<div class="topic-metadata">

**Author:** [@BJR](https://discourse.julialang.org/u/BJR)\
**Replies:** 5\
**Last updated:** [September 7, 2022, 12:09pm UTC](https://discourse.julialang.org/t/help-with-boundary-value-problem/86862 "2022-09-07T12:09:01Z")

</div>

I have been trying to solve this (see image) equation 1 using the finite difference method with the initial conditions as given in equations (2,3 & 4). Note that the initial condition is z = -2400 nm for all values of th…

---

## [Speedup optimization in nested for loop](https://discourse.julialang.org/t/speedup-optimization-in-nested-for-loop/86880)

<div class="topic-metadata">

**Author:** [@tsojtc](https://discourse.julialang.org/u/tsojtc)\
**Replies:** 1\
**Last updated:** [September 7, 2022, 12:05pm UTC](https://discourse.julialang.org/t/speedup-optimization-in-nested-for-loop/86880 "2022-09-07T12:05:43Z")

</div>

I have adapted some python code that takes data which is G x N, and returns the (strictly upper triangular) matrix cost\_permuted whose (i,j)-th entry represents the minimum of cooscillation\_distance(data\[i, :\], data\[j, :…

---

## [Keeping the syntax and the need to memorise syntax simple](https://discourse.julialang.org/t/keeping-the-syntax-and-the-need-to-memorise-syntax-simple/44623)

<div class="topic-metadata">

**Author:** [@Nav](https://discourse.julialang.org/u/Nav)\
**Replies:** 99\
**Last updated:** [September 7, 2022, 10:49am UTC](https://discourse.julialang.org/t/keeping-the-syntax-and-the-need-to-memorise-syntax-simple/44623 "2022-09-07T10:49:53Z")

</div>

Hello. I’m new to Julia and am glad y’all have created such a programming language. However, when learning the syntax, I had the same problem as mentioned here. Programming is a bit less stressful when certain symbols a…

---

## [Errors with package Plots, error message attached Plots v1.32.0](https://discourse.julialang.org/t/errors-with-package-plots-error-message-attached-plots-v1-32-0/86876)

<div class="topic-metadata">

**Author:** [@pjh35](https://discourse.julialang.org/u/pjh35)\
**Replies:** 0\
**Last updated:** [September 7, 2022, 10:33am UTC](https://discourse.julialang.org/t/errors-with-package-plots-error-message-attached-plots-v1-32-0/86876 "2022-09-07T10:33:38Z")

</div>

Precompiling project… ✗ GR ✗ Plots ✗ StatsPlots 0 dependencies successfully precompiled in 27 seconds. 300 already precompiled. 3 dependencies errored. To see a full report either run import Pkg; Pkg.precompile() or…

---

## [BoundsError: attempt to access 25×10 Matrix{Float64} at index \[2, 21\]](https://discourse.julialang.org/t/boundserror-attempt-to-access-25x10-matrix-float64-at-index-2-21/86869)

<div class="topic-metadata">

**Author:** [@Eric.O](https://discourse.julialang.org/u/Eric.O)\
**Replies:** 8\
**Last updated:** [September 7, 2022, 10:02am UTC](https://discourse.julialang.org/t/boundserror-attempt-to-access-25x10-matrix-float64-at-index-2-21/86869 "2022-09-07T10:02:31Z")

</div>

I have written a code with the aim of getting a 25×10 Matrix at the final output but this doesnt seem to be working for me. I tried correcting this for the past days but I think I have a problem with my for loop. I kindl…

---

## [Should 1^x == 1?](https://discourse.julialang.org/t/should-1-x-1/77529)

<div class="topic-metadata">

**Author:** [@Andrea\_Pagnani](https://discourse.julialang.org/u/Andrea_Pagnani)\
**Replies:** 6\
**Last updated:** [September 7, 2022, 9:51am UTC](https://discourse.julialang.org/t/should-1-x-1/77529 "2022-09-07T09:51:54Z")

</div>

Dearests, using Symbolics @variables p, α, N D = Differential(α) D((p^α + 1 - p)^N) / log(p) |\> expand\_derivatives |\> x -\> substitute(x, α =\> 1) |\> simplify correctly returns N\*p\*(1^(N - 1)). I was wondering if a subs…

---

## [Making a task.sticky = false run in any thread](https://discourse.julialang.org/t/making-a-task-sticky-false-run-in-any-thread/41396)

<div class="topic-metadata">

**Author:** [@Leandro\_Bataglia](https://discourse.julialang.org/u/Leandro_Bataglia)\
**Replies:** 2\
**Last updated:** [September 7, 2022, 8:48am UTC](https://discourse.julialang.org/t/making-a-task-sticky-false-run-in-any-thread/41396 "2022-09-07T08:48:33Z")

</div>

I was experimenting with multithreading to learn more about Julia’s multithreading capabilities. I tried to replicate the @spawn steps with ordinary Task creation: function prime\_check(n) for i = 2:n/2 if n%…

---

## [Path to CUDA driver](https://discourse.julialang.org/t/path-to-cuda-driver/86817)

<div class="topic-metadata">

**Author:** [@yoshi](https://discourse.julialang.org/u/yoshi)\
**Replies:** 1\
**Last updated:** [September 7, 2022, 8:44am UTC](https://discourse.julialang.org/t/path-to-cuda-driver/86817 "2022-09-07T08:44:09Z")

</div>

I’m trying to use julia in an HPC environment. I load the CUDA driver using slurm’s “module” functionality. I can see where it is in the $PATH variable. But when I go to run “pkg\> test CUDA” I get warnings saying “This v…

---

## [Read ASCII file in Pluto (convert a Vector{UInt} to a Vector{String} similar to readlines)](https://discourse.julialang.org/t/read-ascii-file-in-pluto-convert-a-vector-uint-to-a-vector-string-similar-to-readlines/86591)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 5\
**Last updated:** [September 7, 2022, 4:54am UTC](https://discourse.julialang.org/t/read-ascii-file-in-pluto-convert-a-vector-uint-to-a-vector-string-similar-to-readlines/86591 "2022-09-07T04:54:24Z")

</div>

I am reading data into Pluto from an ASCII file. I note that when I use the PlutoUI command @bind name PlutoUI.FilePicker(\[MIME("text/plain")\]) that it returns both the file name and the data in some format. What I w…

---

## [Modelling an ODE](https://discourse.julialang.org/t/modelling-an-ode/86861)

<div class="topic-metadata">

**Author:** [@qweqweqwe](https://discourse.julialang.org/u/qweqweqwe)\
**Replies:** 4\
**Last updated:** [September 7, 2022, 2:11am UTC](https://discourse.julialang.org/t/modelling-an-ode/86861 "2022-09-07T02:11:39Z")

</div>

Dear Julia users, I am trying to simulate the behaivour of the particles interacting with Lennard - Jones potential, but, at last, it seems to be not correct. using DifferentialEquations, Plots, Interact t=t+1 N=20 #Nu…

---

## [MarketData does not return any data with an error in HTTP request() call](https://discourse.julialang.org/t/marketdata-does-not-return-any-data-with-an-error-in-http-request-call/86821)

<div class="topic-metadata">

**Author:** [@ivoytov](https://discourse.julialang.org/u/ivoytov)\
**Replies:** 4\
**Last updated:** [September 7, 2022, 12:44am UTC](https://discourse.julialang.org/t/marketdata-does-not-return-any-data-with-an-error-in-http-request-call/86821 "2022-09-07T00:44:57Z")

</div>

I just tried using the MarketData package, and even the basic command returns an error. I’ve tried passing a symbol or even a symbol with a custom YahooOpt struct and also getting the same error. Weirdly it seems to be h…

---

## [Solving 2D poisson equation in polar coordinates (finite differences)](https://discourse.julialang.org/t/solving-2d-poisson-equation-in-polar-coordinates-finite-differences/74280)

<div class="topic-metadata">

**Author:** [@Aran](https://discourse.julialang.org/u/Aran)\
**Replies:** 19\
**Last updated:** [June 7, 2022, 1:47am UTC](https://discourse.julialang.org/t/solving-2d-poisson-equation-in-polar-coordinates-finite-differences/74280 "2022-06-07T01:47:03Z")

</div>

Hello all, I am looking to solve the following poisson equation \\nabla^2 \\psi = -\\omega \\quad \\text{and} \\quad \\nabla^2 = \\frac{\\partial ^2}{{\\partial \\rho^2 }} + \\frac{1}{\\rho }\\frac{\\partial}{\\partial \\rho} + \\frac{…

---

## [Nlp examples of using wordtokenizers.jil for email addresses](https://discourse.julialang.org/t/nlp-examples-of-using-wordtokenizers-jil-for-email-addresses/86859)

<div class="topic-metadata">

**Author:** [@bww00](https://discourse.julialang.org/u/bww00)\
**Replies:** 0\
**Last updated:** [September 6, 2022, 9:15pm UTC](https://discourse.julialang.org/t/nlp-examples-of-using-wordtokenizers-jil-for-email-addresses/86859 "2022-09-06T21:15:55Z")

</div>

Does anyone have examples for using WordTokenizers.jil for email addresses Thanks

---

## [Package naming policies for Julia packages within conda-forge](https://discourse.julialang.org/t/package-naming-policies-for-julia-packages-within-conda-forge/86659)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 15\
**Last updated:** [September 6, 2022, 8:50pm UTC](https://discourse.julialang.org/t/package-naming-policies-for-julia-packages-within-conda-forge/86659 "2022-09-06T20:50:18Z")

</div>

We have a few cases of Python packages depending on Julia packages and vice versa. I’ve posed the question about what to call Julia packages within conda-forge so that they may be referred to as explicitly dependencies. …

---

## [Reducing set of cartesian coordinates due to symmetry](https://discourse.julialang.org/t/reducing-set-of-cartesian-coordinates-due-to-symmetry/86783)

<div class="topic-metadata">

**Author:** [@blackeneth](https://discourse.julialang.org/u/blackeneth)\
**Replies:** 5\
**Last updated:** [September 6, 2022, 8:31pm UTC](https://discourse.julialang.org/t/reducing-set-of-cartesian-coordinates-due-to-symmetry/86783 "2022-09-06T20:31:47Z")

</div>

My Question: I have written a Julia function that does this reduction (see below). It works. However, I have a feeling, that this being Julia, that there is an easier, cleverer, or more efficient method to reduce this …

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

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