# Latest

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

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

**Page:** 1125

---

## [Pmapreduce with the keyword argument "dims"](https://discourse.julialang.org/t/pmapreduce-with-the-keyword-argument-dims/76256)

<div class="topic-metadata">

**Author:** [@dmetivie](https://discourse.julialang.org/u/dmetivie)\
**Replies:** 0\
**Last updated:** [February 11, 2022, 3:19pm UTC](https://discourse.julialang.org/t/pmapreduce-with-the-keyword-argument-dims/76256 "2022-02-11T15:19:29Z")

</div>

The function mapreduce(f, op, X; dims = dim) can be used, but it seems that the parallel analog pmapreduce from the package ParallelUtilities does not support the dims argument. How would one use simple parallel funct…

---

## [JuliaDB select/filter multiple string values in one column](https://discourse.julialang.org/t/juliadb-select-filter-multiple-string-values-in-one-column/9918)

<div class="topic-metadata">

**Author:** [@macieyo](https://discourse.julialang.org/u/macieyo)\
**Replies:** 10\
**Last updated:** [February 11, 2022, 3:18pm UTC](https://discourse.julialang.org/t/juliadb-select-filter-multiple-string-values-in-one-column/9918 "2022-02-11T15:18:53Z")

</div>

Hello Julia Community, I have a question regarding usage of JuliaDB. My table consist with 5 columns and I need to select/filter by one column containing string values. I am able to do it with one string value: table…

---

## [Julian methods for batched computations without loops](https://discourse.julialang.org/t/julian-methods-for-batched-computations-without-loops/76201)

<div class="topic-metadata">

**Author:** [@harwiltz](https://discourse.julialang.org/u/harwiltz)\
**Replies:** 5\
**Last updated:** [February 11, 2022, 2:57pm UTC](https://discourse.julialang.org/t/julian-methods-for-batched-computations-without-loops/76201 "2022-02-11T14:57:34Z")

</div>

Hi all, I’m fairly new to Julia, coming from Python + JAX. As such, I’ve become accustomed to writing vectorized expressions to avoid expensive for loops – however, I understand that this isn’t something that should be …

---

## [@everywhere takes a very long time when using a cluster](https://discourse.julialang.org/t/everywhere-takes-a-very-long-time-when-using-a-cluster/35724)

<div class="topic-metadata">

**Author:** [@affans](https://discourse.julialang.org/u/affans)\
**Replies:** 16\
**Last updated:** [February 11, 2022, 2:47pm UTC](https://discourse.julialang.org/t/everywhere-takes-a-very-long-time-when-using-a-cluster/35724 "2022-02-11T14:47:32Z")

</div>

I think I’ve found a bug with @everywhere on 1.3 but it’s hard to reproduce. Basically, it takes very long to load the package when using a cluster with multiple nodes (workload manager is Slurm). See the following resu…

---

## [Plotting graphs in vscode](https://discourse.julialang.org/t/plotting-graphs-in-vscode/76243)

<div class="topic-metadata">

**Author:** [@flobe](https://discourse.julialang.org/u/flobe)\
**Replies:** 2\
**Last updated:** [February 11, 2022, 1:41pm UTC](https://discourse.julialang.org/t/plotting-graphs-in-vscode/76243 "2022-02-11T13:41:35Z")

</div>

Hi all! is the title suggests I’m struggling with plotting a graph in vscode. using GraphRecipes using Plots using Graphs n = 8 g = wheel\_digraph(n) graphplot(g) This code works perfectly fine using the julia repl in…

---

## [Current REPL number](https://discourse.julialang.org/t/current-repl-number/76240)

<div class="topic-metadata">

**Author:** [@ettersi](https://discourse.julialang.org/u/ettersi)\
**Replies:** 6\
**Last updated:** [February 11, 2022, 1:22pm UTC](https://discourse.julialang.org/t/current-repl-number/76240 "2022-02-11T13:22:44Z")

</div>

Does Julia provide an API for extracting the current REPL number? By “current REPL number”, I mean the x in REPL\[x\] in error messages like the following: julia\> error() ERROR: Stacktrace: \[1\] error() @ Base ./erro…

---

## [String compression on windows](https://discourse.julialang.org/t/string-compression-on-windows/69585)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 17\
**Last updated:** [February 11, 2022, 11:03am UTC](https://discourse.julialang.org/t/string-compression-on-windows/69585 "2022-02-11T11:03:38Z")

</div>

Hi all :slight\_smile: I’m forced to use windows. Is there any string compression pkg that can be used on windows? (like https://github.com/ararslan/Shoco.jl) Thank you!

---

## [Function arguments variable](https://discourse.julialang.org/t/function-arguments-variable/76208)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 1\
**Last updated:** [February 11, 2022, 11:25am UTC](https://discourse.julialang.org/t/function-arguments-variable/76208 "2022-02-11T11:25:06Z")

</div>

Is there a variable within a function that will return all function arguments as a named tuple (or something similar). Would be useful when calling a second function, that uses a similar set of arguments. f2(; a,b,c ) =…

---

## [@from (from Fromfile) does not work inside begin-en for local module workflow](https://discourse.julialang.org/t/from-from-fromfile-does-not-work-inside-begin-en-for-local-module-workflow/76100)

<div class="topic-metadata">

**Author:** [@jdad](https://discourse.julialang.org/u/jdad)\
**Replies:** 4\
**Last updated:** [February 11, 2022, 7:58am UTC](https://discourse.julialang.org/t/from-from-fromfile-does-not-work-inside-begin-en-for-local-module-workflow/76100 "2022-02-11T07:58:14Z")

</div>

I have been trying to get my “local modules” workflow from previous {either include or push loadpath} to using excellent @Roger-luo FromFile. But the case I was using it get me trouble, specifically it fails when include…

---

## [Download binaries for previous patch versions](https://discourse.julialang.org/t/download-binaries-for-previous-patch-versions/76205)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 2\
**Last updated:** [February 11, 2022, 6:28am UTC](https://discourse.julialang.org/t/download-binaries-for-previous-patch-versions/76205 "2022-02-11T06:28:03Z")

</div>

Where can I download binaries for previous patch versions? The old releases page in the website only lists the latest releases of minor versions. I’m interested in obtaining 1.7.1.

---

## [Is a package to trawl through the files in a package/folder and surface all the packages used within?](https://discourse.julialang.org/t/is-a-package-to-trawl-through-the-files-in-a-package-folder-and-surface-all-the-packages-used-within/75929)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 4\
**Last updated:** [February 11, 2022, 6:21am UTC](https://discourse.julialang.org/t/is-a-package-to-trawl-through-the-files-in-a-package-folder-and-surface-all-the-packages-used-within/75929 "2022-02-11T06:21:12Z")

</div>

R’s renv has a function called renv::init() which does that. Also, for bonus points, is there a package to automatically put bounds on the Project.toml for each package that is used?

---

## [Replacing one value in a large csv of floats with a string](https://discourse.julialang.org/t/replacing-one-value-in-a-large-csv-of-floats-with-a-string/76197)

<div class="topic-metadata">

**Author:** [@mikel8](https://discourse.julialang.org/u/mikel8)\
**Replies:** 1\
**Last updated:** [February 11, 2022, 12:06am UTC](https://discourse.julialang.org/t/replacing-one-value-in-a-large-csv-of-floats-with-a-string/76197 "2022-02-11T00:06:23Z")

</div>

Hey all, I am trying to write a single string to one cell in a large CSV made up entirely of numbers Julia reads in as Floats when copying the CSV into a dataframe. I want to overwrite one value within the csv with a str…

---

## [Optimization error when using JuMP](https://discourse.julialang.org/t/optimization-error-when-using-jump/76160)

<div class="topic-metadata">

**Author:** [@Jian\_ZUO](https://discourse.julialang.org/u/Jian_ZUO)\
**Replies:** 13\
**Last updated:** [February 10, 2022, 11:57pm UTC](https://discourse.julialang.org/t/optimization-error-when-using-jump/76160 "2022-02-10T23:57:16Z")

</div>

Follow is the optimization problem I defined: Packages and constants: using JuMP, Ipopt const R0 = 0.1803 Lmin, Lnom, Lmax = 0.8, 2.4, 3.5 w1 = 0.4 w2 = 0.6 Rfc1 = 0.1803 + 0.01 Rfc2 = 0.1803 L11, L21 = 2.1, 2.…

---

## [Unexpected allocation when calling Julia function from C++](https://discourse.julialang.org/t/unexpected-allocation-when-calling-julia-function-from-c/76184)

<div class="topic-metadata">

**Author:** [@victor-shepardson](https://discourse.julialang.org/u/victor-shepardson)\
**Replies:** 0\
**Last updated:** [February 10, 2022, 5:17pm UTC](https://discourse.julialang.org/t/unexpected-allocation-when-calling-julia-function-from-c/76184 "2022-02-10T17:17:06Z")

</div>

Hey, I’m using PackageCompiler to make a shared library and calling it from C++ with the Julia GC turned off, allocating all memory on the C++ side. From the Julia side, I see 0 allocations: julia\> using BenchmarkTools…

---

## [Shade area under the curve between two points in Plots.jl](https://discourse.julialang.org/t/shade-area-under-the-curve-between-two-points-in-plots-jl/76190)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 3\
**Last updated:** [February 10, 2022, 9:31pm UTC](https://discourse.julialang.org/t/shade-area-under-the-curve-between-two-points-in-plots-jl/76190 "2022-02-10T21:31:19Z")

</div>

Hi all, I was wondering if it is possible to shade the area under the curve in Plots.jl? For example, can I adapt the code below to shade the area between -1 and 1? Thanks! using Plots, Distributions x = range(-3, 3…

---

## [Broken terminal/language server](https://discourse.julialang.org/t/broken-terminal-language-server/76169)

<div class="topic-metadata">

**Author:** [@runical](https://discourse.julialang.org/u/runical)\
**Replies:** 2\
**Last updated:** [February 10, 2022, 9:00pm UTC](https://discourse.julialang.org/t/broken-terminal-language-server/76169 "2022-02-10T21:00:03Z")

</div>

Good day all, Today I was greeted with a crashing VScode language server for Julia on my Windows PC, resulting in no code highlighting/help and not being able to run code in the VScode REPL. I can tell you, this is rath…

---

## [Creating variables from file](https://discourse.julialang.org/t/creating-variables-from-file/76179)

<div class="topic-metadata">

**Author:** [@jvaes](https://discourse.julialang.org/u/jvaes)\
**Replies:** 9\
**Last updated:** [February 10, 2022, 7:49pm UTC](https://discourse.julialang.org/t/creating-variables-from-file/76179 "2022-02-10T19:49:36Z")

</div>

Hi everyone, I am designing a large model that has a lot of parameters that will be imported from a file. I can load the file in a dictionary and I would like to define the variables corresponding to each one of these …

---

## [Is there a static checking tool for Julia?](https://discourse.julialang.org/t/is-there-a-static-checking-tool-for-julia/22271)

<div class="topic-metadata">

**Author:** [@Gu\_Junhua](https://discourse.julialang.org/u/Gu_Junhua)\
**Replies:** 10\
**Last updated:** [February 10, 2022, 7:44pm UTC](https://discourse.julialang.org/t/is-there-a-static-checking-tool-for-julia/22271 "2022-02-10T19:44:01Z")

</div>

It is annoying that a program only report errors (e.g., no method matching …) when it reach the point of calling, especially for some time-consuming programs. Since in Julia, we can give detailed type information, I won…

---

## [Distributed Computing with Slurm and Julia](https://discourse.julialang.org/t/distributed-computing-with-slurm-and-julia/76181)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 9\
**Last updated:** [February 10, 2022, 7:25pm UTC](https://discourse.julialang.org/t/distributed-computing-with-slurm-and-julia/76181 "2022-02-10T19:25:01Z")

</div>

I’m looking for some guidance on how to get started with the following scenario. I have a cluster with multiple nodes, each node has 48 cores. The job scheduling is done with slurm. Currently, I’ve been running single…

---

## [Gnuplot ranges: how to set](https://discourse.julialang.org/t/gnuplot-ranges-how-to-set/76186)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 3\
**Last updated:** [February 10, 2022, 6:36pm UTC](https://discourse.julialang.org/t/gnuplot-ranges-how-to-set/76186 "2022-02-10T18:36:30Z")

</div>

This one has got me stumped. When I don’t set the ranges explicitly, I get When I do, I get this: The code: # comment out the following two lines NOT to set the range explicitly @gp :- "set xrange…

---

## [Is it possible to import everything but?](https://discourse.julialang.org/t/is-it-possible-to-import-everything-but/70945)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 9\
**Last updated:** [February 10, 2022, 6:22pm UTC](https://discourse.julialang.org/t/is-it-possible-to-import-everything-but/70945 "2022-02-10T18:22:34Z")

</div>

Both PlutoUI and Makie export Slider. It seems like the right type name for each, but causes naming conflics in notebooks. One then has to qualify the usage by PlutoUI.Slider. Is it possible to import everything but Slid…

---

## [Wrapping label text in Plots.jl](https://discourse.julialang.org/t/wrapping-label-text-in-plots-jl/76124)

<div class="topic-metadata">

**Author:** [@putianyi888](https://discourse.julialang.org/u/putianyi888)\
**Replies:** 9\
**Last updated:** [February 10, 2022, 5:26pm UTC](https://discourse.julialang.org/t/wrapping-label-text-in-plots-jl/76124 "2022-02-10T17:26:12Z")

</div>

I have a plot of only two lines with long legend labels. The plot doesn’t have enough horizontal space unless the labels are wrapped. How do I do that? I’m using pgfplotsx() backend in Plots.jl for LaTeX-style plots, so…

---

## [Should \`literal\_pow\` optimize for bigger exponents?](https://discourse.julialang.org/t/should-literal-pow-optimize-for-bigger-exponents/76167)

<div class="topic-metadata">

**Author:** [@MarcMush](https://discourse.julialang.org/u/MarcMush)\
**Replies:** 15\
**Last updated:** [February 10, 2022, 4:44pm UTC](https://discourse.julialang.org/t/should-literal-pow-optimize-for-bigger-exponents/76167 "2022-02-10T16:44:54Z")

</div>

Base.literal\_pow allows x^2 and x^3 to be turned into x\*x and x\*x\*x, turning it into very efficient machine code. I was wondering if it could be extended to higher exponents. The function I used for this is this one: Ba…

---

## [DiffEqFlux does not expose sciml\_train](https://discourse.julialang.org/t/diffeqflux-does-not-expose-sciml-train/76172)

<div class="topic-metadata">

**Author:** [@AlexG](https://discourse.julialang.org/u/AlexG)\
**Replies:** 2\
**Last updated:** [February 10, 2022, 4:47pm UTC](https://discourse.julialang.org/t/diffeqflux-does-not-expose-sciml-train/76172 "2022-02-10T16:47:44Z")

</div>

I’m trying to get DiffEqFlux.jl 1.4.5 running on Julia 1.6.5 (Mac x86). When running the Lotka-Volterra example in the docs verbatim, it throws the following error: UndefVarError: sciml\_train not defined Stacktrace: \[…

---

## [Save with an object value in file name](https://discourse.julialang.org/t/save-with-an-object-value-in-file-name/76110)

<div class="topic-metadata">

**Author:** [@jisutich](https://discourse.julialang.org/u/jisutich)\
**Replies:** 3\
**Last updated:** [February 10, 2022, 4:31pm UTC](https://discourse.julialang.org/t/save-with-an-object-value-in-file-name/76110 "2022-02-10T16:31:29Z")

</div>

Hi guys: I am using the package JLD to save objects. How to add the value of some parameters in the file name? For example, if I have a parameter a =0.5, I want the value of a to show up in the file name so I can rememb…

---

## [Delete Id from dataframe if variable of id contains particular value](https://discourse.julialang.org/t/delete-id-from-dataframe-if-variable-of-id-contains-particular-value/76157)

<div class="topic-metadata">

**Author:** [@sai\_matcha](https://discourse.julialang.org/u/sai_matcha)\
**Replies:** 6\
**Last updated:** [February 10, 2022, 4:11pm UTC](https://discourse.julialang.org/t/delete-id-from-dataframe-if-variable-of-id-contains-particular-value/76157 "2022-02-10T16:11:04Z")

</div>

hi i want create a new dataframe by deleting some ids from the original data frame on condition. data frame i have df = DataFrame() df.id = repeat(1:3,3) df.v1 = 1:9 df.v2 = 20:28 sort!(df,:id) i want to delete total …

---

## [Efficient calculation of many complex Lorentzians on a large array](https://discourse.julialang.org/t/efficient-calculation-of-many-complex-lorentzians-on-a-large-array/76150)

<div class="topic-metadata">

**Author:** [@mgreifenstein](https://discourse.julialang.org/u/mgreifenstein)\
**Replies:** 24\
**Last updated:** [February 10, 2022, 2:45pm UTC](https://discourse.julialang.org/t/efficient-calculation-of-many-complex-lorentzians-on-a-large-array/76150 "2022-02-10T14:45:25Z")

</div>

Dear Julia community, As obvious from the forum I’m posting in, I am indeed new to Julia but already love it. By education, I am an engineer with a PhD focusing on laser spectroscopy and not a programmer, but I do have …

---

## [Convert date format "dd\_mm\_yyyy" in dataframe to "dd/mm/yyyy"](https://discourse.julialang.org/t/convert-date-format-dd-mm-yyyy-in-dataframe-to-dd-mm-yyyy/76033)

<div class="topic-metadata">

**Author:** [@agatheLG](https://discourse.julialang.org/u/agatheLG)\
**Replies:** 6\
**Last updated:** [February 10, 2022, 2:26pm UTC](https://discourse.julialang.org/t/convert-date-format-dd-mm-yyyy-in-dataframe-to-dd-mm-yyyy/76033 "2022-02-10T14:26:35Z")

</div>

Hi, I am trying to convert all the values of the columns of my dataframe which are Dates.Date type from format “dd\_mm\_yyyy” to “dd/mm/yyyy” I tried a lot of things like Dates.format.(Date(my\_dataframe\[:,:Date\_de\_naiss…

---

## [How to bind data with plot function?](https://discourse.julialang.org/t/how-to-bind-data-with-plot-function/76164)

<div class="topic-metadata">

**Author:** [@dankelley](https://discourse.julialang.org/u/dankelley)\
**Replies:** 3\
**Last updated:** [February 10, 2022, 2:24pm UTC](https://discourse.julialang.org/t/how-to-bind-data-with-plot-function/76164 "2022-02-10T14:24:58Z")

</div>

This is my first posting here, and I apologize if this is silly. I am quite familiar with R, and a scheme I use there is to compute something and assign it a class, so that I can then define a plot generic. You can see…

---

## [How to use Google Analytics on documenter-generated pages?](https://discourse.julialang.org/t/how-to-use-google-analytics-on-documenter-generated-pages/76166)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 1\
**Last updated:** [February 10, 2022, 2:04pm UTC](https://discourse.julialang.org/t/how-to-use-google-analytics-on-documenter-generated-pages/76166 "2022-02-10T14:04:47Z")

</div>

In theory \[ Documentation, 2016 merged pull request \] it is possible to simply pass analytics = "G-XXXXXXXXXX to the makedocs call, but I receive instead the warning: Unknown keywords: analytics = G-XXXXXXXXXX and no G…

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

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