# Latest

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

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

**Page:** 1361

---

## [Problem with Poisson distribution fitting of an array of floats (suffstats is not implemented for (Poisson, Array{Float64,1}))](https://discourse.julialang.org/t/problem-with-poisson-distribution-fitting-of-an-array-of-floats-suffstats-is-not-implemented-for-poisson-array-float64-1/62898)

<div class="topic-metadata">

**Author:** [@AndresCasillas](https://discourse.julialang.org/u/AndresCasillas)\
**Replies:** 3\
**Last updated:** [June 14, 2021, 10:06pm UTC](https://discourse.julialang.org/t/problem-with-poisson-distribution-fitting-of-an-array-of-floats-suffstats-is-not-implemented-for-poisson-array-float64-1/62898 "2021-06-14T22:06:20Z")

</div>

Hi, I’m currently working in Windows 10 with Julia 1.5.3 in a Jupyter notebook, using Distributions. I have an array of type Array{Float64,1} called “derivadas\_reales\_desplazado”. I want to fit a Poisson distribution to…

---

## [\`UndefVarError\` when using a custom, local package](https://discourse.julialang.org/t/undefvarerror-when-using-a-custom-local-package/62910)

<div class="topic-metadata">

**Author:** [@Erasmo98](https://discourse.julialang.org/u/Erasmo98)\
**Replies:** 2\
**Last updated:** [June 14, 2021, 10:05pm UTC](https://discourse.julialang.org/t/undefvarerror-when-using-a-custom-local-package/62910 "2021-06-14T22:05:32Z")

</div>

Hi, I’m new to Discourse. I want to start collaborating on packages so I’m descovering how it’s done. For so, I was trying to recreate this example from the Revise.jl docs, which I can do perfectly with the Example packa…

---

## [How to create a colored box in Julia Pluto, like in the picture](https://discourse.julialang.org/t/how-to-create-a-colored-box-in-julia-pluto-like-in-the-picture/62203)

<div class="topic-metadata">

**Author:** [@Izzani\_Nizam](https://discourse.julialang.org/u/Izzani_Nizam)\
**Replies:** 4\
**Last updated:** [June 14, 2021, 10:02pm UTC](https://discourse.julialang.org/t/how-to-create-a-colored-box-in-julia-pluto-like-in-the-picture/62203 "2021-06-14T22:02:32Z")

</div>

---

## [How to apply DiffEq for PDEs with a moving boundary?](https://discourse.julialang.org/t/how-to-apply-diffeq-for-pdes-with-a-moving-boundary/61491)

<div class="topic-metadata">

**Author:** [@liuyxpp](https://discourse.julialang.org/u/liuyxpp)\
**Replies:** 9\
**Last updated:** [June 14, 2021, 9:52pm UTC](https://discourse.julialang.org/t/how-to-apply-diffeq-for-pdes-with-a-moving-boundary/61491 "2021-06-14T21:52:57Z")

</div>

Suppose we have the following diffusion equation \\frac{\\partial\\phi}{\\partial t} = \\frac{\\partial^2\\phi}{\\partial z^2} with initial condition \\phi(z, t=0) = 0.1 and a boundary condition at z=0 \\frac{\\partial\\phi}…

---

## [Multi-threaded parsing of log file](https://discourse.julialang.org/t/multi-threaded-parsing-of-log-file/62397)

<div class="topic-metadata">

**Author:** [@sampope](https://discourse.julialang.org/u/sampope)\
**Replies:** 5\
**Last updated:** [June 14, 2021, 9:44pm UTC](https://discourse.julialang.org/t/multi-threaded-parsing-of-log-file/62397 "2021-06-14T21:44:44Z")

</div>

In order to use julia for all the things, and to learn more about threads, I’m trying to parse a webserver log file using threads. In theory, each line is sent to a thread, a bunch of parsing functions run, the result sa…

---

## [See startup options within Julia](https://discourse.julialang.org/t/see-startup-options-within-julia/62901)

<div class="topic-metadata">

**Author:** [@jlchan](https://discourse.julialang.org/u/jlchan)\
**Replies:** 8\
**Last updated:** [June 14, 2021, 8:49pm UTC](https://discourse.julialang.org/t/see-startup-options-within-julia/62901 "2021-06-14T20:49:39Z")

</div>

Is there a way to list the command line options (e.g., -p 10, --optimize=1, etc) used to start Julia from within the REPL?

---

## [Grouping vector of strings by left - right context](https://discourse.julialang.org/t/grouping-vector-of-strings-by-left-right-context/62907)

<div class="topic-metadata">

**Author:** [@djholiver](https://discourse.julialang.org/u/djholiver)\
**Replies:** 0\
**Last updated:** [June 14, 2021, 7:49pm UTC](https://discourse.julialang.org/t/grouping-vector-of-strings-by-left-right-context/62907 "2021-06-14T19:49:09Z")

</div>

Hi, I have seen a few example approaches (covert to DataFrame, write your own), but can’t quite get my scenario to work. I have a vector of strings with a character to split on that maps to the vector of “columns” (sep…

---

## [@. x-y? x : y broadcasting does not work?](https://discourse.julialang.org/t/x-y-x-y-broadcasting-does-not-work/62903)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 13\
**Last updated:** [June 14, 2021, 7:39pm UTC](https://discourse.julialang.org/t/x-y-x-y-broadcasting-does-not-work/62903 "2021-06-14T19:39:18Z")

</div>

I don’t quite get why these broadcasting operations do not work: julia\> x = rand(3); y = rand(3); julia\> f(x,y) = @. (x-y \> 0.5 ? x : y ) f (generic function with 1 method) julia\> f(x,y) ERROR: TypeError: non-boolean …

---

## [How do you prepare video for JuliaCon?](https://discourse.julialang.org/t/how-do-you-prepare-video-for-juliacon/62878)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 4\
**Last updated:** [June 14, 2021, 7:32pm UTC](https://discourse.julialang.org/t/how-do-you-prepare-video-for-juliacon/62878 "2021-06-14T19:32:28Z")

</div>

Hi All, I want to prepare a video for JuliaCon and since this is the first time I am doing such video, I would like to hear suggestions / ideas / experiences of others. Few colleagues, who are in my opinion very good te…

---

## [Fft of Matrix type doesnt work?](https://discourse.julialang.org/t/fft-of-matrix-type-doesnt-work/62902)

<div class="topic-metadata">

**Author:** [@mgalenb](https://discourse.julialang.org/u/mgalenb)\
**Replies:** 2\
**Last updated:** [June 14, 2021, 7:19pm UTC](https://discourse.julialang.org/t/fft-of-matrix-type-doesnt-work/62902 "2021-06-14T19:19:55Z")

</div>

I am trying to do a 2D FFT of an image: using AbstractFFT img=\[sin(2\*pi\*x\*10/256) for x in 1:256, y in 1:256\]; fft(img) but this gives: julia\> fft(img) ERROR: MethodError: no method matching plan\_fft(::Matrix{ComplexF…

---

## [Passing Some Arguments To A Function That Is An Argument To Some Other Function](https://discourse.julialang.org/t/passing-some-arguments-to-a-function-that-is-an-argument-to-some-other-function/62762)

<div class="topic-metadata">

**Author:** [@cmdenis](https://discourse.julialang.org/u/cmdenis)\
**Replies:** 2\
**Last updated:** [June 14, 2021, 6:42pm UTC](https://discourse.julialang.org/t/passing-some-arguments-to-a-function-that-is-an-argument-to-some-other-function/62762 "2021-06-14T18:42:28Z")

</div>

Hello, I am wondering whether there is a nice way of passing arguments to a function that is itself an argument to a function. So, currently, I have a piece of code that looks like this: function func\_manip(func) #…

---

## [Writing a new type for a specific kind of array (constructor error)](https://discourse.julialang.org/t/writing-a-new-type-for-a-specific-kind-of-array-constructor-error/62900)

<div class="topic-metadata">

**Author:** [@gpownall](https://discourse.julialang.org/u/gpownall)\
**Replies:** 3\
**Last updated:** [June 14, 2021, 6:25pm UTC](https://discourse.julialang.org/t/writing-a-new-type-for-a-specific-kind-of-array-constructor-error/62900 "2021-06-14T18:25:19Z")

</div>

I’m trying to define a new type for array with the following conditions: It must be square and two-dimensional The elements of each column must sum to 1 Ideally it would be a subtype of two-dimensional arrays so that I…

---

## [Grouping Rotation objects in a vector](https://discourse.julialang.org/t/grouping-rotation-objects-in-a-vector/61899)

<div class="topic-metadata">

**Author:** [@baptnz](https://discourse.julialang.org/u/baptnz)\
**Replies:** 8\
**Last updated:** [June 14, 2021, 5:30pm UTC](https://discourse.julialang.org/t/grouping-rotation-objects-in-a-vector/61899 "2021-06-14T17:30:15Z")

</div>

I’m working with 3D rotations, and my current code implements rotation matrices from Euler angles. I would like to switch to a more general approach that leverages Rotations.jl (or ReferenceFrameRotations.jl, but that’s…

---

## [Makie - Quadrilater-based mesh visualization](https://discourse.julialang.org/t/makie-quadrilater-based-mesh-visualization/62876)

<div class="topic-metadata">

**Author:** [@paurierap](https://discourse.julialang.org/u/paurierap)\
**Replies:** 6\
**Last updated:** [June 14, 2021, 4:55pm UTC](https://discourse.julialang.org/t/makie-quadrilater-based-mesh-visualization/62876 "2021-06-14T16:55:19Z")

</div>

Hi all, Is there any way of plotting a mesh of quadrilaterals using mesh or, alternatively, some way around using other functions?

---

## [A question about my drawing](https://discourse.julialang.org/t/a-question-about-my-drawing/62891)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 3\
**Last updated:** [June 14, 2021, 3:59pm UTC](https://discourse.julialang.org/t/a-question-about-my-drawing/62891 "2021-06-14T15:59:26Z")

</div>

How to change the position of legend in the image, it blocks part of the image. thanks!

---

## [Division for Int128 not defined on GPU](https://discourse.julialang.org/t/division-for-int128-not-defined-on-gpu/62797)

<div class="topic-metadata">

**Author:** [@1115](https://discourse.julialang.org/u/1115)\
**Replies:** 3\
**Last updated:** [June 14, 2021, 2:43pm UTC](https://discourse.julialang.org/t/division-for-int128-not-defined-on-gpu/62797 "2021-06-14T14:43:19Z")

</div>

Here is a MWE. julia\> using CUDA julia\> x = widen.(CuArray(rand(Int64, 10))) 10-element CuArray{Int128, 1}: 7760362279116003288 1887985077088633303 -4343813946050421943 -3266615630613073703 2140177075751050950 …

---

## [Identation lines in vim get copied/pasted](https://discourse.julialang.org/t/identation-lines-in-vim-get-copied-pasted/62889)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 8\
**Last updated:** [June 14, 2021, 2:17pm UTC](https://discourse.julialang.org/t/identation-lines-in-vim-get-copied-pasted/62889 "2021-06-14T14:17:45Z")

</div>

I have installed this vim plugin to have identation lines in vim: GitHub - Yggdroot/indentLine: A vim plugin to display the indention levels with thin vertical lines Now I have noticed that if I copy and paste something…

---

## [Performance comparison of Nvidia A100, V100, RTX2080Ti](https://discourse.julialang.org/t/performance-comparison-of-nvidia-a100-v100-rtx2080ti/62602)

<div class="topic-metadata">

**Author:** [@yixingfu](https://discourse.julialang.org/u/yixingfu)\
**Replies:** 17\
**Last updated:** [June 14, 2021, 12:58pm UTC](https://discourse.julialang.org/t/performance-comparison-of-nvidia-a100-v100-rtx2080ti/62602 "2021-06-14T12:58:47Z")

</div>

When running a bunch of code mostly based on CUDA.jl and consists of mainly (sparse or dense) linear algebra operations, I come to notice that the code runs almost at the same speed for RTX2080Ti and V100, and much faste…

---

## [Best way to wrap a Julia package for use by those that can't code?](https://discourse.julialang.org/t/best-way-to-wrap-a-julia-package-for-use-by-those-that-cant-code/62680)

<div class="topic-metadata">

**Author:** [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Replies:** 23\
**Last updated:** [June 14, 2021, 12:57pm UTC](https://discourse.julialang.org/t/best-way-to-wrap-a-julia-package-for-use-by-those-that-cant-code/62680 "2021-06-14T12:57:18Z")

</div>

Goal My goal is to gather input from the user with as little barrier to entry as possible. Then process it with Julia, and finally collect tables, graphs, and text into a report (preferably PDF). The user inputs I need a…

---

## [Setting up CI in github workflows for a package using PyPlot](https://discourse.julialang.org/t/setting-up-ci-in-github-workflows-for-a-package-using-pyplot/62886)

<div class="topic-metadata">

**Author:** [@peterkovesi](https://discourse.julialang.org/u/peterkovesi)\
**Replies:** 0\
**Last updated:** [June 14, 2021, 12:27pm UTC](https://discourse.julialang.org/t/setting-up-ci-in-github-workflows-for-a-package-using-pyplot/62886 "2021-06-14T12:27:10Z")

</div>

I am trying to set up CI in github workflows. I have followed the suggestions in https://discourse.julialang.org/t/easy-workflow-file-for-setting-up-github-actions-ci-for-your-julia-package/49765. The complication is tha…

---

## [Plotting a gantt-chart like plot](https://discourse.julialang.org/t/plotting-a-gantt-chart-like-plot/2087)

<div class="topic-metadata">

**Author:** [@bbrunaud](https://discourse.julialang.org/u/bbrunaud)\
**Replies:** 3\
**Last updated:** [June 14, 2021, 12:11pm UTC](https://discourse.julialang.org/t/plotting-a-gantt-chart-like-plot/2087 "2021-06-14T12:11:01Z")

</div>

Hello, I would lie to plot a Gantt chart like the following starting from a dataframe, where each row containts (Task,Unit,InitialTime,Duration,Size) How would you approach this? thanks!

---

## [Advance model building, why Split returns a Tuple?\[Pedagogical question\]](https://discourse.julialang.org/t/advance-model-building-why-split-returns-a-tuple-pedagogical-question/62882)

<div class="topic-metadata">

**Author:** [@deveshjawla](https://discourse.julialang.org/u/deveshjawla)\
**Replies:** 0\
**Last updated:** [June 14, 2021, 11:53am UTC](https://discourse.julialang.org/t/advance-model-building-why-split-returns-a-tuple-pedagogical-question/62882 "2021-06-14T11:53:53Z")

</div>

In the advanced model building @ https://fluxml.ai/Flux.jl/stable/models/advanced/#Multiple-outputs:-a-custom-Split-layer Is there any reason why a tuple is used in the code? see below for the exact line. (m::Split)(x…

---

## [Pattern to use additional variables in do block?](https://discourse.julialang.org/t/pattern-to-use-additional-variables-in-do-block/62871)

<div class="topic-metadata">

**Author:** [@jonathanBieler](https://discourse.julialang.org/u/jonathanBieler)\
**Replies:** 2\
**Last updated:** [June 14, 2021, 11:52am UTC](https://discourse.julialang.org/t/pattern-to-use-additional-variables-in-do-block/62871 "2021-06-14T11:52:42Z")

</div>

I’m trying to write a small package to process files in an easy way. I often write very similar scripts that open files, read them record by record, process the record in some way (modify it or filter it out), close the …

---

## [Thread safe operations with LibPQ.jl and AMPQ.jl](https://discourse.julialang.org/t/thread-safe-operations-with-libpq-jl-and-ampq-jl/62873)

<div class="topic-metadata">

**Author:** [@Michal](https://discourse.julialang.org/u/Michal)\
**Replies:** 2\
**Last updated:** [June 14, 2021, 11:38am UTC](https://discourse.julialang.org/t/thread-safe-operations-with-libpq-jl-and-ampq-jl/62873 "2021-06-14T11:38:22Z")

</div>

How should I implement thread safe operations with LibPQ.jl (PostgreSQL database) and AMPQ.jl (RabbitMQ)? I’m using 8 threads, and I pulling/pushing messages from/to RabbitMQ (using only one queue). Also, I’m using Postg…

---

## [How to implement multi-threading with external in-place mutable variables?](https://discourse.julialang.org/t/how-to-implement-multi-threading-with-external-in-place-mutable-variables/62610)

<div class="topic-metadata">

**Author:** [@mlanghinrichs](https://discourse.julialang.org/u/mlanghinrichs)\
**Replies:** 4\
**Last updated:** [June 14, 2021, 11:30am UTC](https://discourse.julialang.org/t/how-to-implement-multi-threading-with-external-in-place-mutable-variables/62610 "2021-06-14T11:30:00Z")

</div>

Hey, I’m wondering how to implement a method with multi-threading that also allows for mutating external variables in-place. The idea is that each thread/base requires their “own” external variable for data race free mu…

---

## [UDP receive and send with julia](https://discourse.julialang.org/t/udp-receive-and-send-with-julia/62349)

<div class="topic-metadata">

**Author:** [@Beh123](https://discourse.julialang.org/u/Beh123)\
**Replies:** 17\
**Last updated:** [June 14, 2021, 10:46am UTC](https://discourse.julialang.org/t/udp-receive-and-send-with-julia/62349 "2021-06-14T10:46:52Z")

</div>

hi. i want to write a program that receive a lot of data with Udp. next i do some operations on data in a function. finally, i send my results to another udp. these operations must be done while i receive data. can i do…

---

## [Get pixel of image from dash.jl](https://discourse.julialang.org/t/get-pixel-of-image-from-dash-jl/62877)

<div class="topic-metadata">

**Author:** [@ofek](https://discourse.julialang.org/u/ofek)\
**Replies:** 0\
**Last updated:** [June 14, 2021, 10:28am UTC](https://discourse.julialang.org/t/get-pixel-of-image-from-dash-jl/62877 "2021-06-14T10:28:50Z")

</div>

hey, i have 2D image and i want to get the clicked pixel coordinates when user click on the mouse. how can i do that? thanks!

---

## [Customize show for repl](https://discourse.julialang.org/t/customize-show-for-repl/62870)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 1\
**Last updated:** [June 14, 2021, 10:19am UTC](https://discourse.julialang.org/t/customize-show-for-repl/62870 "2021-06-14T10:19:34Z")

</div>

I want to customize how Ints are printed in my repl. I looked at Types · The Julia Language and The Julia REPL · The Julia Language I tried show(io::IO, ::MIME"text/plain", x::Int) = print(io, "Int--$(x)--") but that…

---

## [LinearAlgebra eigensolver convergence issues around nearby eigenvalues](https://discourse.julialang.org/t/linearalgebra-eigensolver-convergence-issues-around-nearby-eigenvalues/62775)

<div class="topic-metadata">

**Author:** [@vivian-rogers](https://discourse.julialang.org/u/vivian-rogers)\
**Replies:** 5\
**Last updated:** [June 14, 2021, 9:49am UTC](https://discourse.julialang.org/t/linearalgebra-eigensolver-convergence-issues-around-nearby-eigenvalues/62775 "2021-06-14T09:49:37Z")

</div>

(Plotted above is the eigenvalues of a matrix A(k), with k being momentum on the x axis). Hi, So I am trying to get the eigenvalues and eigenvectors of a hermitian matrix that continuously depends on a parameter k, w…

---

## [Multidimensional Interpolation with knots condition?](https://discourse.julialang.org/t/multidimensional-interpolation-with-knots-condition/62869)

<div class="topic-metadata">

**Author:** [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)\
**Replies:** 0\
**Last updated:** [June 14, 2021, 9:29am UTC](https://discourse.julialang.org/t/multidimensional-interpolation-with-knots-condition/62869 "2021-06-14T09:29:51Z")

</div>

Hi Everyone! I am trying to make up an interpolated multidimansional function with 5 dimensions and 1 variable. In this case: X1 X2 X3 X4 X5 Density X1=Tempertaure X2=Preassure X3 to X5: % of composition of 3 elements…

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

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