# Latest

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

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

**Page:** 1257

---

## [There is a Julia Package for Discrete Element Method?](https://discourse.julialang.org/t/there-is-a-julia-package-for-discrete-element-method/68733)

<div class="topic-metadata">

**Author:** [@vinicius\_de\_lima](https://discourse.julialang.org/u/vinicius_de_lima)\
**Replies:** 1\
**Last updated:** [September 25, 2021, 1:55am UTC](https://discourse.julialang.org/t/there-is-a-julia-package-for-discrete-element-method/68733 "2021-09-25T01:55:06Z")

</div>

I am making an undergraduate research in “Micromechanical modeling of geotechnical infrastructure problems” currently using the Yade software for Discrete Element method, which is implemented in C++ and uses Python scrip…

---

## [Package not opening PR for updating](https://discourse.julialang.org/t/package-not-opening-pr-for-updating/68725)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 4\
**Last updated:** [September 25, 2021, 1:47am UTC](https://discourse.julialang.org/t/package-not-opening-pr-for-updating/68725 "2021-09-25T01:47:15Z")

</div>

Hi, I’m working in a new package and tried the first update. However even after an hour nothing happened when I called the \[@JuliaRegistrator register(). https://github.com/GenericMappingTools/RemoteS.jl/issues/26 Th…

---

## [Show hidden cells in Pluto](https://discourse.julialang.org/t/show-hidden-cells-in-pluto/68610)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 4\
**Last updated:** [September 25, 2021, 1:14am UTC](https://discourse.julialang.org/t/show-hidden-cells-in-pluto/68610 "2021-09-25T01:14:43Z")

</div>

How can I show hidden cells in Pluto.jl? Specifically, if you open this notebook in Pluto, you will not see all the other using statements after using Plots; default(fontfamily="Computer Modern", framestyle=:box) # LaT…

---

## [Hyperbolic Deep Learning](https://discourse.julialang.org/t/hyperbolic-deep-learning/45895)

<div class="topic-metadata">

**Author:** [@tbreloff](https://discourse.julialang.org/u/tbreloff)\
**Replies:** 4\
**Last updated:** [September 25, 2021, 12:26am UTC](https://discourse.julialang.org/t/hyperbolic-deep-learning/45895 "2021-09-25T00:26:31Z")

</div>

Are there any active communities working in the space of hyperbolic deep learning? I’m specifically interested in Flux-compatible libraries which define the basic DL operations for either the Poincare or Lorentz hyperbol…

---

## [Fastest data structure for a priority queue](https://discourse.julialang.org/t/fastest-data-structure-for-a-priority-queue/68472)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 23\
**Last updated:** [September 24, 2021, 11:20pm UTC](https://discourse.julialang.org/t/fastest-data-structure-for-a-priority-queue/68472 "2021-09-24T23:20:34Z")

</div>

… depends on the number of events to be handled. I could not use the PQs I’ve seen in Julia because they did not handle multiple identical event times, so took this as an exercise. My events have the following structur…

---

## [De-structure results from broadcasting](https://discourse.julialang.org/t/de-structure-results-from-broadcasting/68721)

<div class="topic-metadata">

**Author:** [@nandoconde](https://discourse.julialang.org/u/nandoconde)\
**Replies:** 4\
**Last updated:** [September 24, 2021, 8:30pm UTC](https://discourse.julialang.org/t/de-structure-results-from-broadcasting/68721 "2021-09-24T20:30:27Z")

</div>

Hello! When not using broadcasting, there is a way to destructure results from a function: julia\> f(x) = (x, x^2); julia\> (y1, y2) = f(5); julia\> y1 5 julia\> y2 25 However, this does not work while broadcasting: j…

---

## [Installation error for IJulia](https://discourse.julialang.org/t/installation-error-for-ijulia/68724)

<div class="topic-metadata">

**Author:** [@SamP](https://discourse.julialang.org/u/SamP)\
**Replies:** 1\
**Last updated:** [September 24, 2021, 8:20pm UTC](https://discourse.julialang.org/t/installation-error-for-ijulia/68724 "2021-09-24T20:20:55Z")

</div>

I am trying to add IJulia to enable the use of Julia in nteract. Specifically, I am following the procedure outlined in this JuliaAcademy video. When I run \] install("IJulia") in Julia, I get the following series of erro…

---

## [Loved vs Dreaded again. Who's beating Julia?](https://discourse.julialang.org/t/loved-vs-dreaded-again-whos-beating-julia/68599)

<div class="topic-metadata">

**Author:** [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Replies:** 23\
**Last updated:** [September 24, 2021, 7:48pm UTC](https://discourse.julialang.org/t/loved-vs-dreaded-again-whos-beating-julia/68599 "2021-09-24T19:48:41Z")

</div>

Today I visited the StackOverflow 2021 survey results as part of an effort to convince a co-worker that we should use Julia rather than VBA in Excel. I expect his follow up question to be “Why not use the most loved lang…

---

## [Passing boolean settings to module to parse fast kernels via macros](https://discourse.julialang.org/t/passing-boolean-settings-to-module-to-parse-fast-kernels-via-macros/68702)

<div class="topic-metadata">

**Author:** [@Chiil](https://discourse.julialang.org/u/Chiil)\
**Replies:** 7\
**Last updated:** [September 24, 2021, 6:53pm UTC](https://discourse.julialang.org/t/passing-boolean-settings-to-module-to-parse-fast-kernels-via-macros/68702 "2021-09-24T18:53:27Z")

</div>

I have a module that builds high performance kernels, based on user settings. I would like to construct them using settings that are provided by the user that imports the Kernels module. What would be the most logical wa…

---

## [How to skip arguments when using a function](https://discourse.julialang.org/t/how-to-skip-arguments-when-using-a-function/68621)

<div class="topic-metadata">

**Author:** [@Giulio\_Benedetti](https://discourse.julialang.org/u/Giulio_Benedetti)\
**Replies:** 9\
**Last updated:** [September 24, 2021, 5:51pm UTC](https://discourse.julialang.org/t/how-to-skip-arguments-when-using-a-function/68621 "2021-09-24T17:51:56Z")

</div>

Hi there! Is there a way in Julia to skip arguments when using a function? I am looking for something like the tilde in MATLAB: # MATLAB MyFunction(a, ~, c) Thanks in advance!

---

## [Why lu() factorization is not reducing the execution time?](https://discourse.julialang.org/t/why-lu-factorization-is-not-reducing-the-execution-time/68664)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 10\
**Last updated:** [September 24, 2021, 5:24pm UTC](https://discourse.julialang.org/t/why-lu-factorization-is-not-reducing-the-execution-time/68664 "2021-09-24T17:24:39Z")

</div>

I am using lu() to reduce the computation time but it turned out not as expected. Any idea why is that? julia\> A = \[1 3 3 2;2 6 9 7; -1 -3 3 4\] 3×4 Matrix{Int64}: 1 3 3 2 2 6 9 7 -1 -3 3 4 julia\> lu(A,c…

---

## [Is Dict shrinking feature planned?](https://discourse.julialang.org/t/is-dict-shrinking-feature-planned/68681)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 10\
**Last updated:** [September 24, 2021, 4:18pm UTC](https://discourse.julialang.org/t/is-dict-shrinking-feature-planned/68681 "2021-09-24T16:18:15Z")

</div>

I’ve written a program in Julia involving heavy insertion and deletion of elements from many separate Dict containers. The memory usage gets bad, and I tracked down the cause (I believe) to the fact that Julia Dicts cann…

---

## [How to combine two column data into one matrix?](https://discourse.julialang.org/t/how-to-combine-two-column-data-into-one-matrix/68706)

<div class="topic-metadata">

**Author:** [@leon](https://discourse.julialang.org/u/leon)\
**Replies:** 2\
**Last updated:** [September 24, 2021, 4:16pm UTC](https://discourse.julialang.org/t/how-to-combine-two-column-data-into-one-matrix/68706 "2021-09-24T16:16:37Z")

</div>

For example, I have two column data: A = \[1;2;3\]; B = \[5;6;7\]; In order to make a matrix with the first column being A and 2nd Column being B, I would do this in Matlab: C = \[A, B\]; But it does it the wrong way and …

---

## [How to define function parameters to be read as same type?](https://discourse.julialang.org/t/how-to-define-function-parameters-to-be-read-as-same-type/68696)

<div class="topic-metadata">

**Author:** [@Minimum-Pollution-96](https://discourse.julialang.org/u/Minimum-Pollution-96)\
**Replies:** 3\
**Last updated:** [September 24, 2021, 4:11pm UTC](https://discourse.julialang.org/t/how-to-define-function-parameters-to-be-read-as-same-type/68696 "2021-09-24T16:11:46Z")

</div>

Hi, This is how I’m defining the function. function unrestricted\_search(f::Function, δ::T, x0::T) where T# Maximization algorithm f0 = f(x0) Data = DataFrame(f=f0, x=x0) diff = f(x0+δ) - f(x0) if diff \< …

---

## [How to ignore 1 of the 2 GPUs on my machine](https://discourse.julialang.org/t/how-to-ignore-1-of-the-2-gpus-on-my-machine/68697)

<div class="topic-metadata">

**Author:** [@JosePereiraUA](https://discourse.julialang.org/u/JosePereiraUA)\
**Replies:** 7\
**Last updated:** [September 24, 2021, 4:05pm UTC](https://discourse.julialang.org/t/how-to-ignore-1-of-the-2-gpus-on-my-machine/68697 "2021-09-24T16:05:39Z")

</div>

I’m trying to run a piece of code on a different machine than it was written on. On this new machine, there are two GPUs: a Teska K40c and an NVIDIA GeForce GTX 650. The problem seems to be with the second one. Running \]…

---

## [Code review: Mandelbrot set with CUDA.jl](https://discourse.julialang.org/t/code-review-mandelbrot-set-with-cuda-jl/68673)

<div class="topic-metadata">

**Author:** [@vini-fda](https://discourse.julialang.org/u/vini-fda)\
**Replies:** 4\
**Last updated:** [September 24, 2021, 3:40pm UTC](https://discourse.julialang.org/t/code-review-mandelbrot-set-with-cuda-jl/68673 "2021-09-24T15:40:32Z")

</div>

Hello there! I’ve been experimenting with CUDA.jl and it has been a fantastic experience so far. Recently, I’ve made two simple implementations of the Mandelbrot Fractal using CUDA.jl(repository: https://github.com/vini-…

---

## [Subplot saving error related to latex](https://discourse.julialang.org/t/subplot-saving-error-related-to-latex/68700)

<div class="topic-metadata">

**Author:** [@ValeVolc](https://discourse.julialang.org/u/ValeVolc)\
**Replies:** 0\
**Last updated:** [September 24, 2021, 2:34pm UTC](https://discourse.julialang.org/t/subplot-saving-error-related-to-latex/68700 "2021-09-24T14:34:22Z")

</div>

Hi everyone! I’m dealing with a saving subplots issue. I created a subplots graph in a double for loop using Plots and LaTeXStrings, the graph is displayed correctly, I can save the graph with savefig, but it loses the…

---

## [Evaluate Turing model posterior with many parameters](https://discourse.julialang.org/t/evaluate-turing-model-posterior-with-many-parameters/68699)

<div class="topic-metadata">

**Author:** [@sijo](https://discourse.julialang.org/u/sijo)\
**Replies:** 0\
**Last updated:** [September 24, 2021, 2:27pm UTC](https://discourse.julialang.org/t/evaluate-turing-model-posterior-with-many-parameters/68699 "2021-09-24T14:27:39Z")

</div>

I want to evaluate the non-normalized posterior of a Turing model at some point in the parameter space. The guide suggests the prob"..." or logprob"..." string macros for this, but it seems inconvenient if there’s more …

---

## [Randn isn't consistent with Seed?](https://discourse.julialang.org/t/randn-isnt-consistent-with-seed/68287)

<div class="topic-metadata">

**Author:** [@klowrey](https://discourse.julialang.org/u/klowrey)\
**Replies:** 6\
**Last updated:** [September 24, 2021, 2:14pm UTC](https://discourse.julialang.org/t/randn-isnt-consistent-with-seed/68287 "2021-09-24T14:14:43Z")

</div>

When I run the following few lines of code, I get the attached behavior where the first few elements of using randn will be the same but after a while (not sure if machine dependent) the same rng will diverge, but only w…

---

## [Trying to analytically solve a simple linear system](https://discourse.julialang.org/t/trying-to-analytically-solve-a-simple-linear-system/68645)

<div class="topic-metadata">

**Author:** [@hdcpereira](https://discourse.julialang.org/u/hdcpereira)\
**Replies:** 2\
**Last updated:** [September 24, 2021, 1:58pm UTC](https://discourse.julialang.org/t/trying-to-analytically-solve-a-simple-linear-system/68645 "2021-09-24T13:58:28Z")

</div>

Hello there. I’m trying to solve the following system: i1 = i2 + i3; V = i1\*r1 + i2\*r2; V = i1\*r1 + i3\*r3; Which is fairly simple to solve, so I tried to use Symbolics.jl to do so. I’ve done the following: using Symbo…

---

## [A Question about Vectors with strings](https://discourse.julialang.org/t/a-question-about-vectors-with-strings/68661)

<div class="topic-metadata">

**Author:** [@Jesus-117](https://discourse.julialang.org/u/Jesus-117)\
**Replies:** 5\
**Last updated:** [September 24, 2021, 1:34pm UTC](https://discourse.julialang.org/t/a-question-about-vectors-with-strings/68661 "2021-09-24T13:34:43Z")

</div>

I’m new to julia, out of curiosity, I thought about recreating a problem that I did in Matlab at the time: With compact notation write a vector that has as odd entries the numbers from 1 to 100 in string form and the odd…

---

## [Research Fellow in Ophthalmology at University College London (UCL)](https://discourse.julialang.org/t/research-fellow-in-ophthalmology-at-university-college-london-ucl/68694)

<div class="topic-metadata">

**Author:** [@giordano](https://discourse.julialang.org/u/giordano)\
**Replies:** 0\
**Last updated:** [September 24, 2021, 1:22pm UTC](https://discourse.julialang.org/t/research-fellow-in-ophthalmology-at-university-college-london-ucl/68694 "2021-09-24T13:22:06Z")

</div>

There is a new opening for a Research Fellow at the UCL Institute of Ophthalmology. A strong candidate will hold a PhD or equivalent and have substantial experience in the development and coding of computational models…

---

## [PySpark + PyCall + UDF Integration - PyCall.jlwrap cannot pickle](https://discourse.julialang.org/t/pyspark-pycall-udf-integration-pycall-jlwrap-cannot-pickle/50122)

<div class="topic-metadata">

**Author:** [@dmoliveira](https://discourse.julialang.org/u/dmoliveira)\
**Replies:** 5\
**Last updated:** [September 24, 2021, 12:57pm UTC](https://discourse.julialang.org/t/pyspark-pycall-udf-integration-pycall-jlwrap-cannot-pickle/50122 "2021-09-24T12:57:28Z")

</div>

Hi Julia fellows! I just trying to see the potential for Pyspark + Julia. I know that we have Spark.jl but there are some limitations for my end goal experiment. Then, decided to give a try and for basic cases is workin…

---

## [Resizing a Figure with CairoMakie](https://discourse.julialang.org/t/resizing-a-figure-with-cairomakie/68691)

<div class="topic-metadata">

**Author:** [@DNF](https://discourse.julialang.org/u/DNF)\
**Replies:** 2\
**Last updated:** [September 24, 2021, 12:27pm UTC](https://discourse.julialang.org/t/resizing-a-figure-with-cairomakie/68691 "2021-09-24T12:27:16Z")

</div>

I am using CairoMakie, and I need a plot window which contains many subaxes. The number can change from time to time, and it is very hard to determine in advance the correct size and resolution for the Figure that holds …

---

## [Autodiff a partial cholesky decomposition](https://discourse.julialang.org/t/autodiff-a-partial-cholesky-decomposition/68580)

<div class="topic-metadata">

**Author:** [@spinkney](https://discourse.julialang.org/u/spinkney)\
**Replies:** 1\
**Last updated:** [September 24, 2021, 10:50am UTC](https://discourse.julialang.org/t/autodiff-a-partial-cholesky-decomposition/68580 "2021-09-24T10:50:13Z")

</div>

I’m trying to write a reversible autodiff program with NiLang. It’s the partial cholesky decomposition. Written as a regular function it is. I’m open to writing this in another autodiff framework too. function partial\_c…

---

## [\[TANN\] View/Post-Process Analog Circuit Simulations](https://discourse.julialang.org/t/tann-view-post-process-analog-circuit-simulations/44658)

<div class="topic-metadata">

**Author:** [@MA\_Laforge](https://discourse.julialang.org/u/MA_Laforge)\
**Replies:** 1\
**Last updated:** [September 24, 2021, 7:42am UTC](https://discourse.julialang.org/t/tann-view-post-process-analog-circuit-simulations/44658 "2021-09-24T07:42:52Z")

</div>

(targeted announcement) Hi, I just stumbled on this topic which seems more-or-less related to my development. I know makers are less analog-oriented these days, but for those who wish to post-process analog simulation …

---

## [Is there a way to keep the delimiter in split function, as a separate element?](https://discourse.julialang.org/t/is-there-a-way-to-keep-the-delimiter-in-split-function-as-a-separate-element/51995)

<div class="topic-metadata">

**Author:** [@D\_A](https://discourse.julialang.org/u/D_A)\
**Replies:** 2\
**Last updated:** [December 17, 2020, 8:15pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-keep-the-delimiter-in-split-function-as-a-separate-element/51995 "2020-12-17T20:15:41Z")

</div>

Hello, This is identical to this. In my case, if I want to split a string (for example a quite complex anthroponym, with dashes, apostrophes, etc.), making complex capitalization depending on these punctuation delimite…

---

## [CommonMark Math in Pluto](https://discourse.julialang.org/t/commonmark-math-in-pluto/68104)

<div class="topic-metadata">

**Author:** [@disberd](https://discourse.julialang.org/u/disberd)\
**Replies:** 8\
**Last updated:** [September 24, 2021, 7:31am UTC](https://discourse.julialang.org/t/commonmark-math-in-pluto/68104 "2021-09-24T07:31:16Z")

</div>

I would like to use CommonMark as drop-in replacement for Markdown in some pluto cells but I can’t seem to understand how to make Latex math work with the cm"" string literal. Based on the help from the @cm\_str macro on…

---

## [CairoMakie, LoadError: InexactError: Int64(2.5)](https://discourse.julialang.org/t/cairomakie-loaderror-inexacterror-int64-2-5/68662)

<div class="topic-metadata">

**Author:** [@Nextle](https://discourse.julialang.org/u/Nextle)\
**Replies:** 2\
**Last updated:** [September 24, 2021, 6:28am UTC](https://discourse.julialang.org/t/cairomakie-loaderror-inexacterror-int64-2-5/68662 "2021-09-24T06:28:46Z")

</div>

Hello, I have a question about this error. I am doing an exercise to graph the supply-demand function using CairoMakie. I had no problems to place the scene and the layout but to graph the first curve I get this error me…

---

## [Reproducing rosenbrock example: can't see the candidate solution](https://discourse.julialang.org/t/reproducing-rosenbrock-example-cant-see-the-candidate-solution/68643)

<div class="topic-metadata">

**Author:** [@rio](https://discourse.julialang.org/u/rio)\
**Replies:** 1\
**Last updated:** [September 24, 2021, 4:43am UTC](https://discourse.julialang.org/t/reproducing-rosenbrock-example-cant-see-the-candidate-solution/68643 "2021-09-24T04:43:34Z")

</div>

Hi, when I run the rosenbrock example in https://github.com/JuliaNLSolvers/Optim.jl/ using Optim rosenbrock(x) = (1.0 - x\[1\])^2 + 100.0 \* (x\[2\] - x\[1\]^2)^2 result = optimize(rosenbrock, zeros(2), BFGS()) I get this o…

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

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