# Latest

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

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

**Page:** 1460

---

## [Mouse events + Luxor](https://discourse.julialang.org/t/mouse-events-luxor/57184)

<div class="topic-metadata">

**Author:** [@aferref](https://discourse.julialang.org/u/aferref)\
**Replies:** 2\
**Last updated:** [March 15, 2021, 12:35pm UTC](https://discourse.julialang.org/t/mouse-events-luxor/57184 "2021-03-15T12:35:09Z")

</div>

Hello, I need to get the coordinates of the mouse using Luxor package but I have not found anything in the documentation. Is it posible?. I would like to make an animation like in Processing with @play of Luxor. Best r…

---

## [Best practice for Flux.jl: how to untrack gradient?](https://discourse.julialang.org/t/best-practice-for-flux-jl-how-to-untrack-gradient/57156)

<div class="topic-metadata">

**Author:** [@iHany](https://discourse.julialang.org/u/iHany)\
**Replies:** 1\
**Last updated:** [March 15, 2021, 12:33pm UTC](https://discourse.julialang.org/t/best-practice-for-flux-jl-how-to-untrack-gradient/57156 "2021-03-15T12:33:45Z")

</div>

This question is based on the previous question. I found that it’s hard to incorporate Convex.jl and Flux.jl. So, I tried to “approximate” the solution by untracking gradients of the solution of Convex.jl from Flux.jl …

---

## [Efficient popnfirst!?](https://discourse.julialang.org/t/efficient-popnfirst/57190)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 12\
**Last updated:** [March 15, 2021, 12:29pm UTC](https://discourse.julialang.org/t/efficient-popnfirst/57190 "2021-03-15T12:29:38Z")

</div>

Hi, I was wondering if it exists an efficient implementation of popfirst! for an array that allows a n argument to request multiple pops at once (instead of calling popfirst! n times). Like popfirst!(a::Array, n::Int =…

---

## [Correct way to do multiple variable assignments](https://discourse.julialang.org/t/correct-way-to-do-multiple-variable-assignments/30242)

<div class="topic-metadata">

**Author:** [@duncanam](https://discourse.julialang.org/u/duncanam)\
**Replies:** 5\
**Last updated:** [March 15, 2021, 12:26pm UTC](https://discourse.julialang.org/t/correct-way-to-do-multiple-variable-assignments/30242 "2021-03-15T12:26:23Z")

</div>

I am trying to find out the right way to do something like this: a,b,c = 1,2,3 or perhaps a,b,c = (1,2,3) I am seeing that this thread says that the left hand side is actually being interpreted as (a,b,c) = ... so …

---

## [GAMS Display Statements in JuMP](https://discourse.julialang.org/t/gams-display-statements-in-jump/57192)

<div class="topic-metadata">

**Author:** [@GraceMabele](https://discourse.julialang.org/u/GraceMabele)\
**Replies:** 0\
**Last updated:** [March 15, 2021, 12:03pm UTC](https://discourse.julialang.org/t/gams-display-statements-in-jump/57192 "2021-03-15T12:03:56Z")

</div>

Hello, GAMS has solver display statements that display the solver outputs for primal or dual variables. It displays them in dimensional tables with appropriate headings. How can I do the same in Julia/JuMP?

---

## [Streaming replace of file content before reading into lines](https://discourse.julialang.org/t/streaming-replace-of-file-content-before-reading-into-lines/56666)

<div class="topic-metadata">

**Author:** [@JuergenD](https://discourse.julialang.org/u/JuergenD)\
**Replies:** 3\
**Last updated:** [March 15, 2021, 11:41am UTC](https://discourse.julialang.org/t/streaming-replace-of-file-content-before-reading-into-lines/56666 "2021-03-15T11:41:12Z")

</div>

Sorry, it seems to be a simple question, but I’m not able to figure out how to do it in Julia. We receive text files, but they have ‘\\01’ or ‘\\00’ as newline. We’d like read (stream) the file content, map ‘\\01’ to ‘\\r’ a…

---

## [Tips for fast parsing of "ad-hoc" protocol](https://discourse.julialang.org/t/tips-for-fast-parsing-of-ad-hoc-protocol/56718)

<div class="topic-metadata">

**Author:** [@DrChainsaw](https://discourse.julialang.org/u/DrChainsaw)\
**Replies:** 3\
**Last updated:** [March 15, 2021, 9:52am UTC](https://discourse.julialang.org/t/tips-for-fast-parsing-of-ad-hoc-protocol/56718 "2021-03-15T09:52:27Z")

</div>

I’m in the process of trying to implement a fast-ish protocol parser/reader/whatever for a (from what I can tell) ad-hoc:ish protocol. Use case for context is to speed up a ‘let’s start this before lunch and maybe it’s d…

---

## [Access array elements in 'strided groups'](https://discourse.julialang.org/t/access-array-elements-in-strided-groups/57122)

<div class="topic-metadata">

**Author:** [@DrChainsaw](https://discourse.julialang.org/u/DrChainsaw)\
**Replies:** 2\
**Last updated:** [March 15, 2021, 9:40am UTC](https://discourse.julialang.org/t/access-array-elements-in-strided-groups/57122 "2021-03-15T09:40:05Z")

</div>

Sorry for confusing terminology, MWE probably makes it clearer function viewrows(data::Vector, start, stop, ncol) datamat = reshape(data, :, ncol) dataview = @view datamat\[start:stop, :\] return reshape(datav…

---

## [Hadamard.jl and fwht()](https://discourse.julialang.org/t/hadamard-jl-and-fwht/57185)

<div class="topic-metadata">

**Author:** [@vlederer](https://discourse.julialang.org/u/vlederer)\
**Replies:** 0\
**Last updated:** [March 15, 2021, 9:30am UTC](https://discourse.julialang.org/t/hadamard-jl-and-fwht/57185 "2021-03-15T09:30:46Z")

</div>

Hi, in order to use fwht() function from Hadamard.jl package, I have to resize the input vector A into a vector tempA of a length that can be write as a power of two. I am doing this in the srht() function below at row 2…

---

## [MethodError: no method matching similar\_array\_type](https://discourse.julialang.org/t/methoderror-no-method-matching-similar-array-type/57154)

<div class="topic-metadata">

**Author:** [@javiera\_vergara](https://discourse.julialang.org/u/javiera_vergara)\
**Replies:** 1\
**Last updated:** [March 15, 2021, 9:15am UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-similar-array-type/57154 "2021-03-15T09:15:52Z")

</div>

Hi there, I am running my code and have the following error: MethodError: no method matching similar\_array\_type(::Type{JuMP.Containers.DenseAxisArray{VariableRef,1,Tuple{UnitRange{Int64}},Tuple{Dict{Int64,Int64}}}}, ::…

---

## [Orthogonalize.jl](https://discourse.julialang.org/t/orthogonalize-jl/57181)

<div class="topic-metadata">

**Author:** [@vlederer](https://discourse.julialang.org/u/vlederer)\
**Replies:** 0\
**Last updated:** [March 15, 2021, 8:57am UTC](https://discourse.julialang.org/t/orthogonalize-jl/57181 "2021-03-15T08:57:53Z")

</div>

Hi, using orthogonalize.jl from IterativeSolvers.jl I made some performance plots (dodgeTPSbench.png attached) where “ON” tags refers to the julia internal function orthogonalize\_and\_normalize!() and MGS referst to Modif…

---

## [How about a great hand note type of a static site for Julia?](https://discourse.julialang.org/t/how-about-a-great-hand-note-type-of-a-static-site-for-julia/57177)

<div class="topic-metadata">

**Author:** [@FahimFBA](https://discourse.julialang.org/u/FahimFBA)\
**Replies:** 2\
**Last updated:** [March 15, 2021, 8:44am UTC](https://discourse.julialang.org/t/how-about-a-great-hand-note-type-of-a-static-site-for-julia/57177 "2021-03-15T08:44:52Z")

</div>

I want to write a complete book/static site on GitHub about Julia Language , from the basics to the advanced gradually. I have a plan to write a complete hand note on Julia, in both English and Bengali (Bengali would be …

---

## [Input Type](https://discourse.julialang.org/t/input-type/56716)

<div class="topic-metadata">

**Author:** [@vlederer](https://discourse.julialang.org/u/vlederer)\
**Replies:** 2\
**Last updated:** [March 15, 2021, 8:30am UTC](https://discourse.julialang.org/t/input-type/56716 "2021-03-15T08:30:49Z")

</div>

Hi, in a solver framework I am using a custom function which takes Array{\<:\*\*AbstractFloat,\*\*1} as input. In practice, This AbstractFloat can be either Float32 or Float64. In terms of performances, should I create two f…

---

## [How to use julia module as libary from Python?](https://discourse.julialang.org/t/how-to-use-julia-module-as-libary-from-python/57160)

<div class="topic-metadata">

**Author:** [@morphism](https://discourse.julialang.org/u/morphism)\
**Replies:** 2\
**Last updated:** [March 15, 2021, 8:12am UTC](https://discourse.julialang.org/t/how-to-use-julia-module-as-libary-from-python/57160 "2021-03-15T08:12:41Z")

</div>

Hello, I have my own machine learning library done using Julia language. I want my clients to use my machine learning library using Python 3.x That is, my clients want to executes Python 3.x and import my machine learn…

---

## [Sorting a sparse axis array in JuMP](https://discourse.julialang.org/t/sorting-a-sparse-axis-array-in-jump/57167)

<div class="topic-metadata">

**Author:** [@priod](https://discourse.julialang.org/u/priod)\
**Replies:** 3\
**Last updated:** [March 15, 2021, 7:23am UTC](https://discourse.julialang.org/t/sorting-a-sparse-axis-array-in-jump/57167 "2021-03-15T07:23:41Z")

</div>

Hi, I am using the JuMP model, after the optimization process, I have a sparse axis array, I need to sort this array in the descending direction. How can I sort this? Thanking you in advance for the suggestions. The…

---

## [Pycharm with Julia 1.0?](https://discourse.julialang.org/t/pycharm-with-julia-1-0/17459)

<div class="topic-metadata">

**Author:** [@Juan](https://discourse.julialang.org/u/Juan)\
**Replies:** 11\
**Last updated:** [March 15, 2021, 4:43am UTC](https://discourse.julialang.org/t/pycharm-with-julia-1-0/17459 "2021-03-15T04:43:12Z")

</div>

The only GUI I’ve found so far working with Julia 1.0 is Juno, but it’s quite slow. I’ve been looking for Jupyter and VS Code alternatives and found Pycharm. Has anyone tried Pycharm with Julia 1.0? It’s supposed to w…

---

## [Random number and parallel execution](https://discourse.julialang.org/t/random-number-and-parallel-execution/57024)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 24\
**Last updated:** [March 15, 2021, 12:13am UTC](https://discourse.julialang.org/t/random-number-and-parallel-execution/57024 "2021-03-15T00:13:52Z")

</div>

As a fork of this thread I created a MWE that illustrates a behaviour I have seen frequently and which, clearly, I do not understand. First, let us sum serially and in parallel some simple computation that does not invo…

---

## [I got a really long error stack. I can't see the context and what the actual error](https://discourse.julialang.org/t/i-got-a-really-long-error-stack-i-cant-see-the-context-and-what-the-actual-error/57147)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 1\
**Last updated:** [March 15, 2021, 12:08am UTC](https://discourse.julialang.org/t/i-got-a-really-long-error-stack-i-cant-see-the-context-and-what-the-actual-error/57147 "2021-03-15T00:08:49Z")

</div>

I got a really long error stack. I can’t see the context and what the actual error was in the REPL. How should I make the REPL “longer” so I can scroll up more to see the error and the context of the error? I’m using VSC…

---

## [Making string to float conversion faster?](https://discourse.julialang.org/t/making-string-to-float-conversion-faster/57146)

<div class="topic-metadata">

**Author:** [@purplishrock](https://discourse.julialang.org/u/purplishrock)\
**Replies:** 16\
**Last updated:** [March 14, 2021, 11:31pm UTC](https://discourse.julialang.org/t/making-string-to-float-conversion-faster/57146 "2021-03-14T23:31:16Z")

</div>

i have to read a 50,000,000 line file and it’s currently taking about 1.5s/million lines, which means it takes on the order of 80s to pull in the whole file (I do have to mention that my fairly non-trivial math on the 50…

---

## [Passing 'global' functions](https://discourse.julialang.org/t/passing-global-functions/57140)

<div class="topic-metadata">

**Author:** [@jovansam](https://discourse.julialang.org/u/jovansam)\
**Replies:** 2\
**Last updated:** [March 14, 2021, 10:27pm UTC](https://discourse.julialang.org/t/passing-global-functions/57140 "2021-03-14T22:27:29Z")

</div>

It is recommended to pass global variables to functions. What I wonder is whether it is good practice to pass functions as well. These functions can be declared in global scope or in outer (relative to an inner) scope. I…

---

## [Couple of questions about namedpipes](https://discourse.julialang.org/t/couple-of-questions-about-namedpipes/57012)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 0\
**Last updated:** [March 12, 2021, 10:34am UTC](https://discourse.julialang.org/t/couple-of-questions-about-namedpipes/57012 "2021-03-12T10:34:31Z")

</div>

Hey All :slight\_smile: I’m trying to communicate from Julia to Python via namedpipes. I open a pipe in julia julia\> s = listen("\\\\\\\\.\\\\pipe\\\\p123") Sockets.PipeServer(Base.Libc.WindowsRawSocket(0x0000000000000708) acti…

---

## [GPU gradient issues with matrix tranpose](https://discourse.julialang.org/t/gpu-gradient-issues-with-matrix-tranpose/57145)

<div class="topic-metadata">

**Author:** [@JLDC](https://discourse.julialang.org/u/JLDC)\
**Replies:** 0\
**Last updated:** [March 14, 2021, 7:23pm UTC](https://discourse.julialang.org/t/gpu-gradient-issues-with-matrix-tranpose/57145 "2021-03-14T19:23:56Z")

</div>

Hello, I recently stumbled upon the following issue: using Flux m = Chain( Dense(100, 10, relu), Dense(10, 10)) |\> gpu s = (X = gpu(rand(100)), k = 0.99, y = gpu(rand(10))) # Works fine gs = gradient(() -\> log(s.k \*…

---

## [Is there an reinforcement learning gym like OpenAI provides?](https://discourse.julialang.org/t/is-there-an-reinforcement-learning-gym-like-openai-provides/57132)

<div class="topic-metadata">

**Author:** [@LarkyJulia](https://discourse.julialang.org/u/LarkyJulia)\
**Replies:** 2\
**Last updated:** [March 14, 2021, 5:57pm UTC](https://discourse.julialang.org/t/is-there-an-reinforcement-learning-gym-like-openai-provides/57132 "2021-03-14T17:57:20Z")

</div>

If yes, is it a native Julia library? Thanks.

---

## [Dynamic indexing](https://discourse.julialang.org/t/dynamic-indexing/57135)

<div class="topic-metadata">

**Author:** [@Suresh\_Jeevanandam](https://discourse.julialang.org/u/Suresh_Jeevanandam)\
**Replies:** 2\
**Last updated:** [March 14, 2021, 5:51pm UTC](https://discourse.julialang.org/t/dynamic-indexing/57135 "2021-03-14T17:51:08Z")

</div>

Given a multi dimensional array A with N dimensions, I want to programmatically index so that : is used for all dimensions but for the k’th dimension it is fixed to a specific value v. Eg for N=4 and k=2 and v=1; A\[:,:,…

---

## [Documenter.jl in VS Code](https://discourse.julialang.org/t/documenter-jl-in-vs-code/57141)

<div class="topic-metadata">

**Author:** [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Replies:** 0\
**Last updated:** [March 14, 2021, 5:39pm UTC](https://discourse.julialang.org/t/documenter-jl-in-vs-code/57141 "2021-03-14T17:39:42Z")

</div>

Are there any VS Code tools that people use to write Documenter.jl files? For example, if writing a line that starts with # md it would be nice if the following line also started with it automatically, etc.

---

## [Improvement on appending data using for loop](https://discourse.julialang.org/t/improvement-on-appending-data-using-for-loop/56686)

<div class="topic-metadata">

**Author:** [@FlatWhite17](https://discourse.julialang.org/u/FlatWhite17)\
**Replies:** 4\
**Last updated:** [March 14, 2021, 4:26pm UTC](https://discourse.julialang.org/t/improvement-on-appending-data-using-for-loop/56686 "2021-03-14T16:26:22Z")

</div>

Hi there, I’m from a non-CS background and new to Julia. My current project involves a matching process where for each treated unit (D=1), I need to find units in the donor space (D=0) that have variance of their outcom…

---

## [Problem invoking \`--bug-report=rr\` in a docker image. I have the following package](https://discourse.julialang.org/t/problem-invoking-bug-report-rr-in-a-docker-image-i-have-the-following-package/57134)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 1\
**Last updated:** [March 14, 2021, 4:17pm UTC](https://discourse.julialang.org/t/problem-invoking-bug-report-rr-in-a-docker-image-i-have-the-following-package/57134 "2021-03-14T16:17:11Z")

</div>

Problem invoking --bug-report=rr in a docker image. I have the following packages installed in the Debian image: Status \`~/.julia/environments/v1.6/Project.toml\` \[bcf9a6e7\] BugReporting v0.1.3 \[7073ff75\] IJuli…

---

## [Best practice to combine Flux.jl and Convex.jl](https://discourse.julialang.org/t/best-practice-to-combine-flux-jl-and-convex-jl/57128)

<div class="topic-metadata">

**Author:** [@iHany](https://discourse.julialang.org/u/iHany)\
**Replies:** 4\
**Last updated:** [March 14, 2021, 3:03pm UTC](https://discourse.julialang.org/t/best-practice-to-combine-flux-jl-and-convex-jl/57128 "2021-03-14T15:03:22Z")

</div>

I often use Convex.jl and Flux.jl. When I use them, it is really tough to combine them. Especially, I wanna train a network using Flux.jl when the loss function includes optimal values by solving optimisation problems u…

---

## [Matrix-Vector multiplication complex/real](https://discourse.julialang.org/t/matrix-vector-multiplication-complex-real/57129)

<div class="topic-metadata">

**Author:** [@jamblejoe](https://discourse.julialang.org/u/jamblejoe)\
**Replies:** 0\
**Last updated:** [March 14, 2021, 1:53pm UTC](https://discourse.julialang.org/t/matrix-vector-multiplication-complex-real/57129 "2021-03-14T13:53:18Z")

</div>

The functions executed for A\*y are different for A either real or complex.The first code uses BLAS gemv! (checked via @code\_native) A = rand(ComplexF64, n, n) y = rand(Float64, n) c = Vector{Complex64}(undef, n) mul!(…

---

## [Indexing assignment to arrays](https://discourse.julialang.org/t/indexing-assignment-to-arrays/57008)

<div class="topic-metadata">

**Author:** [@pshsr](https://discourse.julialang.org/u/pshsr)\
**Replies:** 4\
**Last updated:** [March 14, 2021, 12:37pm UTC](https://discourse.julialang.org/t/indexing-assignment-to-arrays/57008 "2021-03-14T12:37:13Z")

</div>

The documentation for indexing assignment in the Julia manual says that: If any index I\_k selects more than one location, then the right hand side X must be an array with the same shape as the result of indexing A\[I\_1,…

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

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