# Latest

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

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

**Page:** 1227

---

## [\`file.choose()\` in \`Julia\`?](https://discourse.julialang.org/t/file-choose-in-julia/69703)

<div class="topic-metadata">

**Author:** [@Alex\_Tantos](https://discourse.julialang.org/u/Alex_Tantos)\
**Replies:** 61\
**Last updated:** [October 26, 2021, 1:38pm UTC](https://discourse.julialang.org/t/file-choose-in-julia/69703 "2021-10-26T13:38:52Z")

</div>

Hi! Is there a function in Julia similar to file.choose() in R or tkinter.askopenfilename() in python that allows to browse through the filesystem and returns a path string? I searched a bit, but did not come across any…

---

## [Regex matching when string has non-ascii unicode](https://discourse.julialang.org/t/regex-matching-when-string-has-non-ascii-unicode/70311)

<div class="topic-metadata">

**Author:** [@sleak](https://discourse.julialang.org/u/sleak)\
**Replies:** 3\
**Last updated:** [October 26, 2021, 1:04pm UTC](https://discourse.julialang.org/t/regex-matching-when-string-has-non-ascii-unicode/70311 "2021-10-26T13:04:42Z")

</div>

I’m using regex to split a string and getting unexpected results when the input data contains non-ascii characters (specifically, a unicode \\xe8). In python I can do: \>\>\> import re \>\>\> s = "caf\\xe8" \>\>\> re.findall('.', …

---

## [Getting the real or imaginary part with SymPy.jl](https://discourse.julialang.org/t/getting-the-real-or-imaginary-part-with-sympy-jl/70400)

<div class="topic-metadata">

**Author:** [@sijo](https://discourse.julialang.org/u/sijo)\
**Replies:** 1\
**Last updated:** [October 26, 2021, 12:51pm UTC](https://discourse.julialang.org/t/getting-the-real-or-imaginary-part-with-sympy-jl/70400 "2021-10-26T12:51:30Z")

</div>

How can I get the symbolic real or imaginary part of a Sym expression? real gives a BigFloat instead: julia\> sqrt(Sym(5))+im √5 + ⅈ julia\> sqrt(Sym(5))+im |\> real 2.23606797749978969640917366873127623544061835961152572…

---

## [Transforming string columns in DataFrame with (regex) match](https://discourse.julialang.org/t/transforming-string-columns-in-dataframe-with-regex-match/70395)

<div class="topic-metadata">

**Author:** [@DorianT](https://discourse.julialang.org/u/DorianT)\
**Replies:** 3\
**Last updated:** [October 26, 2021, 12:09pm UTC](https://discourse.julialang.org/t/transforming-string-columns-in-dataframe-with-regex-match/70395 "2021-10-26T12:09:20Z")

</div>

using DataFrames using DataFramesMeta # This is the data df = DataFrame(A = 1:5, B = \["Th32is","i35s","124my","test775","var23ia5ble"\]) # This is what the output should be @transform!(df, :B = match.(r"\\d+", :B)) @tran…

---

## [Announcing Air.jl: STM and immutable collections](https://discourse.julialang.org/t/announcing-air-jl-stm-and-immutable-collections/70361)

<div class="topic-metadata">

**Author:** [@nben](https://discourse.julialang.org/u/nben)\
**Replies:** 6\
**Last updated:** [October 26, 2021, 12:01pm UTC](https://discourse.julialang.org/t/announcing-air-jl-stm-and-immutable-collections/70361 "2021-10-26T12:01:27Z")

</div>

Air.jl is a new package for Julia that implements a number of composable multi-threading utilities largely inspired by paradigms from Clojure. These include: Immutable collections Persistent Dictionaries Persistent Se…

---

## [Unexpected Error. How would I dig deeper?](https://discourse.julialang.org/t/unexpected-error-how-would-i-dig-deeper/70399)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 0\
**Last updated:** [October 26, 2021, 11:49am UTC](https://discourse.julialang.org/t/unexpected-error-how-would-i-dig-deeper/70399 "2021-10-26T11:49:05Z")

</div>

Internal error: encountered unexpected error in runtime: BoundsError(a=Array{Core.Compiler.BasicBlock, (47,)}\[Core.Compiler.BasicBlock(stmts=Core.Compiler.StmtRange(start=1, stop=9), preds=Array{Int64, (1,)}\[27\], succs=A…

---

## [Bug in replace! function](https://discourse.julialang.org/t/bug-in-replace-function/70388)

<div class="topic-metadata">

**Author:** [@Cevheriferd](https://discourse.julialang.org/u/Cevheriferd)\
**Replies:** 3\
**Last updated:** [October 26, 2021, 9:30am UTC](https://discourse.julialang.org/t/bug-in-replace-function/70388 "2021-10-26T09:30:25Z")

</div>

See the following MWE: a = "Hello World" #"Hello World" b = replace(a,"Hello" =\> "Bye") #"Bye World" replace!(a, "Hello" =\> "Bye") #ERROR: LoadError: MethodError: no method matching \_replace!(::Base.var"#new#295"{Tupl…

---

## [Package KeyError on a remote process](https://discourse.julialang.org/t/package-keyerror-on-a-remote-process/70387)

<div class="topic-metadata">

**Author:** [@Azzaare](https://discourse.julialang.org/u/Azzaare)\
**Replies:** 3\
**Last updated:** [October 26, 2021, 11:21am UTC](https://discourse.julialang.org/t/package-keyerror-on-a-remote-process/70387 "2021-10-26T11:21:38Z")

</div>

I have been facing some trouble with remote calls on PerfChecker.jl#alloc I can’t find the origin of the KeyError (as it is the key in Project.toml). Any idea? The code is from the test in runtests.jl PerfChecker.jl: E…

---

## [Error running bym2 model](https://discourse.julialang.org/t/error-running-bym2-model/70394)

<div class="topic-metadata">

**Author:** [@Stephen\_Wild](https://discourse.julialang.org/u/Stephen_Wild)\
**Replies:** 0\
**Last updated:** [October 26, 2021, 9:59am UTC](https://discourse.julialang.org/t/error-running-bym2-model/70394 "2021-10-26T09:59:54Z")

</div>

I am trying to fit a Besag York Mollié (BYM) along the lines of this Stan case study. However, I have encountered an issue fitting the model. I hope someone can help me out to figure out what has gone wrong (I am almost …

---

## [Is the AWS S3 Pkg Thread Safe and production ready?](https://discourse.julialang.org/t/is-the-aws-s3-pkg-thread-safe-and-production-ready/70390)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 0\
**Last updated:** [October 26, 2021, 8:59am UTC](https://discourse.julialang.org/t/is-the-aws-s3-pkg-thread-safe-and-production-ready/70390 "2021-10-26T08:59:57Z")

</div>

Hi all :slight\_smile: Is s3\_put and s3\_get thread-safe and ready for production? https://github.com/JuliaCloud/AWSS3.jl

---

## [VS code is excellent!](https://discourse.julialang.org/t/vs-code-is-excellent/6381)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 110\
**Last updated:** [October 26, 2021, 8:32am UTC](https://discourse.julialang.org/t/vs-code-is-excellent/6381 "2021-10-26T08:32:28Z")

</div>

The VS code IDE is truly excellent. Downloaded today, configured in a few minutes, and it runs great. (I run git bash as the terminal.) Many thanks to the VS code development team!

---

## [Flux.BatchNorm doesn't accept Int32 as argument](https://discourse.julialang.org/t/flux-batchnorm-doesnt-accept-int32-as-argument/70379)

<div class="topic-metadata">

**Author:** [@RedDocMD](https://discourse.julialang.org/u/RedDocMD)\
**Replies:** 1\
**Last updated:** [October 26, 2021, 7:57am UTC](https://discourse.julialang.org/t/flux-batchnorm-doesnt-accept-int32-as-argument/70379 "2021-10-26T07:57:53Z")

</div>

Using Flux 0.12.7, I am trying to use the BatchNorm layer, via the following statement: Flux.BatchNorm(n\_layers) # I know that n\_layers will have type Int32 However, I get the following error: ERROR: LoadError: Method…

---

## [About this: Error: curl\_easy\_setopt: 48](https://discourse.julialang.org/t/about-this-error-curl-easy-setopt-48/70368)

<div class="topic-metadata">

**Author:** [@iiisoo](https://discourse.julialang.org/u/iiisoo)\
**Replies:** 3\
**Last updated:** [October 26, 2021, 7:06am UTC](https://discourse.julialang.org/t/about-this-error-curl-easy-setopt-48/70368 "2021-10-26T07:06:45Z")

</div>

Why I cant import package on a website’s providing terminal with GPU. I could do it under the environment of CPU.

---

## [DifferentialEquations.jl's integrator interface for discrete problem](https://discourse.julialang.org/t/differentialequations-jls-integrator-interface-for-discrete-problem/70377)

<div class="topic-metadata">

**Author:** [@iHany](https://discourse.julialang.org/u/iHany)\
**Replies:** 1\
**Last updated:** [October 26, 2021, 6:52am UTC](https://discourse.julialang.org/t/differentialequations-jls-integrator-interface-for-discrete-problem/70377 "2021-10-26T06:52:06Z")

</div>

Hi, I’m trying to use integrator interface of DiffEq.jl for discrete problem. Is it possible? Also, I wonder if “FunctionMap” in this page means the default solver of discrete problem. For example, trying to make an …

---

## [Concatenate each](https://discourse.julialang.org/t/concatenate-each/70369)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 4\
**Last updated:** [October 26, 2021, 6:25am UTC](https://discourse.julialang.org/t/concatenate-each/70369 "2021-10-26T06:25:49Z")

</div>

Given \[\[0,0,0\],\[1,1,1\]\] and \[\[4,5,6\],\[7,8,9\],\[10,11,12\]\], how can I get \[ \[\[0,0,0\],\[4,5,6\],\[7,8,9\],\[10,11,12\]\], \[\[1,1,1\],\[4,5,6\],\[7,8,9\],\[10,11,12\]\], \] Not quite right: julia\> vcat.((\[\[0,0,0\],\[1,1,1\]\]), Ref(\[\[4,5…

---

## [Are HTTP.jl and Diana.jl production ready (mature)?](https://discourse.julialang.org/t/are-http-jl-and-diana-jl-production-ready-mature/67639)

<div class="topic-metadata">

**Author:** [@lchernicharo](https://discourse.julialang.org/u/lchernicharo)\
**Replies:** 6\
**Last updated:** [September 3, 2021, 8:23pm UTC](https://discourse.julialang.org/t/are-http-jl-and-diana-jl-production-ready-mature/67639 "2021-09-03T20:23:09Z")

</div>

Hi, there. I’m starting a new RESTful backend project and would love to use Julia to build it. The only things that are making me a little concerned are the stability and ability of HTTP.jl to handle multiple simultaneo…

---

## [Latest OpenBSD status?](https://discourse.julialang.org/t/latest-openbsd-status/56779)

<div class="topic-metadata">

**Author:** [@krsanky](https://discourse.julialang.org/u/krsanky)\
**Replies:** 4\
**Last updated:** [October 26, 2021, 4:40am UTC](https://discourse.julialang.org/t/latest-openbsd-status/56779 "2021-10-26T04:40:06Z")

</div>

Hi!, I have been trying to compile julia on openbsd, and it’s not working. Before I dig into debugging I figured I’d ask if anyone has gotten recent julia to work on OpenBSD? Thanks!,

---

## [Accessing data in a CSV row?](https://discourse.julialang.org/t/accessing-data-in-a-csv-row/21057)

<div class="topic-metadata">

**Author:** [@purplishrock](https://discourse.julialang.org/u/purplishrock)\
**Replies:** 8\
**Last updated:** [October 26, 2021, 2:59am UTC](https://discourse.julialang.org/t/accessing-data-in-a-csv-row/21057 "2021-10-26T02:59:52Z")

</div>

i’m at a loss. i’m using CSV just as row reader, and i find i can’t actually access any of the data in the row. println(row\[1\]) ERROR: LoadError: MethodError: no method matching getindex(::CSV.Row{CSV.File{false,true,P…

---

## [Loading package on newly added processors](https://discourse.julialang.org/t/loading-package-on-newly-added-processors/70362)

<div class="topic-metadata">

**Author:** [@tictaccat](https://discourse.julialang.org/u/tictaccat)\
**Replies:** 1\
**Last updated:** [October 26, 2021, 12:53am UTC](https://discourse.julialang.org/t/loading-package-on-newly-added-processors/70362 "2021-10-26T00:53:16Z")

</div>

I’m developing a package MyModule that uses distributed operations internally. The following code works perfectly fine, using Distributed addprocs(10) using MyModule function\_that\_uses\_pmap\_inside(); # imported from MyM…

---

## [PyCall and Conda inside GitHub Actions](https://discourse.julialang.org/t/pycall-and-conda-inside-github-actions/70128)

<div class="topic-metadata">

**Author:** [@andrew-saydjari](https://discourse.julialang.org/u/andrew-saydjari)\
**Replies:** 10\
**Last updated:** [October 26, 2021, 1:27am UTC](https://discourse.julialang.org/t/pycall-and-conda-inside-github-actions/70128 "2021-10-26T01:27:05Z")

</div>

Hi all, I am having some trouble trying to run unit tests with a nice Julia code I wrote that has to call a python package for a couple functions. My understanding was that as long as the environment used by Conda.jl a…

---

## [LightGraphs docs not accessible?](https://discourse.julialang.org/t/lightgraphs-docs-not-accessible/69474)

<div class="topic-metadata">

**Author:** [@yewalenikhil65](https://discourse.julialang.org/u/yewalenikhil65)\
**Replies:** 7\
**Last updated:** [October 26, 2021, 1:21am UTC](https://discourse.julialang.org/t/lightgraphs-docs-not-accessible/69474 "2021-10-26T01:21:25Z")

</div>

https://juliagraphs.org/LightGraphs.jl/latest/ the docs page give 404 error… Any idea whats the issue ?

---

## [Best Way to Initialize this Struct](https://discourse.julialang.org/t/best-way-to-initialize-this-struct/70313)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 4\
**Last updated:** [October 26, 2021, 12:13am UTC](https://discourse.julialang.org/t/best-way-to-initialize-this-struct/70313 "2021-10-26T00:13:27Z")

</div>

I would appreciate any opinions or thoughts on the following. I want to create a struct and I want one of the fields of the struct to be dependent on the others. Below is how I’ve accomplished this as a first pass. stru…

---

## [How to assign the diagonal elements of part of matrix to a value?](https://discourse.julialang.org/t/how-to-assign-the-diagonal-elements-of-part-of-matrix-to-a-value/70243)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 11\
**Last updated:** [October 25, 2021, 10:52pm UTC](https://discourse.julialang.org/t/how-to-assign-the-diagonal-elements-of-part-of-matrix-to-a-value/70243 "2021-10-25T22:52:09Z")

</div>

I know that diagind() returns the index of the diagonal elements of matrix, in which we can assign them to a specific value such as in the below aa=rand(9,9); aa\[diagind(aa)\] .= 1 However, lets say I am working on a pa…

---

## [How to get the number out of a date?](https://discourse.julialang.org/t/how-to-get-the-number-out-of-a-date/70355)

<div class="topic-metadata">

**Author:** [@leon](https://discourse.julialang.org/u/leon)\
**Replies:** 11\
**Last updated:** [October 25, 2021, 10:44pm UTC](https://discourse.julialang.org/t/how-to-get-the-number-out-of-a-date/70355 "2021-10-25T22:44:27Z")

</div>

I tried the below, it was able to generate the number I want, i.e., 730824, but how can I extract this number out? My code: using Dates A = dump(Date(2001, 12, 5)) Results: Date instant: Dates.UTInstant{Day} pe…

---

## [Turing: Sampling from posterior parameters](https://discourse.julialang.org/t/turing-sampling-from-posterior-parameters/70318)

<div class="topic-metadata">

**Author:** [@amit1](https://discourse.julialang.org/u/amit1)\
**Replies:** 2\
**Last updated:** [October 25, 2021, 8:23pm UTC](https://discourse.julialang.org/t/turing-sampling-from-posterior-parameters/70318 "2021-10-25T20:23:07Z")

</div>

I am bit new to probabilistic programming and following the Statistical Rethinking book. I want to know how to draw samples from posterior parameters distributions? (equivalent to “simulation” in R, as shown in that book…

---

## [Kubemq package](https://discourse.julialang.org/t/kubemq-package/70351)

<div class="topic-metadata">

**Author:** [@benibilme](https://discourse.julialang.org/u/benibilme)\
**Replies:** 0\
**Last updated:** [October 25, 2021, 7:35pm UTC](https://discourse.julialang.org/t/kubemq-package/70351 "2021-10-25T19:35:17Z")

</div>

Hello Is there a kubemq package/sdk to access kubemq message broker? Beni

---

## [TensorOperations.jl](https://discourse.julialang.org/t/tensoroperations-jl/31327)

<div class="topic-metadata">

**Author:** [@juthohaegeman](https://discourse.julialang.org/u/juthohaegeman)\
**Replies:** 0\
**Last updated:** [November 20, 2019, 11:19pm UTC](https://discourse.julialang.org/t/tensoroperations-jl/31327 "2019-11-20T23:19:10Z")

</div>

I am pleased to announce that I’ve just registered v2.0 of TensorOperations.jl. New features include an ncon function and @ncon macro for tensor network contractions using an interface that is familiar to a large frac…

---

## [Global variables](https://discourse.julialang.org/t/global-variables/70347)

<div class="topic-metadata">

**Author:** [@dmgoldschmidt](https://discourse.julialang.org/u/dmgoldschmidt)\
**Replies:** 9\
**Last updated:** [October 25, 2021, 7:09pm UTC](https://discourse.julialang.org/t/global-variables/70347 "2021-10-25T19:09:32Z")

</div>

The inaccessibility inside loops of variables defined in the global scope is driving me nuts. Do I really have to use the keyword global every time I refer to one in a “local” scope? I’d like to have a statement in glo…

---

## [Specificity of binary method with diagonal type specification for dispatch](https://discourse.julialang.org/t/specificity-of-binary-method-with-diagonal-type-specification-for-dispatch/70281)

<div class="topic-metadata">

**Author:** [@serenity4](https://discourse.julialang.org/u/serenity4)\
**Replies:** 6\
**Last updated:** [October 25, 2021, 6:31pm UTC](https://discourse.julialang.org/t/specificity-of-binary-method-with-diagonal-type-specification-for-dispatch/70281 "2021-10-25T18:31:39Z")

</div>

I am having trouble understanding why the following code does not dispatch on Base.convert(::Type{T}, ::T) as I would expect: abstract type SuperType end struct MyType{T} \<: SuperType end function Base.convert(::Type{\<…

---

## [Overwrite part of baseline array in a for loop meeting certain conditions](https://discourse.julialang.org/t/overwrite-part-of-baseline-array-in-a-for-loop-meeting-certain-conditions/70348)

<div class="topic-metadata">

**Author:** [@dalarev](https://discourse.julialang.org/u/dalarev)\
**Replies:** 3\
**Last updated:** [October 25, 2021, 6:31pm UTC](https://discourse.julialang.org/t/overwrite-part-of-baseline-array-in-a-for-loop-meeting-certain-conditions/70348 "2021-10-25T18:31:04Z")

</div>

Question perhaps best posed in a MWE: function foo() A = zeros(3) A\[2\] = 1 for i = 2:3 ind = findall(A .== 1) A\[ind\] .= i @show(A) end end julia\> foo() A = \[0.0, 2.0, 0.0\] A = \[0…

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

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