# Latest

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

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

**Page:** 1158

---

## [Understanding generic functions and docstrings](https://discourse.julialang.org/t/understanding-generic-functions-and-docstrings/74279)

<div class="topic-metadata">

**Author:** [@LeeviL](https://discourse.julialang.org/u/LeeviL)\
**Replies:** 1\
**Last updated:** [January 9, 2022, 1:23pm UTC](https://discourse.julialang.org/t/understanding-generic-functions-and-docstrings/74279 "2022-01-09T13:23:58Z")

</div>

Hi! Julia newcomer here who is trying to understand generic functions. Consider the following two blocks of code: abstract type A end """ Function that does something. """ somefunction(t::A) struct B \<: A # Code…

---

## [Use "memcpy" instead of "memmove" to copy Array when there's no overlap?](https://discourse.julialang.org/t/use-memcpy-instead-of-memmove-to-copy-array-when-theres-no-overlap/64042)

<div class="topic-metadata">

**Author:** [@N5N3](https://discourse.julialang.org/u/N5N3)\
**Replies:** 7\
**Last updated:** [January 9, 2022, 9:18am UTC](https://discourse.julialang.org/t/use-memcpy-instead-of-memmove-to-copy-array-when-theres-no-overlap/64042 "2022-01-09T09:18:21Z")

</div>

At present, Julia always use C’s “memmove” to copy data from a Array to another Array when they have the same bitstype or bitsuniontype. On my desktop “memcpy” seems faster than “memmove”. Here’s some benchmark code: m…

---

## [Documenter.jl for types constructors](https://discourse.julialang.org/t/documenter-jl-for-types-constructors/74262)

<div class="topic-metadata">

**Author:** [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Replies:** 0\
**Last updated:** [January 9, 2022, 12:53am UTC](https://discourse.julialang.org/t/documenter-jl-for-types-constructors/74262 "2022-01-09T00:53:49Z")

</div>

Hi, I am trying to use Documenter.jl to pick up the docstrings of a custom struct called KalmanSettings for MessyTimeSeries.jl (dev branch). However, in my local enviroment, @docs KalmanSettings seem to pick up only t…

---

## [Why isn't this example function being documented?](https://discourse.julialang.org/t/why-isnt-this-example-function-being-documented/74252)

<div class="topic-metadata">

**Author:** [@Soldalma](https://discourse.julialang.org/u/Soldalma)\
**Replies:** 4\
**Last updated:** [January 8, 2022, 11:13pm UTC](https://discourse.julialang.org/t/why-isnt-this-example-function-being-documented/74252 "2022-01-08T23:13:32Z")

</div>

I am trying to document my functions with mixed results. This simple example, which I pasted on the julia\> prompt, does not seem to work: """ foo(x, y) Some comment. Another comment. """ function foo(x, y) ret…

---

## [How to load a whole "project" into a worker with @everywhere](https://discourse.julialang.org/t/how-to-load-a-whole-project-into-a-worker-with-everywhere/74249)

<div class="topic-metadata">

**Author:** [@GalloLuigi](https://discourse.julialang.org/u/GalloLuigi)\
**Replies:** 2\
**Last updated:** [January 8, 2022, 10:32pm UTC](https://discourse.julialang.org/t/how-to-load-a-whole-project-into-a-worker-with-everywhere/74249 "2022-01-08T22:32:17Z")

</div>

Hi I have a very complex function called “simulation”. I want to remotely run with these instructions: results =remotecall\_fetch(simulate,2, SIS(), get!(…

---

## [Reduce.jl expand/rcall deadlock](https://discourse.julialang.org/t/reduce-jl-expand-rcall-deadlock/74259)

<div class="topic-metadata">

**Author:** [@LebesgueMeasure](https://discourse.julialang.org/u/LebesgueMeasure)\
**Replies:** 0\
**Last updated:** [January 8, 2022, 9:41pm UTC](https://discourse.julialang.org/t/reduce-jl-expand-rcall-deadlock/74259 "2022-01-08T21:41:10Z")

</div>

The Reduce.jl, the following works using Reduce Reduce.expand(“3x+2y+2.12x+3.2y”) However if I try the following expand(“f(X,Y)+2g(X1,X2,X2)+2f(X,Y)”) it gets into an infinite loop. If I interrupt once, and try agai…

---

## [Package management of a package with different versions required by other packages](https://discourse.julialang.org/t/package-management-of-a-package-with-different-versions-required-by-other-packages/74236)

<div class="topic-metadata">

**Author:** [@Xijiang\_Yu](https://discourse.julialang.org/u/Xijiang_Yu)\
**Replies:** 5\
**Last updated:** [January 8, 2022, 9:32pm UTC](https://discourse.julialang.org/t/package-management-of-a-package-with-different-versions-required-by-other-packages/74236 "2022-01-08T21:32:33Z")

</div>

I recently had a trouble with package Octavian. Because it can deal with BitArray or Int8 matrix, it has a great advantage over BLAS. It made it possible to deal with much larger matrix than BLAS. The problem is that wit…

---

## [Plot showing empty plot when values are more than 10^308](https://discourse.julialang.org/t/plot-showing-empty-plot-when-values-are-more-than-10-308/74217)

<div class="topic-metadata">

**Author:** [@zenpoy](https://discourse.julialang.org/u/zenpoy)\
**Replies:** 4\
**Last updated:** [January 8, 2022, 9:17pm UTC](https://discourse.julialang.org/t/plot-showing-empty-plot-when-values-are-more-than-10-308/74217 "2022-01-08T21:17:27Z")

</div>

Hi Guys - I’m really new to Julia. Sorry if the question is dumb. I’m trying to plot Fibonacci series. So I discovered that the Plots are broken for values bigger than 10^308: Try this: plot(\[0,1\], \[(big(10)^308),0\]) …

---

## [Pluggin a series of small matrices into a larger matrix (with addition)](https://discourse.julialang.org/t/pluggin-a-series-of-small-matrices-into-a-larger-matrix-with-addition/74255)

<div class="topic-metadata">

**Author:** [@drew](https://discourse.julialang.org/u/drew)\
**Replies:** 1\
**Last updated:** [January 8, 2022, 8:51pm UTC](https://discourse.julialang.org/t/pluggin-a-series-of-small-matrices-into-a-larger-matrix-with-addition/74255 "2022-01-08T20:51:30Z")

</div>

What is the best way to add a series of smaller matrices to a particular point of a bigger matrix? For example: Starting with an empty matrix of zeros: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 I would like to insert the fo…

---

## [DataDrivenDiffEq dont work on 1.7.1](https://discourse.julialang.org/t/datadrivendiffeq-dont-work-on-1-7-1/74231)

<div class="topic-metadata">

**Author:** [@ecustwy](https://discourse.julialang.org/u/ecustwy)\
**Replies:** 8\
**Last updated:** [January 8, 2022, 8:55pm UTC](https://discourse.julialang.org/t/datadrivendiffeq-dont-work-on-1-7-1/74231 "2022-01-08T20:55:32Z")

</div>

when doing the Quick Demonstration from https://github.com/SciML/DataDrivenDiffEq.jl on Julia1.7.1, the programm stoped at “ddprob = ContinuousDataDrivenProblem(sol)” given: ERROR: UndefVarError: ContinuousDataDrivenPro…

---

## [Recommended way to select multiple DataFrame columns parametrically, i.e. not by the names](https://discourse.julialang.org/t/recommended-way-to-select-multiple-dataframe-columns-parametrically-i-e-not-by-the-names/74220)

<div class="topic-metadata">

**Author:** [@MK-1138](https://discourse.julialang.org/u/MK-1138)\
**Replies:** 9\
**Last updated:** [January 8, 2022, 7:39pm UTC](https://discourse.julialang.org/t/recommended-way-to-select-multiple-dataframe-columns-parametrically-i-e-not-by-the-names/74220 "2022-01-08T19:39:10Z")

</div>

I’m learning from the wonderful Julia Data Science book. In chapter 4.7 Variable Transformations we have the following DataFrame example: function grades\_2020() name = \["Sally", "Bob", "Alice", "Hank"\] grade\_202…

---

## [On modules and globals](https://discourse.julialang.org/t/on-modules-and-globals/74234)

<div class="topic-metadata">

**Author:** [@JackStrauss](https://discourse.julialang.org/u/JackStrauss)\
**Replies:** 14\
**Last updated:** [January 8, 2022, 6:42pm UTC](https://discourse.julialang.org/t/on-modules-and-globals/74234 "2022-01-08T18:42:26Z")

</div>

Hello everybody. We have read everything we could find about globals, including this very helpful post How to correctly define and use global variables in the module in Julia? and are grappling with a use case that mak…

---

## [\[ANN\] BesselK.jl: an AD-compatible modified second-kind Bessel function](https://discourse.julialang.org/t/ann-besselk-jl-an-ad-compatible-modified-second-kind-bessel-function/74047)

<div class="topic-metadata">

**Author:** [@cgeoga](https://discourse.julialang.org/u/cgeoga)\
**Replies:** 3\
**Last updated:** [January 8, 2022, 6:33pm UTC](https://discourse.julialang.org/t/ann-besselk-jl-an-ad-compatible-modified-second-kind-bessel-function/74047 "2022-01-08T18:33:47Z")

</div>

Hey all. Just wanted to share a project that I am just finishing up with some collaborators: BesselK.jl. It is a package for evaluating the second-kind modified Bessel function \\mathcal{K}\_\\nu(x) that has been specifical…

---

## [Function pmap multi-argument](https://discourse.julialang.org/t/function-pmap-multi-argument/74153)

<div class="topic-metadata">

**Author:** [@GalloLuigi](https://discourse.julialang.org/u/GalloLuigi)\
**Replies:** 10\
**Last updated:** [January 8, 2022, 5:44pm UTC](https://discourse.julialang.org/t/function-pmap-multi-argument/74153 "2022-01-08T17:44:23Z")

</div>

Hi I would like to use pmap for this function: function simulate( sim\_type::SIS, df::DataFrame, intervals::Dict{Int, Pair{DateTime, DateTime}}, user2vertex::Dict{String, Int}, loc…

---

## [Removing LineNumberNodes when displaying expressions with macros](https://discourse.julialang.org/t/removing-linenumbernodes-when-displaying-expressions-with-macros/20222)

<div class="topic-metadata">

**Author:** [@ffevotte](https://discourse.julialang.org/u/ffevotte)\
**Replies:** 7\
**Last updated:** [January 8, 2022, 4:58pm UTC](https://discourse.julialang.org/t/removing-linenumbernodes-when-displaying-expressions-with-macros/20222 "2022-01-08T16:58:46Z")

</div>

I’m trying to define a function to filter LineNumberNodes from an expression to pretty-print it without annotations: filterLNN(x) = deepcopy(x) function filterLNN(e::Expr) Expr(e.head, filterLNN.(filter(x-\>!isa(x, …

---

## [What is the proper VSCode Debugger configuration for Julia](https://discourse.julialang.org/t/what-is-the-proper-vscode-debugger-configuration-for-julia/74244)

<div class="topic-metadata">

**Author:** [@julianoobie](https://discourse.julialang.org/u/julianoobie)\
**Replies:** 0\
**Last updated:** [January 8, 2022, 3:32pm UTC](https://discourse.julialang.org/t/what-is-the-proper-vscode-debugger-configuration-for-julia/74244 "2022-01-08T15:32:26Z")

</div>

I am new to Julia. My debugger used to work in VSCode and then I think I must have changed something (I’m not sure what) and it is no longer working. I don’t even see the “Run and Debug” button in Julia now. At the top L…

---

## [Grid of differently colored scatter plots](https://discourse.julialang.org/t/grid-of-differently-colored-scatter-plots/74202)

<div class="topic-metadata">

**Author:** [@adam-srut](https://discourse.julialang.org/u/adam-srut)\
**Replies:** 3\
**Last updated:** [January 8, 2022, 3:02pm UTC](https://discourse.julialang.org/t/grid-of-differently-colored-scatter-plots/74202 "2022-01-08T15:02:36Z")

</div>

Hello, I am trying to plot a 14x3 grid of scatter plots with common x-axes and common coloring based on their z-value (I have a vector of colors). My current code looks like this: plot(layout=(14,3)) for i in 1:42 …

---

## [How to wrap a vector so that it does simd?](https://discourse.julialang.org/t/how-to-wrap-a-vector-so-that-it-does-simd/74242)

<div class="topic-metadata">

**Author:** [@abulak](https://discourse.julialang.org/u/abulak)\
**Replies:** 0\
**Last updated:** [January 8, 2022, 2:40pm UTC](https://discourse.julialang.org/t/how-to-wrap-a-vector-so-that-it-does-simd/74242 "2022-01-08T14:40:14Z")

</div>

Hey, I’ve been recently hit with this issue: I have a very thin wrapper around Vector{T}, let’s say it’s struct MyVector{T} \<: AbstractVector{T} data::Vector{T} end # Array Interface Base.size(v::MyVector) = size(…

---

## [Coupled non-linear PDEs using DifferentialEquations.jl and the MOL](https://discourse.julialang.org/t/coupled-non-linear-pdes-using-differentialequations-jl-and-the-mol/74139)

<div class="topic-metadata">

**Author:** [@Iddingsite](https://discourse.julialang.org/u/Iddingsite)\
**Replies:** 10\
**Last updated:** [January 8, 2022, 1:58pm UTC](https://discourse.julialang.org/t/coupled-non-linear-pdes-using-differentialequations-jl-and-the-mol/74139 "2022-01-08T13:58:39Z")

</div>

Hi everyone, I am trying to solve 2 coupled non-linear PDEs using the MOL with DifferentialEquations.jl and Finite differences first in 1D and I am stuck somewhere. My two equations describe the evolution of a porosity…

---

## [Confusion on Creating Gridded Interpolations](https://discourse.julialang.org/t/confusion-on-creating-gridded-interpolations/50205)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 23\
**Last updated:** [January 8, 2022, 1:29pm UTC](https://discourse.julialang.org/t/confusion-on-creating-gridded-interpolations/50205 "2022-01-08T13:29:22Z")

</div>

Hi everyone, I am have run into a problem with interpolating values across large arrays using Julia. I have read these Discourse discussions pertaining to my problem but have not been able to use them to create a solutio…

---

## [Julia Gender Inclusive digital Coffee Meet-up](https://discourse.julialang.org/t/julia-gender-inclusive-digital-coffee-meet-up/74239)

<div class="topic-metadata">

**Author:** [@kimauth](https://discourse.julialang.org/u/kimauth)\
**Replies:** 0\
**Last updated:** [January 8, 2022, 1:06pm UTC](https://discourse.julialang.org/t/julia-gender-inclusive-digital-coffee-meet-up/74239 "2022-01-08T13:06:51Z")

</div>

Dear all! It’s time for the first gender inclusive meetup of the year on Sunday, January 16th at 11AM EST / 3pm UTC / 5pm CET / 9:30 pm IST! This time we are especially interested in hearing about your Julia plans for …

---

## [View for hcat(A,b)?](https://discourse.julialang.org/t/view-for-hcat-a-b/74211)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 4\
**Last updated:** [January 8, 2022, 8:00am UTC](https://discourse.julialang.org/t/view-for-hcat-a-b/74211 "2022-01-08T08:00:58Z")

</div>

Hi, some algs like Gaussian elimination or reduced echelon form work on the structure Ab = \[A, b\]. Is there a way to pass A and b, then work on Ab without allocations, a kind of view()?

---

## [Tooling for Julia command-line scripts](https://discourse.julialang.org/t/tooling-for-julia-command-line-scripts/73915)

<div class="topic-metadata">

**Author:** [@simonbyrne](https://discourse.julialang.org/u/simonbyrne)\
**Replies:** 5\
**Last updated:** [January 8, 2022, 9:01am UTC](https://discourse.julialang.org/t/tooling-for-julia-command-line-scripts/73915 "2022-01-08T09:01:20Z")

</div>

Prompted by Jeremy Howard’s reply to @viralbshah’s question about 2022 goals for Julia, one thing I would like to figure out how to make it easier to write and deploy command-line scripts written in Julia. I think the k…

---

## [Is JuMP the right package for large square models?](https://discourse.julialang.org/t/is-jump-the-right-package-for-large-square-models/74214)

<div class="topic-metadata">

**Author:** [@MartinBonde](https://discourse.julialang.org/u/MartinBonde)\
**Replies:** 3\
**Last updated:** [January 8, 2022, 8:43am UTC](https://discourse.julialang.org/t/is-jump-the-right-package-for-large-square-models/74214 "2022-01-08T08:43:10Z")

</div>

Is there a well defined ‘domain boundary’ between ModelingToolkit and JuMP? I currently use GAMS and the Conopt solver to solve very large square systems of non-linear equations. I.e. exactly as many constraints as free…

---

## [Just installed Julia 1.7.1, simple examples now crashing](https://discourse.julialang.org/t/just-installed-julia-1-7-1-simple-examples-now-crashing/74109)

<div class="topic-metadata">

**Author:** [@clm](https://discourse.julialang.org/u/clm)\
**Replies:** 8\
**Last updated:** [January 8, 2022, 12:43am UTC](https://discourse.julialang.org/t/just-installed-julia-1-7-1-simple-examples-now-crashing/74109 "2022-01-08T00:43:32Z")

</div>

I had some coding running perfectly fine in an (outdated) version of Julia, which I didn’t realize was outdated as I don’t often keep up to date with these things (1.6.1). Between yesterday and today without changing any…

---

## [Accessing ecdfplot from CairoMakie](https://discourse.julialang.org/t/accessing-ecdfplot-from-cairomakie/74219)

<div class="topic-metadata">

**Author:** [@bicepjai](https://discourse.julialang.org/u/bicepjai)\
**Replies:** 1\
**Last updated:** [January 8, 2022, 12:43am UTC](https://discourse.julialang.org/t/accessing-ecdfplot-from-cairomakie/74219 "2022-01-08T00:43:16Z")

</div>

I see cairomakie is moved to makie . New makie has been released, do we still need to install cairomakie separately ? I am trying to use ecdfplot and have not found a way. everytime i install cairomakie, makie version ge…

---

## [Mutex in inter-process communication](https://discourse.julialang.org/t/mutex-in-inter-process-communication/74223)

<div class="topic-metadata">

**Author:** [@brandsblair2020](https://discourse.julialang.org/u/brandsblair2020)\
**Replies:** 0\
**Last updated:** [January 7, 2022, 11:52pm UTC](https://discourse.julialang.org/t/mutex-in-inter-process-communication/74223 "2022-01-07T23:52:10Z")

</div>

hello, there is a package called InterProcessCommunication at https://github.com/emmt/InterProcessCommunication.jl Has anyone had any experience in making the Mutex to work with shared memory, i.e. in the lock.jl of the…

---

## [Can't get \`Preferences.set\_preferences!()\` to work](https://discourse.julialang.org/t/cant-get-preferences-set-preferences-to-work/74155)

<div class="topic-metadata">

**Author:** [@Di11on](https://discourse.julialang.org/u/Di11on)\
**Replies:** 2\
**Last updated:** [January 7, 2022, 11:36pm UTC](https://discourse.julialang.org/t/cant-get-preferences-set-preferences-to-work/74155 "2022-01-07T23:36:23Z")

</div>

Hi folks, I’m trying to use a custom binary with HiGHS.jl. I am following the instructions here: Custom binaries · JuMP These instructions involve using Preferences.set\_preferences!() to set the path to the custom bina…

---

## [Value as a type parameter, \`X{1}\`](https://discourse.julialang.org/t/value-as-a-type-parameter-x-1/74215)

<div class="topic-metadata">

**Author:** [@tfiers](https://discourse.julialang.org/u/tfiers)\
**Replies:** 9\
**Last updated:** [January 7, 2022, 10:59pm UTC](https://discourse.julialang.org/t/value-as-a-type-parameter-x-1/74215 "2022-01-07T22:59:17Z")

</div>

In “AbstractArray{T,N}”, I understand T (element type can be anything), but not N, the dimensionality. Why is N not Int?

---

## [Set ENV\["PYTHON"\]="pythoncommand"](https://discourse.julialang.org/t/set-env-python-pythoncommand/28439)

<div class="topic-metadata">

**Author:** [@hasanOryx](https://discourse.julialang.org/u/hasanOryx)\
**Replies:** 7\
**Last updated:** [January 7, 2022, 9:56pm UTC](https://discourse.julialang.org/t/set-env-python-pythoncommand/28439 "2022-01-07T21:56:12Z")

</div>

I just installed Python3 from the installer at my Windows 10 device, and got this error while trying Pkg.add("PyPlot") In my Mac I also installed python3 from the installer, and got the same error ┌ Error: Error buildi…

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

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