# Latest

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

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

**Page:** 1722

---

## [Distribution in 1.4.2?](https://discourse.julialang.org/t/distribution-in-1-4-2/41113)

<div class="topic-metadata">

**Author:** [@janrpeters](https://discourse.julialang.org/u/janrpeters)\
**Replies:** 2\
**Last updated:** [June 11, 2020, 1:11pm UTC](https://discourse.julialang.org/t/distribution-in-1-4-2/41113 "2020-06-11T13:11:34Z")

</div>

I am converting a lot between distributions. In Julia 1.2 , this code worked perfectly: Logistic(p::Logistic) = p; Normal(p::Normal) = p; Gumbel(p::Gumbel) = p; Logistic(p::Gumbel) = (ξ=0.68; Logistic(p.μ-p.θ\*log(log(2…

---

## [Inference time](https://discourse.julialang.org/t/inference-time/41191)

<div class="topic-metadata">

**Author:** [@maarten\_van\_damme](https://discourse.julialang.org/u/maarten_van_damme)\
**Replies:** 1\
**Last updated:** [June 11, 2020, 12:58pm UTC](https://discourse.julialang.org/t/inference-time/41191 "2020-06-11T12:58:48Z")

</div>

Frequently I have run into problems with extremely long inference times, and those kind of issues are really difficult to debug (I have one right now) Is there a flag that will make julia just give up as soon as possibl…

---

## [Undefined symbol](https://discourse.julialang.org/t/undefined-symbol/41165)

<div class="topic-metadata">

**Author:** [@Zhang\_Wei](https://discourse.julialang.org/u/Zhang_Wei)\
**Replies:** 5\
**Last updated:** [June 11, 2020, 11:44am UTC](https://discourse.julialang.org/t/undefined-symbol/41165 "2020-06-11T11:44:37Z")

</div>

Hi, I creat my dynamic libray test.so on Linux, I can use it in my Intel Fortran code. But when I use it in Julia in ccall, I get error: undefined symbol. I have export LD\_LIBRARY=$PWD. Any idea about this error? …

---

## [Bar plot with offset array](https://discourse.julialang.org/t/bar-plot-with-offset-array/41122)

<div class="topic-metadata">

**Author:** [@m.lavaiyan](https://discourse.julialang.org/u/m.lavaiyan)\
**Replies:** 5\
**Last updated:** [June 11, 2020, 10:29am UTC](https://discourse.julialang.org/t/bar-plot-with-offset-array/41122 "2020-06-11T10:29:42Z")

</div>

Hi everyone, I want to plot a bar chart an array that starts from index 0. when I use plot() it works fine but when I use bar() it gives this error. How can I plot the bar chart? Thanks for any help! using JuMP, Stat…

---

## [Glade developed window not showing in compile but showing at julia prompt](https://discourse.julialang.org/t/glade-developed-window-not-showing-in-compile-but-showing-at-julia-prompt/41194)

<div class="topic-metadata">

**Author:** [@nwtjl](https://discourse.julialang.org/u/nwtjl)\
**Replies:** 0\
**Last updated:** [June 11, 2020, 10:10am UTC](https://discourse.julialang.org/t/glade-developed-window-not-showing-in-compile-but-showing-at-julia-prompt/41194 "2020-06-11T10:10:25Z")

</div>

Hi, Here is a sample of the code I am using to display a glade developed window. using Gtk, Gtk.ShortNames b = GtkBuilder(filename="/home/user/Documents/projects/Julia/gladeProjects/app.glade") win = b\["window1"\] showa…

---

## [Is there a template to implement simple solvers in MathOptInterface?](https://discourse.julialang.org/t/is-there-a-template-to-implement-simple-solvers-in-mathoptinterface/41190)

<div class="topic-metadata">

**Author:** [@SteffenPL](https://discourse.julialang.org/u/SteffenPL)\
**Replies:** 0\
**Last updated:** [June 11, 2020, 9:35am UTC](https://discourse.julialang.org/t/is-there-a-template-to-implement-simple-solvers-in-mathoptinterface/41190 "2020-06-11T09:35:04Z")

</div>

I am trying to implement an Uzawa algorithm and would like to use the MathOptInterface. However, I struggle to find a good template to extend for my purpose. The available nonlinear solver IPOPT has a complicated wrappe…

---

## [Pyimport() fuzzywuzzy (python module) error](https://discourse.julialang.org/t/pyimport-fuzzywuzzy-python-module-error/41187)

<div class="topic-metadata">

**Author:** [@john0017](https://discourse.julialang.org/u/john0017)\
**Replies:** 4\
**Last updated:** [June 11, 2020, 9:02am UTC](https://discourse.julialang.org/t/pyimport-fuzzywuzzy-python-module-error/41187 "2020-06-11T09:02:55Z")

</div>

Hi all, I am new to Julia. I have been trying to rewrite my Python code in Julia for performance. For this, I need to import the python module “fuzzywuzzy”. Its a string matching module. I have successfully imported p…

---

## [New version of PseudoArcLengthContinuation](https://discourse.julialang.org/t/new-version-of-pseudoarclengthcontinuation/39551)

<div class="topic-metadata">

**Author:** [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Replies:** 1\
**Last updated:** [June 11, 2020, 8:15am UTC](https://discourse.julialang.org/t/new-version-of-pseudoarclengthcontinuation/39551 "2020-06-11T08:15:35Z")

</div>

Dear All, I am writing this post to report a new version of my package PseudoArcLengthContinuation.jl. The focus of this new version is twofold, automatic branch switching at bifurcations (Branch point of Equilibrium an…

---

## [Speeding up findmin for a matrix for hierarchical clustering](https://discourse.julialang.org/t/speeding-up-findmin-for-a-matrix-for-hierarchical-clustering/41049)

<div class="topic-metadata">

**Author:** [@gobs](https://discourse.julialang.org/u/gobs)\
**Replies:** 4\
**Last updated:** [June 11, 2020, 8:02am UTC](https://discourse.julialang.org/t/speeding-up-findmin-for-a-matrix-for-hierarchical-clustering/41049 "2020-06-11T08:02:25Z")

</div>

I’ve written a hierarchical clustering algorithm and I would like to speed it up if possible. It seems that my limiting step is findmax(D) where D is my dissimilarity matrix. This is a LowerTriangular matrix (since the o…

---

## [Trying to solve a second order differential eqution](https://discourse.julialang.org/t/trying-to-solve-a-second-order-differential-eqution/41160)

<div class="topic-metadata">

**Author:** [@aquarelle332](https://discourse.julialang.org/u/aquarelle332)\
**Replies:** 3\
**Last updated:** [June 11, 2020, 8:01am UTC](https://discourse.julialang.org/t/trying-to-solve-a-second-order-differential-eqution/41160 "2020-06-11T08:01:34Z")

</div>

Hello, Each time that I am trying to use PGFPlotsX (sinc a few days) I obtain this kind of error: ERROR: LoadError: ArgumentError: Package PGFPLotsX not found in current path: - Run \`import Pkg; Pkg.add("PGFPLotsX")\` t…

---

## [Variable rate jumps with DifferentialEquations.jl and matrices](https://discourse.julialang.org/t/variable-rate-jumps-with-differentialequations-jl-and-matrices/40996)

<div class="topic-metadata">

**Author:** [@TTolppanen](https://discourse.julialang.org/u/TTolppanen)\
**Replies:** 6\
**Last updated:** [June 11, 2020, 7:10am UTC](https://discourse.julialang.org/t/variable-rate-jumps-with-differentialequations-jl-and-matrices/40996 "2020-06-11T07:10:24Z")

</div>

I’ve been going through some examples on differential equations with variable jumps and I did this example for myself and got it working. function f(du, u, p, t) du .= u end prob = ODEProblem(f, \[1.0 2.0; 3.0 4.0\],…

---

## [GLM package failed to add](https://discourse.julialang.org/t/glm-package-failed-to-add/35089)

<div class="topic-metadata">

**Author:** [@jonjilla](https://discourse.julialang.org/u/jonjilla)\
**Replies:** 4\
**Last updated:** [June 11, 2020, 6:49am UTC](https://discourse.julialang.org/t/glm-package-failed-to-add/35089 "2020-06-11T06:49:18Z")

</div>

Hello, Wondering if someone could help me with this. For some reason, GLM stopped working (I guess I had recently added the MD5 package which might have caused a conflict, but not really sure.) But now I’m seeing this…

---

## [Push! versus preallocation](https://discourse.julialang.org/t/push-versus-preallocation/41132)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 17\
**Last updated:** [June 11, 2020, 6:36am UTC](https://discourse.julialang.org/t/push-versus-preallocation/41132 "2020-06-11T06:36:57Z")

</div>

@ChrisRackauckas I benchmarked a simple loop of 1,000,000 iterations using both push! and preallocation, both using functions and within the global space, and using const versus non-const arrays when executing in the gl…

---

## [Implementing a custom Sampler in Distributions.jl](https://discourse.julialang.org/t/implementing-a-custom-sampler-in-distributions-jl/41066)

<div class="topic-metadata">

**Author:** [@nluetts](https://discourse.julialang.org/u/nluetts)\
**Replies:** 5\
**Last updated:** [June 11, 2020, 5:53am UTC](https://discourse.julialang.org/t/implementing-a-custom-sampler-in-distributions-jl/41066 "2020-06-11T05:53:23Z")

</div>

I am trying to implement my own Sampler for a scaled and shifted Beta distribution with support in some arbitrary range \[a, b\]: using Distributions: Beta, Sampleable, Continuous, Univariate struct ScaledShiftedBetaSamp…

---

## [Is there a way to execute a function on a remote worker which doesn't have the module?](https://discourse.julialang.org/t/is-there-a-way-to-execute-a-function-on-a-remote-worker-which-doesnt-have-the-module/41175)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 2\
**Last updated:** [June 11, 2020, 5:10am UTC](https://discourse.julialang.org/t/is-there-a-way-to-execute-a-function-on-a-remote-worker-which-doesnt-have-the-module/41175 "2020-06-11T05:10:43Z")

</div>

Consider the following code: module Foo using Distributed remote\_work(i) = Distributed.remotecall\_fetch(()-\>1+i, 2) end using Distributed addprocs(1) Foo.remote\_work(1) # errors The last line errors with, ERROR: On …

---

## [Relative tolerances for near-zero integrals](https://discourse.julialang.org/t/relative-tolerances-for-near-zero-integrals/41141)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 8\
**Last updated:** [June 11, 2020, 1:22am UTC](https://discourse.julialang.org/t/relative-tolerances-for-near-zero-integrals/41141 "2020-06-11T01:22:25Z")

</div>

I have a question somewhat unrelated to the previous discussion. What is a good way to specify relative tolerance in the case where the exact value of the integral is close to zero? I’ve looked at QuadGK internals and …

---

## [DSP.fft: Invalid Instruction crash for a particular array](https://discourse.julialang.org/t/dsp-fft-invalid-instruction-crash-for-a-particular-array/41170)

<div class="topic-metadata">

**Author:** [@casey\_watkins](https://discourse.julialang.org/u/casey_watkins)\
**Replies:** 1\
**Last updated:** [June 11, 2020, 12:40am UTC](https://discourse.julialang.org/t/dsp-fft-invalid-instruction-crash-for-a-particular-array/41170 "2020-06-11T00:40:16Z")

</div>

I have stumbled upon an array that causes the DSP.fft operation to crash. Here is the array in question: fftcrash.csv - Pastebin.com I have not been able to produce a smaller array than this that causes the same proble…

---

## [Is there a package to construct TUI in Julia?](https://discourse.julialang.org/t/is-there-a-package-to-construct-tui-in-julia/19801)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 14\
**Last updated:** [June 10, 2020, 11:38pm UTC](https://discourse.julialang.org/t/is-there-a-package-to-construct-tui-in-julia/19801 "2020-06-10T23:38:05Z")

</div>

Hi guys! Is there any package to build text user interfaces in Julia? I saw some NCurses wrappers but all old and does not seem to work anymore. The good side of a TUI is that, just like UnicodePlots, it should work 1…

---

## [Most efficient way to delete row without memory consuming](https://discourse.julialang.org/t/most-efficient-way-to-delete-row-without-memory-consuming/41157)

<div class="topic-metadata">

**Author:** [@BMval](https://discourse.julialang.org/u/BMval)\
**Replies:** 4\
**Last updated:** [June 10, 2020, 11:31pm UTC](https://discourse.julialang.org/t/most-efficient-way-to-delete-row-without-memory-consuming/41157 "2020-06-10T23:31:44Z")

</div>

Would you suggest, how to delete row without consuming memory? I try the code but have not enough memory error. df = df\[df.cl!=1,:\] thank you in advance!

---

## [How to correctly handle one-element array vs scalar](https://discourse.julialang.org/t/how-to-correctly-handle-one-element-array-vs-scalar/41154)

<div class="topic-metadata">

**Author:** [@sunjin](https://discourse.julialang.org/u/sunjin)\
**Replies:** 7\
**Last updated:** [June 10, 2020, 10:07pm UTC](https://discourse.julialang.org/t/how-to-correctly-handle-one-element-array-vs-scalar/41154 "2020-06-10T22:07:31Z")

</div>

I have a statement in my code where I need to compute the mean of an ND array A along the 1st dimension, which is M = mean(A,dims=1); However, sometimes A is just a scalar, in which case an error will be reported, as…

---

## [Julia code formatter / code beautifier](https://discourse.julialang.org/t/julia-code-formatter-code-beautifier/11485)

<div class="topic-metadata">

**Author:** [@scelles](https://discourse.julialang.org/u/scelles)\
**Replies:** 21\
**Last updated:** [June 10, 2020, 8:21pm UTC](https://discourse.julialang.org/t/julia-code-formatter-code-beautifier/11485 "2020-06-10T20:21:34Z")

</div>

Hello, Code formatting is an important task to keep code more easily understandable. Go have gofmt Rust have rustfmt Python have black I wonder if there’s an active project for such task in Julia. I’ve found https:…

---

## [Getting an exception IOError: stream is closed or unusable](https://discourse.julialang.org/t/getting-an-exception-ioerror-stream-is-closed-or-unusable/40968)

<div class="topic-metadata">

**Author:** [@Naba7](https://discourse.julialang.org/u/Naba7)\
**Replies:** 1\
**Last updated:** [June 10, 2020, 8:17pm UTC](https://discourse.julialang.org/t/getting-an-exception-ioerror-stream-is-closed-or-unusable/40968 "2020-06-10T20:17:03Z")

</div>

I am getting an exception while running Pluto.jl from terminal. All the version requirements satisfy. I am able to use Pluto on mozilla browser but still it would be nice if I can resolve the error. The error I am gettin…

---

## [Tagbot - "tried to create a release but ran into this error"](https://discourse.julialang.org/t/tagbot-tried-to-create-a-release-but-ran-into-this-error/41051)

<div class="topic-metadata">

**Author:** [@grahamstark](https://discourse.julialang.org/u/grahamstark)\
**Replies:** 2\
**Last updated:** [June 10, 2020, 8:12pm UTC](https://discourse.julialang.org/t/tagbot-tried-to-create-a-release-but-ran-into-this-error/41051 "2020-06-10T20:12:59Z")

</div>

Hi, I have a package that’s close to being accepted into the registry. I get this message from julia-tagbot: tried to create a release but ran into this error: App is installed for user but the repository is not e…

---

## [Using a DataFrame to calculate another column in a separate DataFrame](https://discourse.julialang.org/t/using-a-dataframe-to-calculate-another-column-in-a-separate-dataframe/40747)

<div class="topic-metadata">

**Author:** [@Derek\_Vetsch](https://discourse.julialang.org/u/Derek_Vetsch)\
**Replies:** 6\
**Last updated:** [June 10, 2020, 6:36pm UTC](https://discourse.julialang.org/t/using-a-dataframe-to-calculate-another-column-in-a-separate-dataframe/40747 "2020-06-10T18:36:00Z")

</div>

I am using a DataFrame invoices that looks like this: to count the number of invoices for a given contract on a given date that have happened. The functions I’m using to do this are: using DataFrames, DataFramesMeta,…

---

## [Printing a Julia file](https://discourse.julialang.org/t/printing-a-julia-file/41143)

<div class="topic-metadata">

**Author:** [@jbpatzer](https://discourse.julialang.org/u/jbpatzer)\
**Replies:** 3\
**Last updated:** [June 10, 2020, 6:05pm UTC](https://discourse.julialang.org/t/printing-a-julia-file/41143 "2020-06-10T18:05:44Z")

</div>

I feel like an idiot asking this, but here goes. I have JuliaPro installed (on Windows 10) and I would like to send some code to my printer so that I have a list of the structures I’ve created to hand. I click on File a…

---

## [Working with CSV of MNIST sign language in Julia deep learning](https://discourse.julialang.org/t/working-with-csv-of-mnist-sign-language-in-julia-deep-learning/41152)

<div class="topic-metadata">

**Author:** [@Asia087](https://discourse.julialang.org/u/Asia087)\
**Replies:** 0\
**Last updated:** [June 10, 2020, 5:41pm UTC](https://discourse.julialang.org/t/working-with-csv-of-mnist-sign-language-in-julia-deep-learning/41152 "2020-06-10T17:41:08Z")

</div>

Hello, I am trying to make a convolusional neural network on MNISt sign language dataset. It si provided in a CSV format where each row is one picture and there are 784 columns refering to a single pixel (the pictures h…

---

## [Turing.jl: fix some parameters to prior distribution](https://discourse.julialang.org/t/turing-jl-fix-some-parameters-to-prior-distribution/41095)

<div class="topic-metadata">

**Author:** [@MFairley](https://discourse.julialang.org/u/MFairley)\
**Replies:** 14\
**Last updated:** [June 10, 2020, 5:27pm UTC](https://discourse.julialang.org/t/turing-jl-fix-some-parameters-to-prior-distribution/41095 "2020-06-10T17:27:35Z")

</div>

I’m testing out Turing.jl and I’m wondering if I can specify a subset of parameters to remain fixed at their prior distribution. I would still like to sample these parameters to get a joint distribution with the other pa…

---

## [\[ANN\] UcrDtw.jl: a "fast" implementation of Dynamic Time Warping](https://discourse.julialang.org/t/ann-ucrdtw-jl-a-fast-implementation-of-dynamic-time-warping/20750)

<div class="topic-metadata">

**Author:** [@Seanny123](https://discourse.julialang.org/u/Seanny123)\
**Replies:** 22\
**Last updated:** [June 10, 2020, 4:49pm UTC](https://discourse.julialang.org/t/ann-ucrdtw-jl-a-fast-implementation-of-dynamic-time-warping/20750 "2020-06-10T16:49:00Z")

</div>

Dynamic Time Warping (DTW) is a way to search a time-series for a given pattern. Basically, instead of Euclidian Distance (ED) for comparing the pattern to the time-series, DTW can be used and allow for more useful match…

---

## [Proposal for Tchotchke.jl – everything but the kitchen sink](https://discourse.julialang.org/t/proposal-for-tchotchke-jl-everything-but-the-kitchen-sink/13749)

<div class="topic-metadata">

**Author:** [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Replies:** 3\
**Last updated:** [June 10, 2020, 4:32pm UTC](https://discourse.julialang.org/t/proposal-for-tchotchke-jl-everything-but-the-kitchen-sink/13749 "2020-06-10T16:32:55Z")

</div>

It’s nice that the Julia core library is small and efficient. But sometimes I just want to clutter up my workspace with a bunch of random functions. Related to, Can we put together a list of utility functions that pro…

---

## [Arrays with no size and/or non-sequential integers](https://discourse.julialang.org/t/arrays-with-no-size-and-or-non-sequential-integers/41140)

<div class="topic-metadata">

**Author:** [@sijo](https://discourse.julialang.org/u/sijo)\
**Replies:** 1\
**Last updated:** [June 10, 2020, 4:31pm UTC](https://discourse.julialang.org/t/arrays-with-no-size-and-or-non-sequential-integers/41140 "2020-06-10T16:31:21Z")

</div>

I just stumbled on two phrases in the manual that puzzle me: In Arrays · The Julia Language it says Note that size may not be defined for arrays with non-standard indices, in which case axes may be useful. See the…

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

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