# Latest

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

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

**Page:** 1324

---

## [Imrotate won't fill when called](https://discourse.julialang.org/t/imrotate-wont-fill-when-called/64630)

<div class="topic-metadata">

**Author:** [@JAgho](https://discourse.julialang.org/u/JAgho)\
**Replies:** 2\
**Last updated:** [July 22, 2021, 3:20pm UTC](https://discourse.julialang.org/t/imrotate-wont-fill-when-called/64630 "2021-07-22T15:20:50Z")

</div>

I’m trying to use imrotate with control of fill values from ImageTransformations.jl. This has a couple of prerequisites for use, namely Interpolations.jl to permit filling of values other than NaN using Images using Int…

---

## [Calculations in type parameters without pure](https://discourse.julialang.org/t/calculations-in-type-parameters-without-pure/65106)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 3\
**Last updated:** [July 22, 2021, 3:15pm UTC](https://discourse.julialang.org/t/calculations-in-type-parameters-without-pure/65106 "2021-07-22T15:15:30Z")

</div>

Suppose I have a type parameter M, which is a deterministic function of another parameter N. I would like to save it in the type, but not sure how to make this type stable without @pure. Is that even possible? MWE: @inl…

---

## [Relocatable app workflow with PackageCompiler](https://discourse.julialang.org/t/relocatable-app-workflow-with-packagecompiler/65058)

<div class="topic-metadata">

**Author:** [@connormeaton](https://discourse.julialang.org/u/connormeaton)\
**Replies:** 5\
**Last updated:** [July 22, 2021, 2:43pm UTC](https://discourse.julialang.org/t/relocatable-app-workflow-with-packagecompiler/65058 "2021-07-22T14:43:15Z")

</div>

Thanks to the help of @oheil, @mkitti, and @kristoffer.carlsson, I have compiled a julia app using PackageCompiler and PkgTemplate that accepts a file path as a command line argument and prints it out as a dataframe. He…

---

## [Understanding splat operator in return statement](https://discourse.julialang.org/t/understanding-splat-operator-in-return-statement/65110)

<div class="topic-metadata">

**Author:** [@VLucet](https://discourse.julialang.org/u/VLucet)\
**Replies:** 2\
**Last updated:** [July 22, 2021, 2:29pm UTC](https://discourse.julialang.org/t/understanding-splat-operator-in-return-statement/65110 "2021-07-22T14:29:04Z")

</div>

Hi, I followed the DataFrames.jl workshop earlier this week at JuliaCon, and it was my first time using DataFrames in Julia, hence why I am posting in First Steps. I was able to follow until the last part of the worshop…

---

## [What has been the worst Julia production code you have written?](https://discourse.julialang.org/t/what-has-been-the-worst-julia-production-code-you-have-written/60524)

<div class="topic-metadata">

**Author:** [@rikh](https://discourse.julialang.org/u/rikh)\
**Replies:** 13\
**Last updated:** [July 22, 2021, 2:18pm UTC](https://discourse.julialang.org/t/what-has-been-the-worst-julia-production-code-you-have-written/60524 "2021-07-22T14:18:32Z")

</div>

Just a tongue in cheek topic. What has been the worst Julia production code you have written? I kick it off with some of my recent “favourites”. Converting a HTTP.Response to stringWhat is wrong with the following code…

---

## [Help with Turing.jl: BetaBinomial ArgumentError: BetaBinomial: the condition n \>= zero(n) && (α \>= zero(α) && β \>= zero(β)) is not satisfied](https://discourse.julialang.org/t/help-with-turing-jl-betabinomial-argumenterror-betabinomial-the-condition-n-zero-n-zero-zero-is-not-satisfied/64929)

<div class="topic-metadata">

**Author:** [@wc4wc4wc4](https://discourse.julialang.org/u/wc4wc4wc4)\
**Replies:** 7\
**Last updated:** [July 22, 2021, 1:39pm UTC](https://discourse.julialang.org/t/help-with-turing-jl-betabinomial-argumenterror-betabinomial-the-condition-n-zero-n-zero-zero-is-not-satisfied/64929 "2021-07-22T13:39:52Z")

</div>

New to Julia, but have had my looks on it for a while now and finally got a bit of extra time during the Summer the play around with it, wuhuu! My goal is to implement a small program that I already have running in Pyth…

---

## [Optim.jl can't optimize function which includes BigFloat variables](https://discourse.julialang.org/t/optim-jl-cant-optimize-function-which-includes-bigfloat-variables/65095)

<div class="topic-metadata">

**Author:** [@Strange\_Xue](https://discourse.julialang.org/u/Strange_Xue)\
**Replies:** 6\
**Last updated:** [July 22, 2021, 1:12pm UTC](https://discourse.julialang.org/t/optim-jl-cant-optimize-function-which-includes-bigfloat-variables/65095 "2021-07-22T13:12:06Z")

</div>

This is a simple maximum likelihood estimation example from the tutorials of the Optm.jl, I just change the the log\_ \\sigma 's type from float to BigFloat in the Log\_Likelihood function , however, the error message show…

---

## [Ranking of Dataframe?](https://discourse.julialang.org/t/ranking-of-dataframe/65100)

<div class="topic-metadata">

**Author:** [@Nelson\_Chow](https://discourse.julialang.org/u/Nelson_Chow)\
**Replies:** 8\
**Last updated:** [July 22, 2021, 1:01pm UTC](https://discourse.julialang.org/t/ranking-of-dataframe/65100 "2021-07-22T13:01:58Z")

</div>

Hello, This is literally my second question and day 3 of Julia, Previously i was a VBA guy with some Python, C++ and Matlab experience. I have already searched both Google, Forum and Help file, but I don’t seem to be a…

---

## [Comparing Julia and Python for basic operations](https://discourse.julialang.org/t/comparing-julia-and-python-for-basic-operations/65087)

<div class="topic-metadata">

**Author:** [@daviddoij](https://discourse.julialang.org/u/daviddoij)\
**Replies:** 8\
**Last updated:** [July 22, 2021, 12:50pm UTC](https://discourse.julialang.org/t/comparing-julia-and-python-for-basic-operations/65087 "2021-07-22T12:50:33Z")

</div>

Hi there Julia community!, I’m quite new to the language and I’m falling in love more and more with it every day :slight\_smile: In order to improve my knowledge, I’m revisiting Project Euler problems, which I’ve done i…

---

## [An error with DateFormat and Date](https://discourse.julialang.org/t/an-error-with-dateformat-and-date/65097)

<div class="topic-metadata">

**Author:** [@Nash](https://discourse.julialang.org/u/Nash)\
**Replies:** 2\
**Last updated:** [July 22, 2021, 10:16am UTC](https://discourse.julialang.org/t/an-error-with-dateformat-and-date/65097 "2021-07-22T10:16:37Z")

</div>

I have no idea why the following code throws the error " MethodError: no method matching Int64(::Date). What would make the code work? df = DateFormat("mm/dd/yyyy") dt = Date(today(),df)

---

## [Layout pv panel optimization](https://discourse.julialang.org/t/layout-pv-panel-optimization/64505)

<div class="topic-metadata">

**Author:** [@alfajar\_nugraha](https://discourse.julialang.org/u/alfajar_nugraha)\
**Replies:** 8\
**Last updated:** [July 22, 2021, 8:54am UTC](https://discourse.julialang.org/t/layout-pv-panel-optimization/64505 "2021-07-22T08:54:17Z")

</div>

matrix for layout pv panel optimization

---

## [Failed to install Plots.jl LoadError on Arch Linux](https://discourse.julialang.org/t/failed-to-install-plots-jl-loaderror-on-arch-linux/65019)

<div class="topic-metadata">

**Author:** [@oponkork](https://discourse.julialang.org/u/oponkork)\
**Replies:** 8\
**Last updated:** [July 22, 2021, 8:40am UTC](https://discourse.julialang.org/t/failed-to-install-plots-jl-loaderror-on-arch-linux/65019 "2021-07-22T08:40:46Z")

</div>

I am unable to install Plots.jl on Arch Linux with julia version 1.6.2. Output of \]status Status \`~/.julia/environments/v1.6/Project.toml\` \[0c46a032\] DifferentialEquations v6.17.2 \[634d3b9d\] DrWatson v2.1.0 …

---

## [Any Julia’s equivalent to Python’s pakacges: tespy, fluprodia](https://discourse.julialang.org/t/any-julia-s-equivalent-to-python-s-pakacges-tespy-fluprodia/65090)

<div class="topic-metadata">

**Author:** [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Replies:** 0\
**Last updated:** [July 22, 2021, 8:36am UTC](https://discourse.julialang.org/t/any-julia-s-equivalent-to-python-s-pakacges-tespy-fluprodia/65090 "2021-07-22T08:36:32Z")

</div>

Hello, there are packages in Julia equivalent or similar to: tespy fluprodia, from Python. It is of our interest Refrigeration Machine model, AND PARTICULARLY, Plotting and animating States into the Diagram All help,…

---

## [LoopVectorization.jl vmap gives an error ::VectorizationBase.Vec{4, Int64}](https://discourse.julialang.org/t/loopvectorization-jl-vmap-gives-an-error-vectorizationbase-vec-4-int64/65056)

<div class="topic-metadata">

**Author:** [@Storopoli](https://discourse.julialang.org/u/Storopoli)\
**Replies:** 17\
**Last updated:** [July 22, 2021, 8:12am UTC](https://discourse.julialang.org/t/loopvectorization-jl-vmap-gives-an-error-vectorizationbase-vec-4-int64/65056 "2021-07-22T08:12:57Z")

</div>

I am trying to do a vmap on a function. map and ThreadsX.map both work. collatz(x::Int64) = if iseven(x) x ÷ 2 else 3x + 1 end function collatz\_sequencia(x::Int64) n = 0 while true …

---

## [How to configure edit/define\_editor for vscode](https://discourse.julialang.org/t/how-to-configure-edit-define-editor-for-vscode/65050)

<div class="topic-metadata">

**Author:** [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Replies:** 3\
**Last updated:** [July 22, 2021, 8:10am UTC](https://discourse.julialang.org/t/how-to-configure-edit-define-editor-for-vscode/65050 "2021-07-22T08:10:57Z")

</div>

Hi, I am trying to use the function edit to open the source code of a given function. From the documentation it says that I have to configure/call define\_editor first. Would someone be able to tell me how I can do that…

---

## [Substituting elements of array is very slow](https://discourse.julialang.org/t/substituting-elements-of-array-is-very-slow/65036)

<div class="topic-metadata">

**Author:** [@mscheffel](https://discourse.julialang.org/u/mscheffel)\
**Replies:** 23\
**Last updated:** [July 22, 2021, 7:35am UTC](https://discourse.julialang.org/t/substituting-elements-of-array-is-very-slow/65036 "2021-07-22T07:35:40Z")

</div>

I am new to Julia and I have problems with the speed. What is the fastest way to replace rows in an array? Currently I iterate over any entry of a matrix and when the result of the associated calculation is nonzero, I st…

---

## [How open tutorials in jupyter from github.com/SciML/SciMLTutorials.jl?](https://discourse.julialang.org/t/how-open-tutorials-in-jupyter-from-github-com-sciml-scimltutorials-jl/64877)

<div class="topic-metadata">

**Author:** [@murrayE](https://discourse.julialang.org/u/murrayE)\
**Replies:** 8\
**Last updated:** [July 22, 2021, 7:07am UTC](https://discourse.julialang.org/t/how-open-tutorials-in-jupyter-from-github-com-sciml-scimltutorials-jl/64877 "2021-07-22T07:07:52Z")

</div>

In the REPL, I added https://github.com/SciML/SciMLTutorials.jl. Next, I started conda and in the conda base started the jupyter server. According to the docs for SciMLTutorials.jl, one is supposed to open the provided …

---

## [Delete all files with a specific extension in a particular directory](https://discourse.julialang.org/t/delete-all-files-with-a-specific-extension-in-a-particular-directory/38764)

<div class="topic-metadata">

**Author:** [@Nash](https://discourse.julialang.org/u/Nash)\
**Replies:** 6\
**Last updated:** [July 22, 2021, 6:30am UTC](https://discourse.julialang.org/t/delete-all-files-with-a-specific-extension-in-a-particular-directory/38764 "2021-07-22T06:30:11Z")

</div>

A specific directory, say "C:/Users/me/data/" contains many files. Plenty of these files have the same extension, say .txt. What code will delete all files in the stated directory with a .txt extension, but leave all …

---

## [GridapGmsh "GmshDiscreteModel" load error](https://discourse.julialang.org/t/gridapgmsh-gmshdiscretemodel-load-error/65084)

<div class="topic-metadata">

**Author:** [@Cyber](https://discourse.julialang.org/u/Cyber)\
**Replies:** 2\
**Last updated:** [July 22, 2021, 6:24am UTC](https://discourse.julialang.org/t/gridapgmsh-gmshdiscretemodel-load-error/65084 "2021-07-22T06:24:45Z")

</div>

Hello all, I encountered some problems when I would like to follow the Gridap tutorials to create a json file. I have generated a msh file from Gmsh by clicking save\_mesh button in it. And I exactly copy the right path…

---

## [Error building 'MPI\`, libmpi could not be found](https://discourse.julialang.org/t/error-building-mpi-libmpi-could-not-be-found/63785)

<div class="topic-metadata">

**Author:** [@francispoulin](https://discourse.julialang.org/u/francispoulin)\
**Replies:** 28\
**Last updated:** [July 22, 2021, 1:17am UTC](https://discourse.julialang.org/t/error-building-mpi-libmpi-could-not-be-found/63785 "2021-07-22T01:17:37Z")

</div>

I am trying to build MPI on a cluster. I asked for instructions here but it was suggested that I go to Discourse. I have specified the variables that I need to find libmpi but when I try building I get an error. To tr…

---

## [Suggestions for improved learning in neural network based controller for rotary inverted pendulum](https://discourse.julialang.org/t/suggestions-for-improved-learning-in-neural-network-based-controller-for-rotary-inverted-pendulum/65009)

<div class="topic-metadata">

**Author:** [@shafeeq\_Elanattil](https://discourse.julialang.org/u/shafeeq_Elanattil)\
**Replies:** 2\
**Last updated:** [July 22, 2021, 12:49am UTC](https://discourse.julialang.org/t/suggestions-for-improved-learning-in-neural-network-based-controller-for-rotary-inverted-pendulum/65009 "2021-07-22T00:49:05Z")

</div>

Hello, I am new to Julia, and trying to make use of neural network based controllers for robotics applications. Here I am trying balance an rotary inverted pendulum using neural network based controller. The code is giv…

---

## [R in Julia, what is the best package?](https://discourse.julialang.org/t/r-in-julia-what-is-the-best-package/65076)

<div class="topic-metadata">

**Author:** [@maoc](https://discourse.julialang.org/u/maoc)\
**Replies:** 4\
**Last updated:** [July 22, 2021, 12:40am UTC](https://discourse.julialang.org/t/r-in-julia-what-is-the-best-package/65076 "2021-07-22T00:40:07Z")

</div>

What is the best way to introduce the R language in Julia? I looked for some alternatives and found a package called RCall.jl Are there any other options (maybe better) than this package?

---

## [StatsPlots.jl prints out incomplete subplots](https://discourse.julialang.org/t/statsplots-jl-prints-out-incomplete-subplots/65074)

<div class="topic-metadata">

**Author:** [@yingqiuz](https://discourse.julialang.org/u/yingqiuz)\
**Replies:** 2\
**Last updated:** [July 21, 2021, 10:47pm UTC](https://discourse.julialang.org/t/statsplots-jl-prints-out-incomplete-subplots/65074 "2021-07-21T22:47:13Z")

</div>

Hi I used StatsPlots.jl to make a series of violin plots, but the final output seems cropped. Here are the steps to reproduce the problem: To create a similar data frame: # create df df = DataFrame(b = Int\[\], y =Floa…

---

## [ODE usage: passing parameters used for indexing](https://discourse.julialang.org/t/ode-usage-passing-parameters-used-for-indexing/65071)

<div class="topic-metadata">

**Author:** [@graham](https://discourse.julialang.org/u/graham)\
**Replies:** 2\
**Last updated:** [July 21, 2021, 10:02pm UTC](https://discourse.julialang.org/t/ode-usage-passing-parameters-used-for-indexing/65071 "2021-07-21T22:02:31Z")

</div>

Hi all, I’m trying to solve a 2nd order (mass-spring-damper) ODE by splitting it into two first orders. In the process of accumulating the force vector in my accel() function, I need to access 4 lists, a points list, a …

---

## [Performance of abstract argument in methods](https://discourse.julialang.org/t/performance-of-abstract-argument-in-methods/65066)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 2\
**Last updated:** [July 21, 2021, 9:50pm UTC](https://discourse.julialang.org/t/performance-of-abstract-argument-in-methods/65066 "2021-07-21T21:50:20Z")

</div>

It occurs to me, maybe mistakenly, that there is a tendency to believe that being precise with your type arguments in functions also gives you performant code. Performance Tips doesn’t explicitly mention something like t…

---

## [CUDA aware MPI fails but runs on multiple GPUs](https://discourse.julialang.org/t/cuda-aware-mpi-fails-but-runs-on-multiple-gpus/65059)

<div class="topic-metadata">

**Author:** [@francispoulin](https://discourse.julialang.org/u/francispoulin)\
**Replies:** 5\
**Last updated:** [July 21, 2021, 9:32pm UTC](https://discourse.julialang.org/t/cuda-aware-mpi-fails-but-runs-on-multiple-gpus/65059 "2021-07-21T21:32:10Z")

</div>

I am running the library ImplicitGlobalGrid.jl on a server to learn about multi GPU computing. The server has MPI and CUDA but when I try MPI.has\_cuda() I get false, which tells me that the MPI is not CUDA aware. Howeve…

---

## [Computer/Data Scientist, Preclinical modeling, Imaging & Testing Core (PMIT) at MIT Koch Institute](https://discourse.julialang.org/t/computer-data-scientist-preclinical-modeling-imaging-testing-core-pmit-at-mit-koch-institute/65072)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 0\
**Last updated:** [July 21, 2021, 9:06pm UTC](https://discourse.julialang.org/t/computer-data-scientist-preclinical-modeling-imaging-testing-core-pmit-at-mit-koch-institute/65072 "2021-07-21T21:06:16Z")

</div>

Posting for a friend. Job Type: Full-time Full Job Description Working at MIT offers opportunities, an environment, a culture – and benefits – that just aren’t found together anywhere else. If you’re curious, motivated,…

---

## [Git pull - merge conflicts with Manifest.toml although it's in .gitignore](https://discourse.julialang.org/t/git-pull-merge-conflicts-with-manifest-toml-although-its-in-gitignore/65069)

<div class="topic-metadata">

**Author:** [@meck](https://discourse.julialang.org/u/meck)\
**Replies:** 0\
**Last updated:** [July 21, 2021, 8:52pm UTC](https://discourse.julialang.org/t/git-pull-merge-conflicts-with-manifest-toml-although-its-in-gitignore/65069 "2021-07-21T20:52:34Z")

</div>

➜ Oceananigans.jl git:(master) git pull Auto-merging Project.toml Auto-merging Manifest.toml CONFLICT (content): Merge conflict in Manifest.toml error: could not apply 501c1db7... updates in manifest and project tomls R…

---

## [Finding parameter (via MLE) of distributons with binned data](https://discourse.julialang.org/t/finding-parameter-via-mle-of-distributons-with-binned-data/65060)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 1\
**Last updated:** [July 21, 2021, 8:46pm UTC](https://discourse.julialang.org/t/finding-parameter-via-mle-of-distributons-with-binned-data/65060 "2021-07-21T20:46:31Z")

</div>

We have many packages to fit distributions / mixture of them over data with MLE or Chi2 methods. But what tools to use right now if my data is already binned. I.e. using Distributions, StatsBase n = Normal() u = Uniform…

---

## [Writing pytorch layers in julia](https://discourse.julialang.org/t/writing-pytorch-layers-in-julia/65064)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 0\
**Last updated:** [July 21, 2021, 7:26pm UTC](https://discourse.julialang.org/t/writing-pytorch-layers-in-julia/65064 "2021-07-21T19:26:02Z")

</div>

Hi All, From time to time, I am pushed to rewrite Mill.jl (multi-instance learning library) in pytorch. While that might be possible, i would like to avoid it, as we made heavy use of custom written gradients to help us…

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

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